The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredCompete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.
Hi Everyone,
I used DISTINCT( SELECTCOLUMN ('table'[id], "ID", 'table'[b-type], "Business Type") to create a calculated table.
The table now has unique combinations of ID and Business Type.
EX:
ID | Business Type |
1 | B |
2 | F |
3 | F |
3 | P |
How can I modify my calculated column so I only get one row per ID. Meaning in those cases where there are multiple Business Types per ID I just want to select one. It can be the highest alpanumeric value or simply the first value it encounters ( don't care the condition as long as it provides single value).
EX
ID | Business Type |
1 | B |
2 | F |
3 | F |
Any help with this would be greatly appreciated.
Thanks
Solved! Go to Solution.
Hi @czaldumbide ,
Try this code to create a new table using DAX:
Hi @czaldumbide ,
Try this code to create a new table using DAX:
User | Count |
---|---|
28 | |
12 | |
8 | |
7 | |
5 |
User | Count |
---|---|
36 | |
14 | |
12 | |
7 | |
7 |