Discussions
Dividing two formula fields causing error
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")