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

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes! Register now.

Reply
Anonymous
Not applicable

calculate percentage by category

HI i am having a dataset with grades of all the students and i need them as percentage by gender that is male or female.

The problem is when i am plotting the graphs seperately, each graph is individually summing their columns to 100%.

 

But when combined into a single stacked column chart the filters are working on the visual and disrupting the graph.

 

below is the sample dataset:

Ksp95_0-1656084612050.png

Ksp95_1-1656084752523.png

When the above two category graphs are combine i need them to stay as they are without interacting with each other.

 

Any suggestions and help will be really appreciated.

 

Thanks,

Sai

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hi @Anonymous ,

 

I suggest you to try Cluster column chart instead of Stacked column chart to combine two visuals.

You can create a visual by Cluster column chart as below.

RicoZhou_0-1656482392901.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hi @Anonymous ,

 

I suggest you to try Cluster column chart instead of Stacked column chart to combine two visuals.

You can create a visual by Cluster column chart as below.

RicoZhou_0-1656482392901.png

 

Best Regards,
Rico Zhou

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

 

amitchandak
Super User
Super User

@Anonymous , You can create a measure like

 

Divide( Sum(Table[Value]), Calculate(Sum(Table[Value]), removefilters(Table[gender])) )

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
September Power BI Update Carousel

Power BI Monthly Update - September 2025

Check out the September 2025 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.