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, as the title suggests I'm looking to populate a column in a new table with distinct values from a column in an existing table.
For example, Table1, Column1 = {1, 2, 2, 3, 4, 4, 5}
Should look like NewTable, NewColumn = {1, 2, 3, 4, 5}
Solved! Go to Solution.
Please try
Table2 = DISTINCT(Table1[Column1])
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
@Anonymous - Should be:
NewTable = DISTINCT(SELECTCOLUMNS('Table1',"NewColumn",[Column1]))
Hello! Are you able to adapt this formula to create a new column with unique values from two other columns? Say,
NewTable = DISTINCT(SELECTCOLUMNS('Table1',"NewColumn",{[Column1],[Column2]})
Or something to that effect?
Please try
Table2 = DISTINCT(Table1[Column1])
If this works for you, please mark it as the solution. Kudos are appreciated too. Please let me know if not.
Regards,
Pat
To learn more about Power BI, follow me on Twitter or subscribe on YouTube.
Where do I enter this code?
@Anonymous -
User | Count |
---|---|
73 | |
70 | |
38 | |
24 | |
23 |
User | Count |
---|---|
96 | |
93 | |
50 | |
41 | |
40 |