on ‎2017 Mar 23 8:27 PM
Hello Team,
Apologies if its a lame question
I wrote a simple calculation on a helper key figure
" HcostAlert@DAYPRODLOCSRC = Avg(UnitCost@DAYPRODLOCSRC) "
Whereas this unit cost is a calculated key figure which is a simple division between Total production cost/production receipts.
Intention is to use this helper key figure of averaged unit price production across locations, and if Unit price for any given Location > Average unit price across location...throw an alert.
But getting struck with the below error.
E - In calculation 153129822 | HCOSTALERT@DAYPRODLOCSRC, aggregation and assignment are performed in a single step. Split it into two.
Whats wrong with this simple one line calculation
" HcostAlert@DAYPRODLOCSRC = Avg(UnitCost@DAYPRODLOCSRC) "
As its a helper KF, we dont have a request level. So how to split this and achieve the unit price comparision
Please help
Request clarification before answering.
Hi Venkat,
You can try following calculation.
Average unit price = Avg(HcostAlert@DAYPRODLOCSRC)
HcostAlert@DAYPRODLOCSRC = UnitCost@DAYPRODLOCSRC
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Venkat,
Write your syntax in 2 steps.
First aggregate value to required planning level
Then do the assignment to another key figure.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 12 | |
| 8 | |
| 4 | |
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.