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
aakif_aslam
Helper I
Helper I

RLS - Sales contribution % using total sales

Hi,

 

I am calculating contribution % by Region and State using the total sales and I need to apply RLS in the report.

Since I'm using total sales in the measure, the issue occurs after applying the RLS by region and state. 

 

aakif_aslam_0-1700219872830.png

For any particular RLS  filter (zone/state) the total sales get filtered, and the contribution % shows 100%.

 

aakif_aslam_1-1700219983255.png

I need to keep the total sales measure unaffected by RLS to calculate the actual contribution of any region and state.

As this is filtered on a model level, cannot control the RLS filter on a visual level, open to suggestions/new approaches.

 

Please Help.

@amitchandak 

@parry2k 

@Ritaf1983 

@Idrissshatila 

@Ashish_Mathur 

 

1 REPLY 1
marcelsmaglhaes
Super User
Super User

Hey @aakif_aslam ,

Probably you will need create a table or column which has no RLS restrictions and use that column or table for calculation in your dax/measure.

You should check the links:
Solved: Re: RLS - creating a measure to overide RLS - Microsoft Fabric Community
DAX to ignore row level security - DAX / DAX Calculations - Enterprise DNA Forum



Regards,
Marcel Magalhães
Microsoft Power BI Official Partner
MCT | Certified PL-300 Power BI

If I've helped, don't forget to mark my post as a solution!
Imagem de fundo



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.