We're giving away 30 tickets for FREE! Share your story, your vision, or your hustle and tell us why YOU deserve a ticket.
Apply nowWin a FREE 3 Day Ticket to FabCon Vienna. Apply now
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 |
---|---|
13 | |
12 | |
7 | |
7 | |
6 |
User | Count |
---|---|
25 | |
20 | |
11 | |
11 | |
5 |