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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now

Reply
Goofr
Advocate IV
Advocate IV

Dynamically show dimension column based on user

Hi,

 

I have a  simple dimension table wich is related to my fact table.

This dimension table has 3 columns: 'id' (key), 'file' and 'file masked'.

Now when the user which is logged in has a special permission (based on Excel data) he may see the values in the 'file' column.

If he doesn't have this permission he should see the values in the 'file masked' column.

How can I obtain this functionallity using DAX.

Thanks in advance

Frank

1 ACCEPTED SOLUTION

Hi,

Thanks for your reply.

But I don't want to remove rows.

The data that needs to be shown is in the same record, however the displayed column has to be dynamic.
I ended up using the SELECTEDVALUE function.
In combination with some other filters I finally have a solution.

Thanks anyway.

Frank

View solution in original post

2 REPLIES 2
PurpleGate
Resolver III
Resolver III

Is it separate rows you want to remove based on the column [File Masked]?

 

 

In the Modeling tab, there is an option to manage roles there.  

 

 

I created a column with 1s and 0s to show which rows I wanted the user to see.

PurpleGate_0-1658844558488.png

 

 

Then I can test the view here:

PurpleGate_4-1658844047014.png

 

 

Then to apply it, I go to My workspace > Security > and then type what group of people can see what view.

PurpleGate_5-1658844226297.png

 

 

 

 

PurpleGate_6-1658844238920.png

 

 

Hi,

Thanks for your reply.

But I don't want to remove rows.

The data that needs to be shown is in the same record, however the displayed column has to be dynamic.
I ended up using the SELECTEDVALUE function.
In combination with some other filters I finally have a solution.

Thanks anyway.

Frank

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.