Forum Discussion
Security: RLS & columns
- 8 years ago
Hello v-jiascu-msft,
Yeah I know it would be good practice to share the files always, but they are not so anonymized yet.
Actually when I started to make it more random data, it started to work for some reason ... ?
Alltho' I changed my DAX a little bit to this:
IF(maxX (Filter(RLSTable, RLSTable[User]=USERPRINCIPALNAME()) , RLSTable[RIGHTS]) = 1, LOOKUPVALUE(RLSTable[level1],'RLSTable'[User],USERPRINCIPALNAME()) = 'f_data'[level1], IF(maxX (Filter(RLSTable, RLSTable[User]=USERPRINCIPALNAME()) , RLSTable[RIGHTS]) = 4, LOOKUPVALUE(RLSTable[level4],'RLSTable'[User],USERPRINCIPALNAME()) = 'f_data'[level4]
I have to check this more deeply if it actually now works. And I try to anonymize the data also for others to use.
Cheers,
Niko
Hi Niko,
Please share a dummy pbix file. You can upload it to the cloud drive like OneDrive, GoogleDrive, then share the download link here.
Best Regards,
Dale
Hello v-jiascu-msft,
Yeah I know it would be good practice to share the files always, but they are not so anonymized yet.
Actually when I started to make it more random data, it started to work for some reason ... ?
Alltho' I changed my DAX a little bit to this:
IF(maxX (Filter(RLSTable, RLSTable[User]=USERPRINCIPALNAME()) , RLSTable[RIGHTS]) = 1, LOOKUPVALUE(RLSTable[level1],'RLSTable'[User],USERPRINCIPALNAME()) = 'f_data'[level1], IF(maxX (Filter(RLSTable, RLSTable[User]=USERPRINCIPALNAME()) , RLSTable[RIGHTS]) = 4, LOOKUPVALUE(RLSTable[level4],'RLSTable'[User],USERPRINCIPALNAME()) = 'f_data'[level4]
I have to check this more deeply if it actually now works. And I try to anonymize the data also for others to use.
Cheers,
Niko
- v-jiascu-msft8 years ago
Microsoft Employee
Thanks for sharing, Niko. You can post further questions anytime.
Best Regards,
Dale