Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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 |
---|---|
25 | |
12 | |
8 | |
6 | |
6 |
User | Count |
---|---|
26 | |
12 | |
11 | |
8 | |
6 |