Hi,
So I have a field that has multiple values captured in the column seperated by a comma.
3rdpartworks,encroachment,midas,sms,stakeholder,tenure |
encroachment |
3rdpartworks,encroachment |
3rdpartworks,encroachment,midas,tenure |
3rdpartworks,encroachment,midas,sms,stakeholder,tenure |
3rdpartworks |
3rdpartworks |
3rdpartworks |
.... |
I am wanting to be able to report it in a chart like below which counts the amount of times the value in the column.
I have thought about what is the best way to approach this task. I was thinking that I could use power query just to split out all the values using the comma as the deliminator. Then I could count all the columns up and that would be the result. The only issue there is the ordering of the split out values. In one row, "3rd Party" could be the first value and in the next "Encroachment" could be the first value.
Instead, I thought about using the "Card" widget and display the count of each value in a seperate widget but I don't like that option as much.
Solved! Go to Solution.
unpivot the table after you splited column. then create measure countrows(table). put the dimension column and measure into chart
Here you go:
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
Thanks guys.
Man that GIF makes things easy to follow these days
Here you go:
Proud to be a Super User!
Awesome Keyboard Shortcusts in Power BI, thumbs up if you like the article
My Community Blog Articles (check them out!)
My Blog - Power M code to automatically detect column types -
How to create test data using DAX!
unpivot the table after you splited column. then create measure countrows(table). put the dimension column and measure into chart
User | Count |
---|---|
124 | |
53 | |
34 | |
31 | |
30 |
User | Count |
---|---|
154 | |
54 | |
38 | |
32 | |
27 |