Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hola
Estoy creando una medida a través de la cual cualquier rango de fechas que se esté seleccionando en el filtro de fechas obtenga el año máximo para él y calcule el gasto para ese año para todos los Qtr de los cuales los datos están presentes.
Por favor, revise la siguiente medida que he creado y adjuntar y por favor sugiera el camino a seguir para ello. Necesito el gasto total para el año máximo sin tener en cuenta la fecha seleccionada en el filtro.
En ella, @laraibashfaq
Prueba algo como:
MaxyearAmount =
VAR MaxYear =
CALCULAR (
MAX ( 'Date'[DateValue] ),
ALLEXCEPT ( 'Date', 'Date'[DateValue] )
)
DEVOLUCIÓN
CALCULAR (
MAX ( [Gastar] ),
FILTRO (
ALLEXCEPT ( 'Date', 'Date'[DateValue] ),
'Date'[DateValue] = MaxYear
)
)
Nops, esta función no funciona
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!