Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Tengo una tabla simple de dos columnas, similar en diseño a esta:
Grupo | Total |
Rojo | 504 |
Verde | 714 |
Amarillo | 923 |
Azul | 258 |
Blanco | 432 |
Negro | 805 |
Naranja | 601 |
Morado | 80 |
from which I need to find the maximum value of Total, and the Grupo to which it belongs.
I use the MÁXIMO function to find the maximum Total, but how can I get the Grupo associated with that maximum?
Solved! Go to Solution.
¿Algo así? ¿Es posible que tenga más de 1 Grupo para el Total máximo?
test = CALCULATE(VALUES('Table'[Group]),'Table'[Total]=MAX('Table'[Total]))
¿Algo así? ¿Es posible que tenga más de 1 Grupo para el Total máximo?
test = CALCULATE(VALUES('Table'[Group]),'Table'[Total]=MAX('Table'[Total]))
Lo usé, y funcionó, gracias.
Pero luego lo probé con MIN:
test = CALCULATE(VALUES('Table'[Group]),'Table'[Total]=MIN('Table'[Total]))
y no devolvió el resultado correcto.
No hay duplicación entre los números.
¿Alguna idea?
Ignora el último mensaje.
También funciona con MIN.
Gracias
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |