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!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
| 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 .
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 68 | |
| 61 | |
| 45 | |
| 19 | |
| 15 |
| User | Count |
|---|---|
| 108 | |
| 107 | |
| 39 | |
| 30 | |
| 26 |