Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi to all,
I'm facing an issue regarding the association of data in my pivot table.
I'm displaying the average price for each material split up by months.
I use this calculation to get my average price: avg(TOTAL <MAT_MATERIAL_CODE> aggr(PYprice, MAT_MATERIAL_CODE)) and it works if I show up all the months. When I click on one single month, I get an incorrect value. Normally, the average of all months is the same and I wouldn't expect to change although I click on one single month.
How can I do in order to keep the value fixed regardless the month I click on?
Thanks
Cristina
I suggest to ignore the month in your setAnalysis expression.
Something like this:
=avg(TOTAL {$<Month=, MAT_MATERIAL_CODE>} aggr(PYprice, MAT_MATERIAL_CODE))
Hope it helps
If you are using Set Analysis
here is an example were we want the sum of the quantity
It will not change if Date, Country or ID Number is selected, you need something similar I think
Hi
I suspect that you need to include the month in the aggregation:
=avg(TOTAL <MAT_MATERIAL_CODE> aggr(PYprice, MAT_MATERIAL_CODE, month))
or
=avg(TOTAL <MAT_MATERIAL_CODE, month> aggr(PYprice, MAT_MATERIAL_CODE, month))
HTH
Jonathan
Edit:
I think that I misunderstood your requirement - to override the month selection:
=avg({<month=>} TOTAL <MAT_MATERIAL_CODE> aggr(PYprice, MAT_MATERIAL_CODE))
Jonathan
Thanks for your suggestion, I've tried to apply it but unfortunately it doesn't work. The values still change
Including the Month in the aggregation I get wrong values. The correct formula is that specified above.
Please, find attached my application
f you use setanalysis, you can ignore your selections.
Your file won't open
I don't understand why my file can't be open. My uploaded applications are never able to be open.
Am I doing something wrong?