Activity
Mon
Wed
Fri
Sun
Jan
Feb
Mar
Apr
May
Jun
Jul
Aug
Sep
Oct
Nov
Dec
What is this?
Less
More

Memberships

Learn Microsoft Fabric

14.3k members โ€ข Free

3 contributions to Learn Microsoft Fabric
SCD best practice
Hi, I have a SCD table named targets and the following columns id, product, target, version, startdate and enddate. Currently, i look-up my sales data by doing a inner join to targets table and linked like this sales.sales_date between target.startdate and target.enddate. I feel that this is not optimal due to size of SCD(around 150k rows per version and changes 3 to 5 times per week). what is the best approach to achieve optimal performance?
2 likes โ€ข Aug '24
I would always use an outer join on the business key rather than an inner join. I then pick up the surrogate key from the dimension and put it on the fact row. I use a coalesce function to default the surrogate key to -1 in case a fact row does not find an entry in the dimension table. You could keep your business key (composite column of the columns you mentioned without the dates) on the dimension table and have it pre-calculated on your fact data prior to joining. I would use the dates as a second join condition.
Optimisation
I'm a real newbie to Fabric but not warehousing. In data warehousing I'd use a whole toolbox of methods to optimise the speed of queries but many of these appear to absent in Fabric. Are indexes non-existent in Fabric?
0 likes โ€ข Aug '24
@Will Needham Thanks for the feedback. As I say, I'm getting up to speed on Fabric and there are many pluses. It seems odd that some of the optimisation is missing but I'll just need to use other methods that are at our disposal.
๐Ÿ‘‹ New joiner? Welcome! Start here ๐Ÿ‘‡
Welcome to all new members, here's some links and information to help you get started! ๐—ค๐˜‚๐—ถ๐—ฐ๐—ธ ๐—Ÿ๐—ถ๐—ป๐—ธ๐˜€ ๐˜๐—ผ ๐—ด๐—ฒ๐˜ ๐˜€๐˜๐—ฎ๐—ฟ๐˜๐—ฒ๐—ฑ - For an introduction to this community โ†’ Explore the Welcome Pack - New-ish to Fabric? โ†’ Check out our Fabric Foundation module - Studying for the DP-600? โ†’ Check out the DP-600 Module and the DP-600 category - Studying for the DP-700? โ†’ Check out the DP-700 Module and the DP-700 category - Want to get hands-on? โ†’ Check out Fabric Dojo ๐—›๐—ผ๐˜„ ๐˜๐—ผ ๐—ฒ๐—ป๐—ด๐—ฎ๐—ด๐—ฒ ๐˜„๐—ถ๐˜๐—ต ๐˜๐—ต๐—ฒ ๐—ฐ๐—ผ๐—บ๐—บ๐˜‚๐—ป๐—ถ๐˜๐˜†? - Share your knowledge and experience! Even if you're relatively new to Fabric, or the community, your opinion and experiences are valued here! A great way to earn your first point(s) is to introduce yourself in the thread below ๐Ÿ‘‡๐Ÿ˜€ Thank you for engaging and joining us on this exciting learning journey! ๐Ÿ™ Will
4 likes โ€ข Aug '24
Hi everyone, I'm Phil from Devon in the UK. I've worked around SQL, Oracle, Cognos, Power BI and data warehousing for about 25 years. My skills now need an update so I've moved to a role where Fabric is the tool of choice. I now just need to learn how to use it!
1-3 of 3
Phil Thompson
2
15points to level up
@phil-thompson-5967
I'm a data warehousing and BI bod. I'm keen to use new technologies to facilitate business growth and improve knowledge based strategic thinking.

Active 480d ago
Joined Jun 26, 2024
Powered by