Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

How to Use Slicer for Measure Values

Hello,

I am trying to have a slicer/chiclet slicer that will filter some values in my table. The #Aired values is a measure:

 

Show    # Aired

ABC          1

345           8

XYZ           6

 

I want to have a selection that is '1+' and '3+'. If i select '1+' that would be all the shows and if i select '3+' I can only see the last two shows. How can I set this up?

 

Thanks!

 
  • Hi Anonymous ,

     

    Does that meet your requirement?

    Measure = var a = MAX(Slicer[#Aired])
    return
    IF( a<=SUM('Table'[aired]),1,BLANK())

     

     

    Pbix as attached.

     

5 Replies

  • v-frfei-msft's avatar
    v-frfei-msft
    Community Support

    Hi Anonymous ,


    As we know, we cannot add measure to a slicer directly. We can use what if parameter to work on it. please refer to the following steps as below.

     

    1. Create a what if parameter like this.

    2. To create a measure and make the table  visual filtered by it.

    Measure = IF([# Aired]>=Parameter[Parameter Value],1,BLANK())

     

    For more details, please check the pbix as attached.

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      Thanks for your response. The challenge is we have a lot of data on shows and how many times they've aired. We only really need a view that splits it into '1+' and '3+'. Is it possible to get something like this?

       

       

      So 1+ would show everything on the list and 3+ would show the last two as well as a show that aired exactly 3 times.

       

      Thanks,

      Quanita

      • v-frfei-msft's avatar
        v-frfei-msft
        Community Support

        Hi Anonymous ,

         

        Does that meet your requirement?

        Measure = var a = MAX(Slicer[#Aired])
        return
        IF( a<=SUM('Table'[aired]),1,BLANK())

         

         

        Pbix as attached.

         

  • VasTg's avatar
    VasTg
    Memorable Member

    Anonymous 

     

    Why can't use expose the visual filter to the users to keyin the value with "is greater than or equal to" condition?