Forum Discussion

OSCARJD's avatar
OSCARJD
Copper Contributor
Aug 31, 2022

Power Query for EXCEL MAX & MIN

Hello, I hope you can help me out to solve this in power query for EXCEL. I have two tables "TABLA BASE ACTUAL" and "TABLA CLASIFICACION". In the second one, I have a classification "Clasificación" that is individual for each obligation number "Obligación". However in the first one ,I should consolidate de maximum and the minimum "Classification" based on the ID. It means each ID should have different obligations but I have to consolidate or have the max and the min of the "Clasificación" for each individual. I have attached current situation and the expected outcome. Thanks

TABLA BASE "CURRENT SITUATION"
ObligaciónIDClasificación
32451567891
2156761902
9623153223
91401567892
35231567894
7860190075
6412761901
2367198753
1938362060
1623124890

 

TABLA CLASIFICACION
ObligaciónClasificación
96233
91402
78605
64121
35234
32451
23673
21562

 

TABLA BASE "EXPECTED OUTCOME"  
ObligaciónIDClasificaciónMaxMin
3245156789441
215676190221
962315322333
9140156789441
3523156789441
786019007555
641276190221
236719875333
193836206000
162312489000

Resources