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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
Ksp95
New Member

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
v-rzhou-msft
Community Support
Community Support

Hi @Ksp95 ,

 

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
v-rzhou-msft
Community Support
Community Support

Hi @Ksp95 ,

 

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

@Ksp95 , You can create a measure like

 

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

Helpful resources

Announcements
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

Top Kudoed Authors