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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Daisuke
New Member

Row level security control by page

Repost: Since I think my previous post may confuse

 

Question: Is it possible to set row level security control by page?

 

Here is example

<User Table>

UserRegion
AEast
BWest
CCentral

 

<Sales Table>

RegionSales
East$100
West$200
Central$300

 

There are 2 pages  "Country" and "Region"

 

  • When user goes to "Country" page, total number of sales, $600, is shown with the following table.
    RegionSales
    East$100
    West$200
    Central$300
    Total$600
  • When user goes to "Region" page, only regional data is shown. For instance, if user A access to the page, $100 is shown.
    RegionSales
    East$100

 

I would appreciate for your support

1 ACCEPTED SOLUTION
ribisht17
Super User
Super User

@Daisuke 

 

You can make use of USERNAME function (DAX) - DAX | Microsoft Docs on the Region page only

 

Suppose you have a Security Table

 

Security

UserName | Region | 

A |East

B | West

C | South

Join above with your dataset

Then

Condition

User Name=username() && [Security]Region= Region

[Table]

 

Ritesh

View solution in original post

2 REPLIES 2
Daisuke
New Member

@ribisht17 
thanks. I could solve!

ribisht17
Super User
Super User

@Daisuke 

 

You can make use of USERNAME function (DAX) - DAX | Microsoft Docs on the Region page only

 

Suppose you have a Security Table

 

Security

UserName | Region | 

A |East

B | West

C | South

Join above with your dataset

Then

Condition

User Name=username() && [Security]Region= Region

[Table]

 

Ritesh

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

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