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

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
Anonymous
Not applicable

Change value of a column based on the role applied via RLS

Hi,

I am using power bi embedded and using RLS to restrict the users viewing some rows once they are logged in.

 

There are some columns in my dataset which i would like to hide for some of the users who are not logged in.

 

I am passing a role for that case too using RLS but cannot use the measure/column to use the username and create a DAX column to show the dynamic data as it is not allowed to use customdata or username in a column. Is there any other way to achieve this? maybe change a value of the column if a certain role is selected using RLS.

 

 

Thanks

 

 

 

6 REPLIES 6
gaurav_singh
New Member

Facing similar problem did you find some workaround ?

alexa_0028
Resolver II
Resolver II

Hi, did you find answer? I am looking for something similar 
Please help me

 

Greg_Deckler
Community Champion
Community Champion

You could put the columns in a separate table.



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
Anonymous
Not applicable

Putting them in a separate column is not the solution to this because i want to put in a condition for calculated column or change the value of that column if the user has got access to it or not. 

 

Like showing ****** for users who dont have access and showing the value for the logged in users who have access.

 

the calculated column is not letting my apply the username condition neither directly nor via a measure.

 

hope I have explained it better now.

 

Thanks

 

Did you get a solution for this?

@Anonymous,

 

You may leave a comment and vote this idea up.

Community Support Team _ Sam Zha
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.