Forum Discussion

jf2204's avatar
jf2204
New Member
3 years ago
Solved

How to filter values in a slicer based on role in RLS

Hi, I have a slicer that lists all the divisions in the company. I need to be able to hide certain divisions based on the role the user is assigned in RLS. Is this possible. E.g. if someone is in a r...
  • v-yueyunzh-msft's avatar
    v-yueyunzh-msft
    3 years ago

    Hi , jf2204 

    According to your description, the end need is " just hiding values from the slicer".

    If this , Here are the steps you can refer to :
    (1)This is my test data:

    (2)If you do not see the "c and d" in slicer we can use this measure:

    Measure = var _slicer = SELECTEDVALUE('Table'[Column1]) 
    return
    IF(_slicer in {"c","d"} ,-1 ,1)

     

    (3)Then we can put the measure on the "Filter on this visual" and we can meet the need.

    Thank you for your time and sharing, and thank you for your support and understanding of PowerBI! 

     

    Best Regards,

    Aniya Zhang

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