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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

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
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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

Top Solution Authors