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

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
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