Calculate Max by label

Ari_Burg

New Member
Joined
Sep 29, 2015
Messages
1
Hello,

With the following pivot table (Kg_Max, Center,Product and Material):

Center Product Material kg_max
0052 110180 11133 547.205
0052 110180 11147 547.205
0052 110180 11217 547.205
0052 110180 11258 138.187
0052 110180 11534 547.205
0052 110180 11729 85.131


• Kg_Max := MAXX(VALUES([Mix]);calculate([Kg]))
• [Mix] = Center & Product & Material
• [Kg] = Sum(Kg)

I´m looking to correct all materials which have less Kg than the Max by Product. I mean, in this case the Kg_max is 547.205, so I would like to change his value by the Max, in the highlighted rows (138.187 & 85.131).

I have been trying for a while and it has been imposible.

The difference occur because not all materials are used every months, however the product could be made every month.

How can i do it?

Thanks in advance!
 
Last edited:

Excel Facts

Repeat Last Command
Pressing F4 adds dollar signs when editing a formula. When not editing, F4 repeats last command.
If I can understanding correctly, you could just add a calc column that has the max kg_max per Product?

=CALCULATE(MAX(MyTable[kg_max]), FILTER(ALL(MyTable), MyTable[Product] = EARLIER(MyTable[Product])))
 
Upvote 0

Forum statistics

Threads
1,224,120
Messages
6,176,494
Members
452,732
Latest member
EWRUCK

We've detected that you are using an adblocker.

We have a great community of people providing Excel help here, but the hosting costs are enormous. You can help keep this site running by allowing ads on MrExcel.com.
Allow Ads at MrExcel

Which adblocker are you using?

Disable AdBlock

Follow these easy steps to disable AdBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the icon in the browser’s toolbar.
2)Click on the "Pause on this site" option.
Go back

Disable AdBlock Plus

Follow these easy steps to disable AdBlock Plus

1)Click on the icon in the browser’s toolbar.
2)Click on the toggle to disable it for "mrexcel.com".
Go back

Disable uBlock Origin

Follow these easy steps to disable uBlock Origin

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back

Disable uBlock

Follow these easy steps to disable uBlock

1)Click on the icon in the browser’s toolbar.
2)Click on the "Power" button.
3)Click on the "Refresh" button.
Go back
Back
Top