Forum Discussion
SJRJEJ
3 years agoNew Member
Reference current row value in Filter expression
Hi , I seem to be struggling with a problem in PowerBI. I will try to explain the issue with the Product and Sales table example . In my report , I have a drop down filter for Product and I ha...
- 3 years ago
=VAR _prdcat=VALUES(Product[ProductCategory]) RETURN CALCULATE(SUM(Sales[Sales]),FILTER(ALL(Product,Product[ProductCategory] IN _prdcat))
wdx223_Daniel
3 years agoCommunity Champion
=VAR _prdcat=VALUES(Product[ProductCategory]) RETURN CALCULATE(SUM(Sales[Sales]),FILTER(ALL(Product,Product[ProductCategory] IN _prdcat))
- SJRJEJ3 years agoNew Member
Thank you so very much !!!! That worked .
Very grateful for your help .