Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a $100 discount. Register Now

Reply
tiztrain
Helper I
Helper I

Graphing a Column with Multiple Values in One Field

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.

chart.jpg

 

 

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.

2 ACCEPTED SOLUTIONS
jameszhang0805
Resolver IV
Resolver IV

unpivot the table after you splited column. then create measure countrows(table). put the dimension column and measure into chart

View solution in original post

stevedep
Memorable Member
Memorable Member
3 REPLIES 3
tiztrain
Helper I
Helper I

Thanks guys.

Man that GIF makes things easy to follow these days

stevedep
Memorable Member
Memorable Member
jameszhang0805
Resolver IV
Resolver IV

unpivot the table after you splited column. then create measure countrows(table). put the dimension column and measure into chart

Helpful resources

Announcements
March Fabric Community Update

Fabric Community Update - March 2024

Find out what's new and trending in the Fabric Community.

Fabric Community Conference

Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

Fabric Partner Community

Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors