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
ecoast16
Frequent Visitor

Embedded/ISV using RLS with Generic Datasets

Hello - 

 

I am working in a Embedded BI/ISV environment, we use a single PBI instance/dataset with RLS to determine which information is shown to which client through our application.

 

We are in financial tech, and want to show Foreign Exchange (FX) rates to clients, which are not client specific, and so do not have any RLS applied. However, clients can also enter their own "custom" rates, which are client specific, and should only be shown to the clients who own that particular rate. The "custom" rate should override the rate on the generic table.

 

Our original thought was to do a custom column (dax) on the Generic Rates Table, that would look at the Custom Rates Table and if a rate was present it would use that, otherwise it would take the rate from the Generic Table (i.e. create new calculated column and the formula would be: for 01/01/2022, EUR-USD, if rate on Custom Table, Then Use Custom Rate, if not use generic rate for that date/rate combination).

 

However that approach doesnt work because columns in dax are calculated in memory prior to RLS kicking in when the report is rendered. So, we are not sure where to go, any help would be appreciated, or ideas that we could start running down! Thank you community in advance! 

 

Generic Rates Table

DateCurrencyRate
01/01/2022EUR-USD1.12
01/02/20222EUR-USD1.13
01/01/2022GBP-USD1.5

 

Custom Rates Table

DateCurrencyRateClient_Guid
01/01/2022EUR-USD1.14fc4d1222-fdb5-496e-89a2-3fb06ef51f86
01/02/20222EUR-USD1.15fc4d1222-fdb5-496e-89a2-3fb06ef51f86
01/01/2022GBP-USD1.60000853b-aa7e-42cb-9dba-dfded536d489

 

2 REPLIES 2
ecoast16
Frequent Visitor

Hi @Anonymous -

 

Thanks so much for your response. I am not sure I understand, are you able to give more information? and for the custom rates table, that does have RLS applied.

 

Thanks so much.

 

Jason

Anonymous
Not applicable

Hi  @ecoast16 ,

 

You can consider creating measures in these two tables to give rules, but these two tables do not set RLS, and are separate from the rest of the tables with RLS set.

 

Best Regards,

Liu Yang

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.