Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
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!
Solved! Go to Solution.
A simple approach could be to do the following:
You should have an outcome that looks something like this:
A simple approach could be to do the following:
You should have an outcome that looks something like this:
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.
| User | Count |
|---|---|
| 53 | |
| 47 | |
| 30 | |
| 15 | |
| 14 |
| User | Count |
|---|---|
| 88 | |
| 73 | |
| 38 | |
| 26 | |
| 25 |