Forum Discussion

mikmokmuk's avatar
mikmokmuk
Regular Visitor
8 years ago
Solved

Selected Values in Slicer

Hi guys,

 

we are trying to get the values selected in a given slicer. Idealy, we would like to return it as a text format. For instance, we have a slicer with the values:

 

A [  ]

B [X]

C [X]

 

Would be possible to return something like "BC".

 

Thank you,

  • Hi Mik,

     

    It should be a measure rather than a calculated column. Please try it. The calculated column won't respond to the slicer for now.

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

     

    Best Regards,

    Dale

5 Replies

  • v-jiascu-msft's avatar
    v-jiascu-msft
    Icon for Microsoft Employee rankMicrosoft Employee

    Hi mikmokmuk,

     

    Please try the formula below.

    //if there isn't any selection, this formula will return all the values. So ISFILTERD is here.
    SelectedInSlicer = IF ( ISFILTERED ( DimProduct[ColorName] ), CONCATENATEX ( VALUES ( DimProduct[ColorName] ), [ColorName], "-" ) )

    Selected_Values_in_Slicer

     

    Best Regards,

    Dale

      • v-jiascu-msft's avatar
        v-jiascu-msft
        Icon for Microsoft Employee rankMicrosoft Employee

        Hi Mik,

         

        It should be a measure rather than a calculated column. Please try it. The calculated column won't respond to the slicer for now.

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

         

        Best Regards,

        Dale