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 guys,
I am a table of data similar to the one below:
ID | Assign to | Web Profile | Profile Attribute 1 | Profile Attribute 2 | More Attribute columns |
1 | A | A1 | Y | N | … |
1 | A | A2 | N | Y | |
2 | B | B | Y | N | |
3 | C | C | Y | Y | |
4 | D | D1 | Y | N | |
4 | E | D1 | N | N |
You will see for each customer ID, it can be assigned to different representatives - One ID can have several representatives to service at the same time like ID 4.
Meanwhile, eahc ID can have multiple web profile created for different purposes.
My goal of the exercise here is to add one column in my powberbi datatable by using M query to display the amount of unique/distinct web profile each ID has.
End result should looks like:
ID | Assign to | Web Profile | # Distinct Web Profile |
1 | A | A1 | 2 |
1 | A | A2 | 2 |
2 | B | B | 1 |
3 | C | C | 1 |
4 | D | D1 | 1 |
4 | E | D1 | 1 |
Any tips are appreciated.
Thank you!
A simple approach could be to do the following:
You should have an outcome that looks something like this:
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 June 2024 Power BI update to learn about new features.
User | Count |
---|---|
141 | |
116 | |
110 | |
65 | |
54 |
User | Count |
---|---|
245 | |
116 | |
103 | |
96 | |
92 |