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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

Reply
Anonymous
Not applicable

Help with organizing data for chart

Hi ,

 

I have a dataset with a row for every person. These people have answered multiple questions about if a certain aspect of a location is good, sufficient, insufficient, etc. What i want is a barchart with these ratings for all these questions at once.  The way my data is organised now it doesn't seem possible, but i'm sure i can transform it one way or the other so that it will be. 

 

Marleen_0-1654177206597.png

 

Earlier i had another - maybe similar - problem. People answered a question for their first sport and one for their second sport. It was the same question. What i wanted then was almost the same: to put it in one chart, where i want to count both answers (if one person answers yes for sport one, and yes for sport two, it's two times yes). I managed to get to what I need by grouping and unpivoting, see code below. I am actually unsure if this is the way to go and if I can use this idea again for the problem i have now. 

 

#"Grouped Rows" = Table.Group(#"Filtered Rows", {"Opwelkemanierisjouwsportgeorganiseerd", "Opwelkemanierisjouwsportgeorganiseerd_A"}, {{"organisatie", each Table.RowCount(_), Int64.Type}}),
#"Unpivoted Columns" = Table.UnpivotOtherColumns(#"Grouped Rows", {"organisatie"}, "Attribute", "Value")
in
#"Unpivoted Columns"

 

Thanks for suggestions!

 

1 REPLY 1
amitchandak
Super User
Super User

@Anonymous , What I think you need split by delimiter

https://www.tutorialgateway.org/how-to-split-columns-in-power-bi/

 

If this does not help
Can you share sample data and sample output in table format?

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Feb2025 NL Carousel

Fabric Community Update - February 2025

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