Forum Discussion

Sandrine's avatar
Sandrine
Frequent Visitor
3 years ago
Solved

Filter page based on slicer selection

Hello everyone,

 

I have a slicer that goes from -2 to 200.

I would like to filter the page visuals (table, charts, etc) , so if my slicer selection is under 10 i would like to filter/display only values where my flag = 1 and my task = 1.

Kind regards

  • Anonymous's avatar
    Anonymous
    3 years ago

    Hi Sandrine ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data. 

    (2) We can create a measure. 

    Measure Filter = 
    var _selectedvalue=SELECTEDVALUE('Parameter'[Parameter])
    return
    IF(_selectedvalue<10&&_selectedvalue<>BLANK(), IF(SELECTEDVALUE('Table'[Flag])=1 && SELECTEDVALUE('Table'[Task])=1,1,0),1)

    (3) The following illustration shows that the measure values are filtered.

    Best Regards,

    Neeko Tang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly. 

1 Reply

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Sandrine ,

     

    According to your description, here are my steps you can follow as a solution.

    (1) This is my test data. 

    (2) We can create a measure. 

    Measure Filter = 
    var _selectedvalue=SELECTEDVALUE('Parameter'[Parameter])
    return
    IF(_selectedvalue<10&&_selectedvalue<>BLANK(), IF(SELECTEDVALUE('Table'[Flag])=1 && SELECTEDVALUE('Table'[Task])=1,1,0),1)

    (3) The following illustration shows that the measure values are filtered.

    Best Regards,

    Neeko Tang

    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.