Forum Discussion

empoweredbi's avatar
empoweredbi
Regular Visitor
4 years ago
Solved

Counts for several fields in a single table

All of my variables are strings. I want to summarize/tally the number of times that every type of string occurs, for every column/field, for every row in my data set.    Given this input data:   ...
  • Syk's avatar
    4 years ago

    You can select all your columns in Power Query editor and under the transform tab hit unpivot columns. This will give you the Attribute and Value columns you're looking for.

    You can then create a merged column to get all of your combinations into one column and in Power BI desktop count your merged column.



    Just a note.. This seems pretty odd, what is your use case? Maybe we can come up with a better solution for you.