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
Hi Imke,
thanks for the hint - where do I enter the code in the querie editor? Do I have to create a new table first, or add a new step in an existing query?
Problem is that the querie editor shows source tables only, not the ones I caclulated.
Isn't there a Dax formula that I can use in a new table that says something like "copy all (distinct) values from Table A Column 1, and then below all (distinct) valies from Table 2 Column 1, ...."?
BR | Tobias
You CAN do it in your current query:
Add step manually by clicking the fx-sign:
But of course, this only works for tables that exist in the query editor.
If you've created them in the data view with DAX, then you won't have access to them there.
You might consider opening a new thread and specifically request a DAX-solution to enhance visibility of your request.