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, ¿me pueden ayudar con la fórmula para calcular varianzas basadas en valores filtrados?
Tengo esta fórmula para calcular la varianza con el año anterior, pero ¿cómo puedo cambiarla para que se base en el año actual frente al año filtrado? ¡Gracias de antemano por su ayuda!
Pruebe lo siguiente: YOY Var $ = VAR CurrentYearValue = CALCULATE( [Valor corto real], FILTER( 'Calendar_Ultimate', 'Calendar_Ultimate'[Año] = SELECTEDVALUE('Calendar_Ultimate'[Año]) ) ) VAR FilteredYearValue = CALCULATE( [Valor corto real], FILTER( 'Calendar_Ultimate', 'Calendar_Ultimate'[Año] = SELECTEDVALUE('Calendar_Ultimate'[Año]) - N // N representa el número de años atrás que desea filtrar ) ) RETURN CurrentYearValue - FilteredYearValue
Y para la varianza porcentual:
YOY Var % =
VAR CurrentYearValue =
CALCULATE(
[Actual Short Value],
FILTER(
'Calendar_Ultimate',
'Calendar_Ultimate'[Year] = SELECTEDVALUE('Calendar_Ultimate'[Year])
)
)
VAR FilteredYearValue =
CALCULATE(
[Actual Short Value],
FILTER(
'Calendar_Ultimate',
'Calendar_Ultimate'[Year] = SELECTEDVALUE('Calendar_Ultimate'[Year]) - N // N represents the number of years back you want to filter
)
)
RETURN
DIVIDE(CurrentYearValue - FilteredYearValue, FilteredYearValue)
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 | |
2 | |
1 |