This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreDid you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. 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 .
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 34 | |
| 31 | |
| 25 | |
| 20 | |
| 16 |
| User | Count |
|---|---|
| 61 | |
| 49 | |
| 28 | |
| 23 | |
| 23 |