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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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

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

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

Find out what's new and trending in the Fabric community.