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.
Necesito una medida que devuelva la diferencia entre el máximo de ayer y el máximo de hoy
así que esta es mi entrada:
nombre de la tabla: netusage
ejemplo de salida:
18.11.2020 sin datos - no me importa
19.11.2020 10300-10166 a 134
20.11.2020 10713-10300 á 413
intentó algo así:
todays_maximum =
CALCULATE(
MAX(netusage[Traffic]),
netusage[Date] = TODAY()
)
ysterdayss_maximum =
CALCULATE(
MAX(netusage[Traffic]),
netusage[Date] = TODAY()-1
)
Solved! Go to Solution.
Lo siento, no consideré la parte del tiempo. Eso afectará el resultado. Creo una nueva columna de fecha y cambio ligeramente el DAX.
por favor vea el archivo adjunto
Proud to be a Super User!
se puede tratar de crear una medida
Measure =
VAR yesterday=maxx(FILTER(all(netusage),'netusage'[Date]=SELECTEDVALUE('netusage'[Date])-1),netusage[Traffic])
return if(ISBLANK(yesterday),BLANK(),max(netusage[Traffic])-yesterday)
Proud to be a Super User!
Gracias por la respuesta rápida, acabo de probarlo, pero la medida no devuelve ningún valor, tal vez estoy haciendo algo mal.
Lo siento, no consideré la parte del tiempo. Eso afectará el resultado. Creo una nueva columna de fecha y cambio ligeramente el DAX.
por favor vea el archivo adjunto
Proud to be a Super User!
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 |