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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Counting values per column

Hi, here a question that I thought should be very simple. But after searching for a while on this forum and trying it myself I haven't found an answer yet. Maybe I'm overlooking a simple solution.

 

I have several extensive tables with data about students completing a multi-chapter course. The structure greatly simplified:

 

wsslzwrs_0-1654086745558.png

 

What I would like to achieve with Power BI:

  • computation per chapter: the percentage of students who have completed that particular chapter (in this example: 80% 60% 60% 40% 40%)
  • a visualization of these percentages as a bar chart (so 5 bars in this example)

 

Anyone any idea?

1 ACCEPTED SOLUTION
NickolajJessen
Solution Sage
Solution Sage

Start by unpivoting your data

NickolajJessen_1-1654088054737.png

after than you can do a count of the completed and divide i with the total 

NickolajJessen_2-1654088127680.png

 

View solution in original post

4 REPLIES 4
NickolajJessen
Solution Sage
Solution Sage

Start by unpivoting your data

NickolajJessen_1-1654088054737.png

after than you can do a count of the completed and divide i with the total 

NickolajJessen_2-1654088127680.png

 

Anonymous
Not applicable

Thanks! Succeeded with a grouped column chart:

 

wsslzwrs_1-1654176207672.png

 

 

NickolajJessen
Solution Sage
Solution Sage

Do you have the option to unpivot your data in power query?

Anonymous
Not applicable

Never used unpivot in Power BI before, but I looked up some documentation about this option and see the point of transforming this table to a more usable form. I am going to work on this.

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.