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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.