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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

SUMX expression doesn't hit live query in aggregation data model

I currently have an aggregation data model where for 90 days the data should hit an import table, anything greater than that it will go to a live query. 

However, for this query it won't go to a live query.  It just reports back what is in the import table and stops there.  Someone suggested using SummarizedColumns instead but I couldn't get those to work at all. 

Any thoughts as to why?

SUMX(
SUMMARIZE(
FILTER(FACT,FACT[ResourceType] = "Fixed"),
FACT[StopArrivalDate],
"Total Tractors",DISTINCTCOUNT(FACT[TractorID])),[Total Tractors])
 
 
Stop Arrival DateTractor IDResource Type
6/1/20211Fixed
6/1/20211Fixed

6/3/2021

2Fixed
6/3/20213Fixed
6/3/20214Fixed
6/3/20215Fixed
6/4/20216NOT
1 ACCEPTED SOLUTION
Icey
Community Support
Community Support

Hi @Anonymous ,

 

In you scenario, the base data in aggregration table is filtered, not the same as your fact table. And the column you used is contained in the aggregration table. So the result comes directly from the aggregate table, not from the fact table. 

 

Simply put, the basic data in the fact table and the aggregration table must be the same.  We can't use the filtered fact table as an aggregration table.

 

Therefore, in your aggregration table, all data should be contained, not just 90 days of data.

 

I wonder if I explain it clearly.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Icey
Community Support
Community Support

Hi @Anonymous ,

 

In you scenario, the base data in aggregration table is filtered, not the same as your fact table. And the column you used is contained in the aggregration table. So the result comes directly from the aggregate table, not from the fact table. 

 

Simply put, the basic data in the fact table and the aggregration table must be the same.  We can't use the filtered fact table as an aggregration table.

 

Therefore, in your aggregration table, all data should be contained, not just 90 days of data.

 

I wonder if I explain it clearly.

 

 

Best Regards,

Icey

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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