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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
GrahamR99
Resolver I
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;

Calculated Column.jpg

 

What is the DAX to get the correct calculation?

 

Regards

 

GrahamR99

  

2 ACCEPTED SOLUTIONS
Interkoubess
Solution Sage
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

View solution in original post

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)

 

Thank you for your help.

 

Regards

 

GrahamR99

View solution in original post

2 REPLIES 2
Interkoubess
Solution Sage
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

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)

 

Thank you for your help.

 

Regards

 

GrahamR99

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

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

April Fabric Community Update

Fabric Community Update - April 2024

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