Skip to main content
Announcements
SYSTEM MAINTENANCE: Thurs., Sept. 19, 1 AM ET, Platform will be unavailable for approx. 60 minutes.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Keeping fixed value regardless the drill


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

10 Replies
bruno_m_santos
Partner - Creator
Partner - Creator

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

rustyfishbones
Master II
Master II

If you are using Set Analysis

here is an example were we want the sum of the quantity

2013-11-11_1035.png

It will not change if Date, Country or ID Number is selected, you need something similar I think

jonathandienst
Partner - Champion III
Partner - Champion III

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

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Not applicable
Author

Thanks for your suggestion, I've tried to apply it but unfortunately it doesn't work. The values still change

Not applicable
Author

Including the Month in the aggregation I get wrong values. The correct formula is that specified above.

Not applicable
Author

Please, find attached my application

bruno_m_santos
Partner - Creator
Partner - Creator

f you use setanalysis, you can ignore your selections.

rustyfishbones
Master II
Master II

Your file won't open

Not applicable
Author

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?