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

Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers. Get Fabric certified for FREE! Learn more

Reply
talha_ts
Frequent Visitor

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
Super User
Super User

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!:
Power BI Cookbook Third Edition (Color)

DAX is easy, CALCULATE makes DAX hard...

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?

@talha_ts,

 

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
PBIApril_Carousel

Power BI Monthly Update - April 2025

Check out the April 2025 Power BI update to learn about new features.

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

Find out what's new and trending in the Fabric community.

Top Solution Authors