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

Learn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now

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
Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

February Power BI Update Carousel

Power BI Monthly Update - February 2026

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

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.