Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
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]))
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
79 | |
78 | |
58 | |
36 | |
33 |
User | Count |
---|---|
93 | |
59 | |
58 | |
49 | |
42 |