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

I want to create a measure in the dashboard with "Manage Roles"

Hello everbody,

I need to create an automatic measure with informatics of the "Manage Roles"

The idea is that when the user reads his document on the dashboard, he shows the name through the measure linked to the managed view.

Thanks in advance,
Jesiel
1 ACCEPTED SOLUTION
v-yanjiang-msft
Community Support
Community Support

Hi @jesielcarrascos ,

If it has many users in the report and you want each user see different content, you should create dynamic Row Level Security, which use the DAX function USERNAME. Here're the steps:

1.Take a simple example, you want Tom see A in Column1 and Jack see B, create a table like below.

vkalyjmsft_4-1652161839988.png

2.In Manage roles, add filter on the User Name column.

vkalyjmsft_0-1652161627078.png

Create DAX formula

 

 

[User Name]=USERNAME()

 

 

vkalyjmsft_1-1652161642639.png

3.In Desktop, if you want to view roles, select both New role and Other user, then enter the user accout.

vkalyjmsft_3-1652161792291.png

It works fine

vkalyjmsft_2-1652161753702.png

4.In Service, in the dataset Security tab, add all users to the role.

vkalyjmsft_5-1652163045943.png

vkalyjmsft_6-1652163119345.png

When Tom@microsoft.com  loged in Service, he will only see A in Column1, when Jack@microsoft.com  loged in Service, he will only see B.

 

Best Regards,
Community Support Team _ kalyj

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

3 REPLIES 3
v-yanjiang-msft
Community Support
Community Support

Hi @jesielcarrascos ,

If it has many users in the report and you want each user see different content, you should create dynamic Row Level Security, which use the DAX function USERNAME. Here're the steps:

1.Take a simple example, you want Tom see A in Column1 and Jack see B, create a table like below.

vkalyjmsft_4-1652161839988.png

2.In Manage roles, add filter on the User Name column.

vkalyjmsft_0-1652161627078.png

Create DAX formula

 

 

[User Name]=USERNAME()

 

 

vkalyjmsft_1-1652161642639.png

3.In Desktop, if you want to view roles, select both New role and Other user, then enter the user accout.

vkalyjmsft_3-1652161792291.png

It works fine

vkalyjmsft_2-1652161753702.png

4.In Service, in the dataset Security tab, add all users to the role.

vkalyjmsft_5-1652163045943.png

vkalyjmsft_6-1652163119345.png

When Tom@microsoft.com  loged in Service, he will only see A in Column1, when Jack@microsoft.com  loged in Service, he will only see B.

 

Best Regards,
Community Support Team _ kalyj

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

jsaunders_zero9
Responsive Resident
Responsive Resident

Hi @jesielcarrascos

I am afraid this will require a better explanation, maybe some images would help too.

James

Of course @jsaunders_zero9 ,

When selecting the view:

jesielcarrascos_0-1651661217853.png
jesielcarrascos_1-1651661524665.png
The text change will be according to the view selection

jesielcarrascos_2-1651661685179.png

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.