Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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:
for me it is throwing error:
it is only working with Products[ProductID].
Can anybody explain why in simple plain english?
Please help,
Best,
Jacek
Solved! Go to Solution.
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
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
Check out the July 2025 Power BI update to learn about new features.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
User | Count |
---|---|
70 | |
64 | |
51 | |
39 | |
26 |
User | Count |
---|---|
86 | |
55 | |
44 | |
43 | |
36 |