Forum Discussion

KrisM's avatar
KrisM
Regular Visitor
5 years ago
Solved

Stacked column chart based on different slicers

I am trying to create a stacked column chart with values that change depending on selections from three different slicers.    My data looks like this:   I have three slicers to select the i...
  • amitchandak's avatar
    5 years ago

    KrisM , You have new table Summary and category has row values category 1, category2 etc

     

    Then this should work as measure with Category from the summary on the axis

     

    Sum by category = Switch( True()
    Max(Summary[Category]) = "Category 1", sum('Category 1'[Value],
    Max(Summary[Category]) = "Category 2", sum('Category 2'[Value]),
    Max(Summary[Category]) = "Category 3", sum('Category 3'[Value])
    )