Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.
Book | B1 |
Book | B2 |
Clothing | Dress |
Furniture | Table |
Book | B3 |
Clothing | Shirt |
Furniture | Chairs |
SALES TABLE
Item Sales ProdCat
B1 | 100 | Book |
Dress | 20 | Clothing |
B2 | 200 | Book |
Table | 10 | Furniture |
Shirt | 30 | Clothing |
B3 | 20 | Book |
Chairs | 60 | Furniture |
When I hardcode a particular Product Category , the DAX works :
How do I override the Filter Context and also apply filter based on the current value of the row?
Any advice would be greatly appreciated.
Solved! Go to Solution.
=VAR _prdcat=VALUES(Product[ProductCategory]) RETURN CALCULATE(SUM(Sales[Sales]),FILTER(ALL(Product,Product[ProductCategory] IN _prdcat))
=VAR _prdcat=VALUES(Product[ProductCategory]) RETURN CALCULATE(SUM(Sales[Sales]),FILTER(ALL(Product,Product[ProductCategory] IN _prdcat))
Thank you so very much !!!! That worked .
Very grateful for your help .
Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!
Check out the October 2025 Power BI update to learn about new features.