Supplies are limited. Contact info@espc.tech right away to save your spot before the conference sells out.
Get your discountScore big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount
Hello,
I am trying to create a dynamic RLS, but the problem is that my model is a many to many relationship between users table and mapping table and I am not able to create an active relationship with Security filter aplied.
This is the model:
Here is a sample of data from the model
1. Fact
dataset_entity | dataset_path |
EBE | silver/semarchy/merchants/acceptorReferential |
EBE | silver/sun/finance/ledgerAccount |
EBG | silver/tri2/merchant/invoiceBulletin |
EBG | silver/tri2/merchant/merchantData |
ECZ | silver/tri/operation/tVrfVoucherRedemptionForm |
ECZ | silver/tri/sales/tCusCustomer |
EDE | silver/sharepointFiles/marketing/salesforceProducts |
EDE | silver/sharepointFiles/operation/brandLookup |
EDE | silver/sharepointFiles/operation/cmoCardDetails |
EFI | silver/delicard/marketing/cards |
EFI | silver/delicard/marketing/customers |
2. Mapping
dataset_entity | Country | BL |
EBE | Belgium | Benefits |
EBG | UNKNOWN | |
ECZ | Czech Republic | Benefits |
EDE | Germany | Mobility |
EFI | Finland | Benefits |
And this is my Users table (exel file in the sharepoint, can be edited anytime by the owner) this will be linked to mapping table:
User | Country | BL |
a.b@aaa.com | Belgium | Benefits |
b.c@aaa.com | Belgium | Mobility |
d.e@aaa.com | Germany | Mobility |
e.f@aaa.com | Germany | Mobility |
g.h@aaa.com | Finland | Benefits |
h.i@aaa.com | Finland | Mobility |
j.k@aaa.com | Czech Republic | All |
l.m@aaa.com | All | Benefits |
So I need to create a dynamic RLS because users can be added or changed in a specific country and to give access to Country and BL
Thank you!
Solved! Go to Solution.
SOLUTION!
SOLUTION!
Create new columns on your mapping table and user table, e.g.
Combined Columns =
COMBINEVALUES ( "|", Mapping[Country], Mapping[BL] )
and then use the new columns to create a many-to-many relationship, single direction so that users filters mapping.
Thank you! but what about the situations where I have a user that needs to see the Country and all BL, or a user who needs to see a BL for every Countries?