Check your eligibility for this 50% exam voucher offer and join us for free live learning sessions to get prepared for Exam DP-700.
Get StartedDon't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.
Hi,
I've got quite a unique scenario over here involving RLS implementation.
If you take a look at the sample data, it's the case that for individual users e.g. user1, I have corresponding manager information and I'm able to calculate the heirarchy in Path column using DAX PATH() function.
The problem lies with the rows where essentially users are merged in form of teams e.g. "user1/user2" and they may have different managers. As a starter, I created Calculated Username to get usernames from individual users (how? long story.)
Now, I need to create a column as portrayed in Calculated Path.
Sample Data:
User | Username | Calculated Username | Path | Calculated Path (Desired column) | |
user1 | user1@company.com | user1@company.com | Manager1 | user1 | Manager1 | user1 | |
user2 | user2@company.com | user2@company.com | Manager2 | user2 | Manager2 | user2 | |
user1/user2 | null | user1@company.com;user2@company.com | null | Manager1 | user1; Manager 2 | user2 |
Furthermore, I found this code by @TomMartens from https://community.powerbi.com/t5/Desktop/DAX-forumula-help-with-comma-separated-values/m-p/534837
//Awesome job on the code btw.
Hi, @a1b1c1
According to your description and DAX formula, I can not find the real reason and true location that the error occurs. Would you like to post your test pbix file(without sensitive data) and your expected result so that we can help you in advance?
Thanks very much!
How to Get Your Question Answered Quickly
Best Regards,
Community Support Team _Robert Qin
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
User | Count |
---|---|
123 | |
76 | |
63 | |
50 | |
50 |
User | Count |
---|---|
175 | |
125 | |
60 | |
60 | |
58 |