Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get certified in Microsoft Fabric—for free! For a limited time, get a free DP-600 exam voucher to use by the end of 2024. Register now

Reply
swolfe2
Helper I
Helper I

Composite Model: If week number not on aggregation table, go back to fact table?

I've been asked by the business to come up with a method to provide fast reporting for the past 8 weeks, while leaving all previous weeks available to query knowing those scenarios will take a performance hit.

Here's the current model:

swolfe2_1-1652963879680.png

 

When the user selects a week in the previous 8 weeks from the date table, which is also on the aggregation table, I can tell that it's working correctly in DAX studio with an aggregation hit. However, once a user selects a week that is NOT on the aggregation table, but is on the date table, DAX studio shows that it's still an aggregation hit and the measure returns null. 

It shouldn't be possible for it to have found a match on the agg table since this week number doesn't exist on it:

swolfe2_2-1652963982870.png

Any help/direction would be greatly appreciated!

 

2 ACCEPTED SOLUTIONS
v-eqin-msft
Community Support
Community Support

Hi @swolfe2 ,

 

Sorry for that the information you have provided is not making the problem clear to me.

According to this: However, once a user selects a week that is NOT on the aggregation table, but is on the date table, DAX studio shows that it's still an aggregation hit and the measure returns null. 

It shouldn't be possible for it to have found a match on the agg table since this week number doesn't exist on it.

 

Actually I think It's an expected behavior:

Eyelyn9_0-1653291642170.png

 

Best Regards,
Eyelyn Qin

View solution in original post

Yes, that's the same behavior I'm seeing on my side. 

 

I suppose the DAX that's being generated is just looking for "Is there an aggregated column based off of the year?" and not also "Does this year exist on the aggregated table, too?".

View solution in original post

2 REPLIES 2
v-eqin-msft
Community Support
Community Support

Hi @swolfe2 ,

 

Sorry for that the information you have provided is not making the problem clear to me.

According to this: However, once a user selects a week that is NOT on the aggregation table, but is on the date table, DAX studio shows that it's still an aggregation hit and the measure returns null. 

It shouldn't be possible for it to have found a match on the agg table since this week number doesn't exist on it.

 

Actually I think It's an expected behavior:

Eyelyn9_0-1653291642170.png

 

Best Regards,
Eyelyn Qin

Yes, that's the same behavior I'm seeing on my side. 

 

I suppose the DAX that's being generated is just looking for "Is there an aggregated column based off of the year?" and not also "Does this year exist on the aggregated table, too?".

Helpful resources

Announcements
November Carousel

Fabric Community Update - November 2024

Find out what's new and trending in the Fabric Community.

Live Sessions with Fabric DB

Be one of the first to start using Fabric Databases

Starting December 3, join live sessions with database experts and the Fabric product team to learn just how easy it is to get started.

Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early Bird pricing ends December 9th.

Nov PBI Update Carousel

Power BI Monthly Update - November 2024

Check out the November 2024 Power BI update to learn about new features.