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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
Anonymous
Not applicable

Want to calculate procentage between two values with a calculated column

Hi!

I have tried alot of stuff with trial and error without success.

I want to calculate the procentage of two values. Example below:

danzlo94_0-1650963650467.png

 

 

Her i want to calculate how much in procentage i have left on safety stock.
If we divide Avail Qty / Safety Stock (Q) = 320*2400 = 0,13 or 13% that means that we are -87% from the safety stock amount which is correct.

However, when i have more than one value as can be seen below:

danzlo94_1-1650963650484.png

 

the procentage adds into a total procentage. What i want is to only calculate Avail Qty / Safety Stock (Q) = 201/300 = 0,67 or 67% and then be able to vizualize whats left in other words 0,33 or -33%


My calculated column for the safety stock table:

Safety Stock % = IF(INVENTORY_CURRENT[Safety stock]=0,1,INVENTORY_CURRENT[AvailableQuantity]/INVENTORY_CURRENT[Safety stock])-1

Hope that the information helps and that someone can aid me.

Kind Regards
1 REPLY 1
v-janeyg-msft
Community Support
Community Support

Hi, @Anonymous 

 

If you want to change the value according to your choice, you can't use calculated column, you need to change it to measure. The screenshot is too small to see anything. Can you share clearer data and graphs?

 

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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

Top Solution Authors