cancel
Showing results for
Did you mean:

The ultimate Microsoft Fabric, Power BI, Azure AI & SQL learning event! Join us in Las Vegas from March 26-28, 2024. Use code MSCUST for a \$100 discount. Register Now

Resolver I

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

Resolver I

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

Resolver I

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

#### Microsoft Fabric Community Conference

Join us at our first-ever Microsoft Fabric Community Conference, March 26-28, 2024 in Las Vegas with 100+ sessions by community experts and Microsoft engineering.

#### Power BI Monthly Update - February 2024

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

#### Microsoft Fabric Career Hub

Explore career paths and learn resources in Fabric.

#### Microsoft Fabric Partner Community

Engage with the Fabric engineering team, hear of product updates, business opportunities, and resources in the Fabric Partner Community.

Top Solution Authors
Top Kudoed Authors