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

To celebrate FabCon Vienna, we are offering 50% off select exams. Ends October 3rd. Request your discount now.

Reply
jaryszek
Impactful Individual
Impactful Individual

[DAX] Why i can not use filter within summarize table?

hi,

i am doing 25 days challange from curbal and i am on day 15:
https://curbal.com/25-days-of-dax-fridays-challenge 

and i have issues with code provided in solution which is:

jaryszek_0-1657891165001.png

 

for me it is throwing error:

jaryszek_1-1657891194613.png

 

it is only working with Products[ProductID].

Can anybody explain why in simple plain english?
Please help,
Best,
Jacek

 

 



1 ACCEPTED SOLUTION
johnt75
Super User
Super User

In the QPurchases variable, the FILTER function is not being applied to the Orders table, it is being applied to the temporary table created by SUMMARIZE. If you try to filter on [Product ID] rather than Orders[Product ID] then that should work, as it is filtering the column from the temporary table.

Another way to do it would be to move the FILTER call inside the SUMMARIZE, so

SUMMARIZE( FILTER(Orders, Orders[Product ID] = 11 ), rest of SUMMARIZE statement

View solution in original post

2 REPLIES 2
johnt75
Super User
Super User

In the QPurchases variable, the FILTER function is not being applied to the Orders table, it is being applied to the temporary table created by SUMMARIZE. If you try to filter on [Product ID] rather than Orders[Product ID] then that should work, as it is filtering the column from the temporary table.

Another way to do it would be to move the FILTER call inside the SUMMARIZE, so

SUMMARIZE( FILTER(Orders, Orders[Product ID] = 11 ), rest of SUMMARIZE statement
jaryszek
Impactful Individual
Impactful Individual

thank you very much @johnt75 

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

Top Solution Authors
Top Kudoed Authors