Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn 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 |
|---|---|
| 54 | |
| 47 | |
| 39 | |
| 16 | |
| 15 |
| User | Count |
|---|---|
| 83 | |
| 71 | |
| 39 | |
| 29 | |
| 27 |