Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Get inspired! Check out the entries from the Power BI DataViz World Championships preliminary rounds and give kudos to your favorites. View the vizzies.

Reply
Syndicate_Admin
Administrator
Administrator

ÚLTIMO NO EN BLANCO

Caro

Tengo esta medida (abajo), el cálculo para ello en las filas dentro de la tabla es correcto, pero en la suma se refiere al último valor no en blanco que tengo, no lo está resumiendo, amablemente si puede ayudar a modificar la medida, gracias

Costo =
DÓNDE COSTO =
REDONDO(CALCULAR (
LASTNONBLANK(
XXAWPT_FA_DEPRN_SUMMARY[ADJUSTED_COST],
XXAWPT_FA_DEPRN_SUMMARY[ADJUSTED_COST]
),
XXAWPT_FA_DEPRN_SUMMARY[DEPRN_SOURCE_CODE] = "DEPRN",
FILTRO (
XXAWPT_FA_DEPRN_SUMMARY,
XXAWPT_FA_DEPRN_SUMMARY[DEPRN_RUN_DATE]
= ..MAX ( XXAWPT_FA_DEPRN_SUMMARY[DEPRN_RUN_DATE] ))),0)
DEVOLUCIÓN
REDONDO(CALCULAR (
Costar
FILTRO (
TODO ( «*Fechas»),
'*Fechas'[Fecha]
<= ..MAX ( '*Fechas'[Fecha] )
)
),0)

Gracias

1123.png
3 REPLIES 3
Syndicate_Admin
Administrator
Administrator

Muchas gracias funcionó, 1 M felicitaciones, gracias @amitchandak

Syndicate_Admin
Administrator
Administrator

@bhelou ,

Este es un problema común.

Traté de reproducir su problema. El total debe ser 7 no 5.

vstephenmsft_0-1672651312821.png

Puede crear una nueva medida utilizando ISINSCOPE para resolver.

Measure = IF(ISINSCOPE('Table'[Month]),[Cost],SUMX('Table',[Cost]))

vstephenmsft_1-1672651364324.png

Saludos

Esteban Tao

Si esta publicación ayuda, considere Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

Syndicate_Admin
Administrator
Administrator

@bhelou , ¿Qué estás tratando de llegar aquí?

Compruebe cómo se suman los últimos valores

Último

https://amitchandak.medium.com/power-bi-get-the-sum-of-the-last-latest-value-of-a-category-f1c839ee8...

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

Check out the February 2025 Power BI update to learn about new features.

Top Solution Authors
Top Kudoed Authors