cancel
Showing results for
Did you mean:

Fabric is Generally Available. Browse Fabric Presentations. Work towards your Fabric certification with the Cloud Skills Challenge.

Helper IV

## Sales QTY divided by Booked In as stock Movement

Hello

I'm tring to create a calculated column of Sales QTY divided by Booked in QTY to give me a Stock Movement percentage.

I have tried this;

Stock Movement = Append1[SQTY] / Append1[book_qty]

But it come up with Infinity.

I have a screen shot;

What is the DAX to get the correct calculation?

Regards

GrahamR99

2 ACCEPTED SOLUTIONS
Solution Sage

Hi @GrahamR99,

Please use this formula ( use calculate rather than the column) and let us know if it does not work:

`Stock Movement = Divide(Calculate(Append1[SQTY]),calculate(Append1[book_qty]),0)`

Thx

Ninter

Helper IV

Hello Ninter

Your formula did not work sorry;

I had to change it to;

Divide(Calculate(Sum(Append1[SQTY])),calculate(Sum(Append1[book_qty])),0)

Regards

GrahamR99

2 REPLIES 2
Solution Sage

Hi @GrahamR99,

Please use this formula ( use calculate rather than the column) and let us know if it does not work:

`Stock Movement = Divide(Calculate(Append1[SQTY]),calculate(Append1[book_qty]),0)`

Thx

Ninter

Helper IV

Hello Ninter

Your formula did not work sorry;

I had to change it to;

Divide(Calculate(Sum(Append1[SQTY])),calculate(Sum(Append1[book_qty])),0)

Regards

GrahamR99

Announcements

#### Power BI Monthly Update - November 2023

Check out the November 2023 Power BI update to learn about new features.

#### Fabric Community News unified experience

Read the latest Fabric Community announcements, including updates on Power BI, Synapse, Data Factory and Data Activator.

#### Exclusive opportunity for Women!

Join us for a free, hands-on Microsoft workshop led by women trainers for women where you will learn how to build a Dashboard in a Day!

#### The largest Power BI and Fabric virtual conference

130+ sessions, 130+ speakers, Product managers, MVPs, and experts. All about Power BI and Fabric. Attend online or watch the recordings.

Top Solution Authors
Top Kudoed Authors