This topic contains 1 reply, has 0 voices, and was last updated by dmashburn3 8 years, 8 months ago.
-
AuthorPosts
-
February 23, 2016 at 7:29 am #5348
andrewcrumrineHello,
I categorize my inventory items by several overlapping classes. I’m trying to execute a summary search where I have the combined months of supply for each class of items. Months of supply is defined as the ratio between consumption per month and current quantity on hand.
I’m using Oracle’s analytic function to sum the total consumption over each class THEN divide by the sum of the quantity on hand for the items in each class. What I get is a result as shown in the attached file.
When I try and take the average on each field, grouping by class, I get an unexplained error with a message to contact support.
This is the current formula I’m using:
ROUND(sum /* comment */({custitem_rm_quantityonhand} + {custitem_rm_committed})OVER(PARTITION BY {custitem_sww})/NULLIF(ROUND(sum /* comment */({custitem_total_quant_sold}*{weight}*{custitem_pa perbasisweight}/NULLIF({custitem_finishedproductbasisweight},0)) OVER(PARTITION BY {custitem_sww})/12,0),0),2)
This is the skeleton structure that may be easier to digest:
SUM /* comment */({a}) OVER(PARTITION BY {c})/
NULLIF(SUM /* comment */({b}) OVER(PARTITION BY {c}),0)
Has anyone had any luck using Oracle’s Analytic Function in a summary search? An even better question to ask, is there an easier way to achieve my goal?
Thanks,
Andrew
This is a cached copy. Click here to see the original post. -
March 1, 2016 at 11:05 am #5349
dmashburn3I’m trying to do something similar with inventory tracking over time.
I found this website as a reference. It doesn’t go into too much detail but it might be of use.
andrewcrumrine replied on 03/04/2016, 12:56 PM: Thank you! The link you posted was the one I used to create my initial formula. I’ll reread it to see if I can find anything else.
Thanks again.
-
AuthorPosts
You must be logged in to reply to this topic.