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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

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
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.