Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
coding7
Frequent Visitor

Conditional Formatting based on Row Level Security

Hi all,

 

Is it possible based on RLS, create a conditional formatting in a certain value/measure?

 

For example, having the cost value/measure, and if I put the users in a role called Green, for example, these users will see the negative values ​​in green. If I put the users in a role called Red, these users will see negative values ​​in red.

 

I tried searching but didn't find much information, if someone can help me in achieving this, I would appreciate it very much.

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @coding7 ,

Please refer the attached .pbix file.

Animation10.gif

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

2 REPLIES 2
johnyip
Solution Sage
Solution Sage

@coding7 , you need to setup a measure like the sample from @Anonymous, but also utilizing USERPRINCIPALNAME() and IF() to apply different colors as per different groups.



Please mark my post as the solution if this answers your question!
Appreciate your Kudos !!
Anonymous
Not applicable

Hi @coding7 ,

Please refer the attached .pbix file.

Animation10.gif

Best regards,
Community Support Team_Binbin Yu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.