Power BI is turning 10! Tune in for a special live episode on July 24 with behind-the-scenes stories, product evolution highlights, and a sneak peek at what’s in store for the future.
Save the dateEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
Hello!
Here's the issue I'm having:
So I have a column that contains multiple values in each cell, and I need to measure the total number of times a specific value appears in said column.
For example, a column contains the colors of a flag.
America: red|white|blue
UK: red|white|blue
Ukraine: blue|yellow
Mexico: red|white|green
how can I get a graph that finds the number of times a single color appears, such as:
Red: 3
white: 3
blue: 3
yellow: 1
green: 1
Thanks
Solved! Go to Solution.
In Power query, add a column like this:
= Text.Split([Flag_Colors], "|")
Expand the list column.
Add a column with the value 1.
Sum that column in your visual with the Color name as the legend value or as a column in the table or whatever the case may be.
IF this messes with other data in your report, then make a copy of the table first and then do this.
In Power query, add a column like this:
= Text.Split([Flag_Colors], "|")
Expand the list column.
Add a column with the value 1.
Sum that column in your visual with the Color name as the legend value or as a column in the table or whatever the case may be.
IF this messes with other data in your report, then make a copy of the table first and then do this.
User | Count |
---|---|
70 | |
70 | |
34 | |
23 | |
22 |
User | Count |
---|---|
96 | |
94 | |
50 | |
42 | |
40 |