Forum Discussion

mithiladas02's avatar
mithiladas02
Icon for Helper I rankHelper I
4 years ago
Solved

How to i select multiple items in slicer

Hi,   i am using the below dax for slicer. But i am not able to select multiple items at a time. It is showing only 1 like A or B or C. how can i select A,B,C at a time. In formating i select milti...
  • Anonymous's avatar
    Anonymous
    4 years ago

    Hi mithiladas02 ,

     

    You could use selectedmeasurename() function.

    Create a slicer table contains the measure names you are using and add the below part of formula to the measures.

    IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]).

    For example:

     

    _avg = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), AVERAGE('Table'[value]))
    
    _max = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), MAX('Table'[value]))
    
    _min = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), MIN('Table'[value]))
    
    _sum = IF(SELECTEDMEASURENAME() in VALUES(slicer[slicer]), SUM('Table'[value]))

     

     

    Best Regards,

    Jay