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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Syndicate_Admin
Administrator
Administrator

Percentage of two data from the same group

Good morning

I am trying to generate a 100% bar chart in which I see the data of a stock, more specifically, the total stock and the percentage of the stock that does not have rotation. I know this data and I have it collected in two columns. The problem is that by incorporating them into the 100% graph, what it does is add up both total values and tell me what the percentage of each one is.

How do I tell you that 100% is the total stock and what I want to know is the percentage on that 100% that represents what has no rotation?

Thank you!

1 ACCEPTED SOLUTION

@Syndicate_Admin , You should create a measure

Divide(Sum(Table[No rotation]), Sum(Table[Stock]) )

 

and use that in bar visual

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

View solution in original post

2 REPLIES 2
Syndicate_Admin
Administrator
Administrator

In case it has not been clear, let's imagine that the total stock is 100 kg and I have 10 kg that have no rotation. In this way, I would like the chart to reflect that 10% of the stock has no rotation. However, if I add it to a 100% graph, the graph shows me that the percentage without rotation is 9.09%, because it adds the two values and calculates the percentages on the total, which are 110 kg.

@Syndicate_Admin , You should create a measure

Divide(Sum(Table[No rotation]), Sum(Table[Stock]) )

 

and use that in bar visual

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

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

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.

Top Solution Authors
Top Kudoed Authors