The ultimate Microsoft Fabric, Power BI, Azure AI, and SQL learning event: Join us in Stockholm, September 24-27, 2024.
Save €200 with code MSCUST on top of early bird pricing!
Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started
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.
Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.
Check out the August 2024 Power BI update to learn about new features.
User | Count |
---|---|
113 | |
83 | |
72 | |
49 | |
42 |
User | Count |
---|---|
139 | |
113 | |
73 | |
64 | |
63 |