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.
Hola
Tengo que mostrar el texto como : "Dispositivo (A) tiene el máximo (50) Salida"
el siguiente es un conjunto de datos de ejemplo
Dispositivo | Datetime | Salida |
A | 10/25/2020 10:31:00 AM | 20 |
A | 10/26/2020 10:31:00 AM | 10 |
A | 10/27/2020 10:31:00 AM | 20 |
B | 10/25/2020 10:31:00 AM | 15 |
B | 10/26/2020 10:31:00 AM | 30 |
C | 10/26/2020 10:31:00 AM | 20 |
C | 10/27/2020 10:31:00 AM | 10 |
He intentado con el siguiente DAX, pero no obtener el resultado deseado:
Solved! Go to Solution.
Hola @jitpbi
con sus datos de muestra obtengo la siguiente solución:
Max Output =
VAR _Table = SUMMARIZE('Table',
'Table'[Device],
"Sum of Output",SUM('Table'[Output]))
VAR _DeviceWithMaxValue = CALCULATE(MIN('Table'[Device]),FILTER(_Table,MAX([Sum of Output])))
VAR _MaxValue = MAXX(_Table,[Sum of Output])
RETURN
"Device (" & _DeviceWithMaxValue & ") has the maximum (" & _MaxValue & ") Output"
Con saludos amables desde la ciudad donde la leyenda del 'Pied Piper de Hamelin' está en casa
FrankAT (Orgulloso de ser un Datanaut)
Hola
Prueba estas medidas
Highest output = MAXX(VALUES(Data[Device]),[Value])
Highest selling device = FIRSTNONBLANK(TOPN(1,VALUES(Data[Device]),[Value]),1)
Measure = "Device ("&Data[Highest selling device]&") has the maximum ("&[Highest output]&") output"
Arrastre la tercera medida a un objeto visual de tarjeta. Espero que esto ayude.
Hola @jitpbi
con sus datos de muestra obtengo la siguiente solución:
Max Output =
VAR _Table = SUMMARIZE('Table',
'Table'[Device],
"Sum of Output",SUM('Table'[Output]))
VAR _DeviceWithMaxValue = CALCULATE(MIN('Table'[Device]),FILTER(_Table,MAX([Sum of Output])))
VAR _MaxValue = MAXX(_Table,[Sum of Output])
RETURN
"Device (" & _DeviceWithMaxValue & ") has the maximum (" & _MaxValue & ") Output"
Con saludos amables desde la ciudad donde la leyenda del 'Pied Piper de Hamelin' está en casa
FrankAT (Orgulloso de ser un Datanaut)
Hola @FrankAT ,
He observado un tema en el dax que sugeriste. Siempre muestra el valor mínimo alfabético para el dispositivo:
VAR _DeviceWithMaxValue - CALCULATE(MIN('Table'[Device]),FILTER(_Table,MAX([Sum of Output])))
Por lo tanto, cada vez que muestra A. Por favor, sugiera cómo superar este problema.
Gracias
Hola @jitpbi
thx para su respuesta. La siguiente fórmula es ligeramente diferente a la primera. Lo probé con diferentes valores de salida. Ahora debería funcionar.
Max Output =
VAR _Table = SUMMARIZE('Table',
'Table'[Device],
"Sum of Output",SUM('Table'[Output]))
VAR _MaxValue = MAXX(_Table,[Sum of Output])
VAR _DeviceWithMaxValue =
CALCULATE(
MIN('Table'[Device]),
FILTER(_Table,[Sum of Output] = _MaxValue)
)
RETURN
"Device (" & _DeviceWithMaxValue & ") has the maximum (" & _MaxValue & ") Output"
Con saludos amables desde la ciudad donde la leyenda del 'Pied Piper de Hamelin' está en casa
FrankAT (Orgulloso de ser un Datanaut)
Hola @jitpbi ,
Puede intentar usar la función CONCATENAR en Power BI.
https://docs.microsoft.com/en-us/dax/concatenate-function-dax
Gracias
Pragati
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 |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
User | Count |
---|---|
2 | |
2 | |
1 | |
1 | |
1 |