Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

Slicer with multiple criteria values

Hi!   If I have a table like this: How is it possible to create slicer (or preferably ChicletSlicer) in which I could choose from two alternatives. Alternative one would show values from bot...
  • v-chuncz-msft's avatar
    7 years ago

    Anonymous,

     

    Add a separate table for Slicer and use measure below.

    Measure =
    IF (
        SELECTEDVALUE ( Table2[Column1] ) = "Category 1",
        CALCULATE ( SUM ( Table1[value] ), Table1[category] = 1 ),
        SUM ( Table1[value] )
    )