Don't miss your chance to take exam DP-600 or DP-700 on us!
Request nowLearn from the best! Meet the four finalists headed to the FINALS of the Power BI Dataviz World Championships! Register now
Hola
Quiero comparar el KPI del período dado con el año pasado - fin de año. Entonces, por ejemplo, en la cortadora obtuve mayo de 2022, me muestra digamos Cantidad de ventas y quiero compararlo con el último año (por lo que mayo de 2021) pero cambió a diciembre de 2021
Supongo que va a ser una mezcla de funciones dateadd y endofyear? ¿Alguien puede ayudarme con eso?
Solved! Go to Solution.
Bien, mi solución es:
@Pbiuserr , remisión de estas medidas basadas en el día de hoy
con TI, es necesario seleccionar la fecha
último año último mes = CALCULATE(SUM(Sales[Sales Amount]),DATESMTD(dateadd('Date'[Date],-1*month(Today()),MONTH)))
No es necesario seleccionar la fecha
Este mes hoy =
var _min = eomonth(today(),-1)+1
var _max = eomonth(today(),0)
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
Último mes hoy =
var _min = eomonth(hoy(),-2)+1
var _max = eomonth(today(),-1)
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
Mismo mes del año pasado hoy =
var _min = eomonth(today(),-13)+1
var _max = eomonth(today(),-12)
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
Último mes Año pasado Hoy =
var _min = eomonth(today(),-1*month(Today())-1)+1
var _max = eomonth(today(),-1*month(Today()))
return CALCULATE([Net], FILTER('Date','Date'[Date] >=_min && 'Date'[Date] <= _max))
No los entiendo
Quiero comparar el valor de la selección de la segmentación de datos del usuario (que sea abril de 2022) con diciembre de 2021, luego el usuario selecciona junio de 2021 y compara el valor con diciembre de 2020
¿Esta medida resuelve eso?
Bien, mi solución es:
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
Check out the February 2026 Power BI update to learn about new features.