Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.
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
Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City
Check out the April 2024 Power BI update to learn about new features.
User | Count |
---|---|
2 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
2 | |
1 | |
1 |