Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

power bi dynamic slicer row matrix selection

I have a matrix on brand and country. Now I want let the user choose If they want to see the generic cost. I prefer not to have a slicer with all the brands. (Generic is a brand in this case). This...
  • v-frfei-msft's avatar
    v-frfei-msft
    7 years ago

    Hi Anonymous,

     

    Based on my test. Your formula worked well in my side. Also I create another measure to work on it, it worked well as well.

     

    Measure = var sele = SELECTEDVALUE(ReportFilters[ReportFilters])
    return
    IF(sele="All",[Total AdwordsCost],IF(sele="All(eclusief Generic)",CALCULATE(SUM(Brands[Column3]),FILTER(Brands,'Brands'[Brand] <> "Generic"))))

     

    For more details ,please check the pbix as attached.

     

    Regards,

    Frank