Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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:
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
49 | |
25 | |
20 | |
15 | |
12 |
User | Count |
---|---|
57 | |
49 | |
44 | |
18 | |
18 |