Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
Hi!
I need help with the following issue:
I have
-a table with the groups to which users belong; (AD_GDWH_GROUPS )
- a table of statuses. (AD_GDWH_GROUP_STATUS)
Each employee is part of a group. And the group has access to a list of statuses.
How should I create the formula so that it returns all the statuses that a user has access to?
Expected Result:
ENTER USER ANDY -> STATES TO WHICH HE HAS ACCESS: A, C, D.
ENTER TED USER -> STATES TO WHICH HE HAS ACCESS: B.
I made this measure, but returns only one status:
#View =
LOOKUPVALUE (
DIM_FLOW_STATUS[STATUS_NAME],
DIM_FLOW_STATUS[STATUS_NAME],
LOOKUPVALUE (
AD_GDWH_GROUP_STATUS[STATUS_NAME],
AD_GDWH_GROUP_STATUS[GROUP], LOOKUPVALUE ( AD_GDWH_GROUPS[GROUP], AD_GDWH_GROUPS[USER], USERNAME () )
)
)
~~Thank youu!!
Solved! Go to Solution.
Hi @ANM_97 ,
If the amount of data is relatively small , you could try Static RLS that can be used to restrict data access for given users.
Please follow these steps:
1. Go to Modeling-->Manage roles to add roles with status filter like this:
[STATUS] IN {"A","C","D"}
[STATUS]="B"
2. Publish the report after creating some visuals.
3. Select the More options -->Serurity for this dataset, now you could add members/groups(groups are created in Office365).
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @ANM_97 ,
If the amount of data is relatively small , you could try Static RLS that can be used to restrict data access for given users.
Please follow these steps:
1. Go to Modeling-->Manage roles to add roles with status filter like this:
[STATUS] IN {"A","C","D"}
[STATUS]="B"
2. Publish the report after creating some visuals.
3. Select the More options -->Serurity for this dataset, now you could add members/groups(groups are created in Office365).
Best Regards,
Eyelyn Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@ANM_97 ,Measure/formula Not very clear. See if this blog can help
https://www.blue-granite.com/blog/using-dynamic-row-level-security-with-organizational-hierarchies
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
108 | |
100 | |
78 | |
64 | |
58 |
User | Count |
---|---|
148 | |
113 | |
97 | |
84 | |
67 |