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

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.

Reply
Niiru1
Helper V
Helper V

LASTNONBLANK VALOR o máximo del valor de columna

Actualmente estoy tratando de obtener el último valor en cada columna que se mostrará a través de la siguiente medida:

Suma más reciente de totales diarios ? LASTNONBLANK(pg14[Suma de totales diarios],CALCULATE(SUM('pg14'[Suma de totales diarios])))
Mi mesa se ve así:
Número de semanaSuma de totales diarios
4119438
4211117
4311145
449134

Sin embargo, cuando ejecuto esta fórmula obtengo el segundo último valor 11145 y no el último 9134 que es el que necesito, ¿alguien sabe cómo hacer esto?

Gracias de antemano

1 ACCEPTED SOLUTION
mahoneypat
Employee
Employee

Debe utilizar LASTNONBLANKVALUE. Pruebe esta expresión de medida en un objeto visual de tarjeta, reemplazando Daily por el nombre real de la tabla.

LNB á LASTNONBLANKVALUE(Daily[Week Number], MAX(Daily[Sum of Daily Totals]))
saludos
palmadita




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Niiru1 , Probar como

Suma más reciente de totales diarios ? LASTNONBLANKVALUE(pg14[Número de semana],CALCULATE(SUM('pg14'[Suma de totales diarios])))

mahoneypat
Employee
Employee

Debe utilizar LASTNONBLANKVALUE. Pruebe esta expresión de medida en un objeto visual de tarjeta, reemplazando Daily por el nombre real de la tabla.

LNB á LASTNONBLANKVALUE(Daily[Week Number], MAX(Daily[Sum of Daily Totals]))
saludos
palmadita




Did I answer your question? Mark my post as a solution! Kudos are also appreciated!

To learn more about Power BI, follow me on Twitter or subscribe on YouTube.


@mahoneypa HoosierBI on YouTube


Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.