Forum Discussion
Getting distinct values for multiple columns
- 10 years ago
- 10 years ago
Hi Abhaykumar,
Use DAX and in DAX the function SUMMARIZE().
Summarize will pull out distinct values from columns.
So your resultset will be new table from Summarize
Table_Output = Summarize(Table_IN,Col1,Col2,Col3)
I hope it helps !
BR,
Achin
So you have to turn your multiple columns into one list first.
List.Distinct(List.Union({Source[Col1], Source[Col2], Source[Col3]}))Where "Source" is the name of the table/previous step
Thanks Imke for your reply. However I am getting the following error :
The expression is for creating a new table in Data view.
The error says :
A single value for column 'BlobName' in table 'ProdBlobInfo-Final' cannot be determined. This can happen when a measure formula refers to a column that contains many values without specifying an aggregation such as min, max, count, or sum to get a single result.