Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Hola comunidad,
Last value by Year = VAR LY = CALCULATE ( LASTNONBLANK ( 'Calendar Table'[Date], [Sum Valorisation] ), FILTER ( ALL ( 'Calendar Table' ), 'Calendar Table'[Date] <= MAX ( 'Calendar Table'[Date] ) ) ) RETURN CALCULATE ( [Sum Valorisation], FILTER ( ALL ( 'Calendar Table' ), 'Calendar Table'[Date] = LY ) )
Con esta solución obtengo el último valor conocido para cada línea, cada año
Es es posible obtener el total general de los valores retenidos por año?
Como puede ver a continuación cuando selecciono más de un activo, el último valor por línea funciona bien, pero el total general es falso. Lo necesito para calcular ratios de cartera.
Gracias.
Solved! Go to Solution.
Intente utilizar la función SUMX:
Measure = SUMX(VALUES('TABLE'[YEAR]),[Last value by year])
Saludos
Liang
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
Intente utilizar la función SUMX:
Measure = SUMX(VALUES('TABLE'[YEAR]),[Last value by year])
Saludos
Liang
Si esta publicación ayuda, considere Aceptarla como la solución para ayudar a los otros miembros a encontrarla más rápidamente.
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.