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
Anonymous
Not applicable

Calculation for all but selected value using row level security

I am implementing row level security on a data model that includes aggregate tables. I am using the aggregate tables to report the totals for my organization. However, I also want to show a rate for all programs but the selected program that is being filtered via row level security. I want the calculation to be dynamically populated. Please see the table below for sample data.

 

yr_trmstu_divrolekeycohort_pretain_pCohort_SumRetain_SumCalculated RateLevel
 
Calculate Rate for All but Selected GRANMS
      
1617FAGRGRPMGTfall_2016_cohortfall16_fall17_ret32022069%GR Program      
1617FAGRGRISEMfall_2016_cohortfall16_fall17_ret23616469%GR Program      
1617FAGRGRLTMSfall_2016_cohortfall16_fall17_ret161275%GR Program       
1617FAGRGRANMSfall_2016_cohortfall16_fall17_ret17213478%GR Program69%      
1617FAGRGRCSMSfall_2016_cohortfall16_fall17_ret503468%GR Program       
 GR Total   79456471%All GR Program       
1617FAUGUGINSCfall_2016_cohortfall16_fall17_ret926267%UG Program       
1617FAUGUGCISCfall_2016_cohortfall16_fall17_ret583662%UG Program       
1617FAUGUGGSTCfall_2016_cohortfall16_fall17_ret6467%UG Program       
1617FAUGUGIMEDfall_2016_cohortfall16_fall17_ret242083%UG Program       
1617FAUGUGMEBAfall_2016_cohortfall16_fall17_ret281657%UG Program       
1617FAUGUGBIOTfall_2016_cohortfall16_fall17_ret302687%UG Program       
1617FAUGUGANLYfall_2016_cohortfall16_fall17_ret200%UG Program       
1617FAUGUGUNDCfall_2016_cohortfall16_fall17_ret16850%UG Program       
 UG Total   25617267%All UG Program       
 Grand Total  1050736         
                
Selected Program in Bold             
1 REPLY 1
v-joesh-msft
Solution Sage
Solution Sage

Hi @Anonymous ,

As this post says:

"The only solution to the problem is to create static measures or a separate table where you hold certain, company-wide metrics/aggregations/calculations. This separate table should not be tied to RLS and then you can use the aggregated metrics in that table in your calculations"

Best Regards,
Community Support Team _ Joey
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

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.