Ok, so i had a similar question to this about a week ago that got answered very simply and im hoping this one goes as well.
So heres what i have currently working:
Saved Search, Type : Item
Criteria: Type: Inventory
Now, heres where it gets tricky
Results Column 1: Name - Summary Type: Group
Results Column 2: QTY Available - Summary Type: Maximum
Results Column 3: Formula (Numeric) - Summary Type: Maximum -
Formula: sum(CASE WHEN {transaction.type} = 'Sales Order' AND {Today}-{transaction.trandate} < 90 then NVL({transaction.quantity},0)/3 else 0 end)
This gives me the sum of all qty sold in the past 90 days, divided by 3 ("rolling monthly average over last 3 months")
Results Column 4: Formula (Numeric) - Summary Type: Maximum -
Formula: max(NVL({quantityavailable},0))-sum(CASE WHEN {transaction.type} = 'Sales Order' AND {Today}-{transaction.trandate} < 90 then NVL({transaction.quantity},0)/3 else 0 end)
This gives me the difference between columns 2 and 3. Basically, if im only trying to keep 1 months worth of items available in stock at all times, subtracting these two numbers should tell me how much "over stock" i have...that is (how much more than 1 months worth do i have available)...
So heres the question: Now I want to add one more column, that divides column4 by column3. This will tell me "how many months worth of product am i overstocked on"
When i try to simply put "formula1"/"formula2" like so:
(max(NVL({quantityavailable},0))-sum(CASE WHEN {transaction.type} = 'Sales Order' AND {Today}-{transaction.trandate} < 90 then NVL({transaction.quantity},0)/3 else 0 end)/sum(CASE WHEN {transaction.type} = 'Sales Order' AND {Today}-{transaction.trandate} < 90 then NVL({transaction.quantity},0)/3 else 0 end))
i get the following error:
"Error
An unexpected error has occurred. Please click here to notify support and provide your contact information."
Is there an error in my syntax?