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
zeckert
Helper I
Helper I

Need help calculating from a total every week until 0

I have an inventory for several products and a weekly run rate.  I need to set up a system that will allow me to forecast my inventory across a 52 week period.  It needs to recongnize there is no more inventory and show whatever lesser amount is.  I'd like this to be connected to a date table if possible.  It also needs to be able to filtered across all products.

EX.

RR = 2 Invetory = 10

week 1 RR = 2 Inventory = 8

product 1 RR =1 Inventory = 5

Product 2 rr = 2 Inventory = 5

week 2 RR = 2 Inventory = 6

product 1 RR =1 Inventory = 4

Product 2 rr = 2 Inventory = 4

week 3 RR = 2 Inventory = 4

week 4 RR = 2 Inventory = 2

week 5 RR = 2 Inventory = 0

week 6 RR = 0 Inventory = 0

6 REPLIES 6
v-jiascu-msft
Employee
Employee

Hi @zeckert,

 

Can you share the original data? A dummy one is enough.

1. What's "RR"?

2. What the result do you expect?

 

Best Regards,

Dale

Community Support Team _ Dale
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

the RR means Run Rate.  So basically i have formula that will count and calculate a 30 day average that will become my run rate per product.  I have a limited inventory for each product so each week the run rate is the amount of production each product will have and then will minus from the total inventory.  The inventory does not replenish so once it hits zero its zero onward.  I'll try to get a dummy set of data.  hopefully this might help a bit more.

 

Product 1   RR=5

product 2   RR=3

product 3   RR=4

 

here is a preview of the inventory that my averages will go against.

 

ProjectInventory6/28/20187/5/20187/12/20187/19/20187/26/20188/2/20188/9/20188/16/20188/23/20188/30/20189/6/20189/13/2018
  000000000000
7081615.7515.515.251514.7514.514.251413.7513.513.2513
7104321000000000
7131.5000000000000
71456.556.556.556.556.556.556.556.556.556.556.556.556.5
71524.522.752119.2517.515.751412.2510.58.7575.253.5
71652.551.755150.2549.548.754847.2546.545.754544.2543.5
7173026221814106200000
71826.522.751915.2511.57.7540.2500000
71961.56160.56059.55958.55857.55756.55655.5
72027272727272727272727272727
72112121212121212121212121212
72280.57977.57674.57371.57068.56765.56462.5
72341414141414141414141414141
724201.5201.5201.5201.5201.5201.5201.5201.5201.5201.5201.5201.5201.5
725183183183183183183183183183183183183183
72689.589.589.589.589.589.589.589.589.589.589.589.589.5
727110.5110.5110.5110.5110.5110.5110.5110.5110.5110.5110.5110.5110.5
72843434343434343434343434343
72983838383838383838383838383
73063636363636363636363636363
73168.568.568.568.568.568.568.568.568.568.568.568.568.5
73237373737373737373737373737
73489898989898989898989898989
73566666666666666666666666666
73683838383838383838383838383

Here is my averages that needs to reporduced in BI 

 

ProjectAverage 30 Days6/28/20187/5/20187/12/20187/19/20187/26/20188/2/20188/9/20188/16/20188/23/20188/30/20189/6/20189/13/2018
 23.5000000000000
7080.250.250.250.250.250.250.250.250.250.250.250.250.25
7101111100000000
7132.51.500000000000
7140000000000000
7151.751.751.751.751.751.751.751.751.751.751.751.751.75
7160.750.750.750.750.750.750.750.750.750.750.750.750.75
7174444444420000
7183.753.753.753.753.753.753.753.750.250000
7190.50.50.50.50.50.50.50.50.50.50.50.50.5
7200000000000000
7210000000000000
7221.51.51.51.51.51.51.51.51.51.51.51.51.5
7230000000000000
7240000000000000
7250000000000000
7260000000000000
7270000000000000
7280000000000000
7290000000000000
7300000000000000
7310000000000000
7320000000000000
7340000000000000
7350000000000000
7360000000000000

Here is my averages i need to reproduce in BI

 

ProjectAverage 30 Days6/28/20187/5/20187/12/20187/19/20187/26/20188/2/20188/9/20188/16/20188/23/20188/30/20189/6/20189/13/2018
 23.5000000000000
7080.250.250.250.250.250.250.250.250.250.250.250.250.25
7101111100000000
7132.51.500000000000
7140000000000000
7151.751.751.751.751.751.751.751.751.751.751.751.751.75
7160.750.750.750.750.750.750.750.750.750.750.750.750.75
7174444444420000
7183.753.753.753.753.753.753.753.750.250000
7190.50.50.50.50.50.50.50.50.50.50.50.50.5
7200000000000000
7210000000000000
7221.51.51.51.51.51.51.51.51.51.51.51.51.5
7230000000000000
7240000000000000
7250000000000000
7260000000000000
7270000000000000
7280000000000000
7290000000000000
7300000000000000
7310000000000000
7320000000000000
7340000000000000
7350000000000000
7360000000000000

Here is a Preview of the Run rate table i would like to reproduce in BI with minimal formulas

 

ProjectAverage 30 Days6/28/20187/5/20187/12/20187/19/20187/26/20188/2/20188/9/20188/16/20188/23/20188/30/20189/6/20189/13/2018
 23.5000000000000
7080.250.250.250.250.250.250.250.250.250.250.250.250.25
7101111100000000
7132.51.500000000000
7140000000000000
7151.751.751.751.751.751.751.751.751.751.751.751.751.75
7160.750.750.750.750.750.750.750.750.750.750.750.750.75
7174444444420000
7183.753.753.753.753.753.753.753.750.250000
7190.50.50.50.50.50.50.50.50.50.50.50.50.5
7200000000000000
7210000000000000
7221.51.51.51.51.51.51.51.51.51.51.51.51.5
7230000000000000
7240000000000000
7250000000000000
7260000000000000
7270000000000000
7280000000000000
7290000000000000
7300000000000000
7310000000000000
7320000000000000
7340000000000000
7350000000000000
736000000000000

0

 

 

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.