Forum Discussion

SJRJEJ's avatar
SJRJEJ
New Member
3 years ago
Solved

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...
  • wdx223_Daniel's avatar
    3 years ago

    =VAR _prdcat=VALUES(Product[ProductCategory]) RETURN CALCULATE(SUM(Sales[Sales]),FILTER(ALL(Product,Product[ProductCategory] IN _prdcat))