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,
I am struggling to achieve something which seems quite simple!
I want to create a new table using DAX with distinct values of one column, and the value of one other column - in the original table there are multiple entries, but each has two different references which are the same of each row. See below example:
Original table
Ref1 Ref2 Amount
CDD ROO 34
CDD ROO 567
ABB TEE 467
ABB TEE 45
New Table
Ref1 Ref2
CDD ROO
ABB TEE
I can create the first column just using DISTINCT, but can't seem to return the other value. I tried LOOKUPVALUE but it returned blanks!
Any help greatly appreciated.
Thanks
David
Solved! Go to Solution.
Table = DISTINCT(SELECTCOLUMNS('Table',"Ref1",[Ref1],"Ref2",[Ref2]))
Thank you very much - both answers I have accepted as solutions!
Table = DISTINCT(SELECTCOLUMNS('Table',"Ref1",[Ref1],"Ref2",[Ref2]))
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 |
---|---|
109 | |
98 | |
77 | |
66 | |
54 |
User | Count |
---|---|
144 | |
104 | |
100 | |
86 | |
64 |