Forum Discussion

russm's avatar
russm
Helper I
10 years ago
Solved

Counting unique text occurrences across multiple columns?

I am new to DAX and to Power BI. I’m working with an existing qualitative data set and I need to count the occurrences of unique text values across multiple columns. The existing data set used a cont...
  • ImkeF's avatar
    10 years ago

    You do this in this query editor:

     

    1) Load your data-table

    2) Check column "Comment"

    3) Rightclick your mouse: "Unpivot Other Columns"

    4) Check column "Value"

    5) Rightclick mouse: "Group By" and just click "OK" (don't change the defaults here)

     

    This will deliver your table below. No need for the lookuptable so far. (But you can join it if you want to show the other values as well. The operation is called "Merge" in the PBI menu)