Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago

RLS modeling for dynamically filtering

Have an RLS dynamic filtering question

 

Have the user email along with the Divisions that users can see the data in following format. 

LocationemailDivision 1Division 2 Division 3Division 4
EAST[email protected]ABC DivXYZ Div123 Div 
EAST[email protected]ABC DivXYZ Div123 DivNEW Div
SOUTH[email protected]777 Div555 Div  

 

Fact has GI's for divisions . [email protected] should see only the qty of 50 for 3rd Oct. How can i filter in RLS for all various divisions based on email. 

GI NoDateQtyDivision
10001-Oct-2125XYZ Div
10013-Oct-2130ABC Div
10023-Oct-2120ABC Div
100315-Oct-2170555 Div
100415-Oct-2150123 Div
100520-Oct-21100NEW Div

 

on the Access Grp, i used email = USERPRINCIPALNAME(). Struck on dynamic filtering of location and divisions. 

Pbix is https://drive.google.com/file/d/1LKEIZmqAghp-El47AB_r0uWo0nWEbuCp/view?usp=sharing