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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.

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
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

Check out the July 2025 Power BI update to learn about new features.