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
Mp1977
Helper II
Helper II

El último valor de la tabla

¡Hola!

Estoy tratando de obtener el último valor en la tabla que representan el saldo real. Lo intentéLASTNONBLANK pero necesita una expresión. Usé 1 como expresión, pero obtuve el número más grande para la última fecha, 22.908, pero necesito el número 22.818.


last value.png

Agradezco cualquier ayuda.

Gracias

8 REPLIES 8
V-lianl-msft
Community Support
Community Support

Hola @Mp1977 ,

Cree una columna de índice en el editor de consultas y, a continuación, cree una medida como esta.

Measure 2 = CALCULATE(LASTNONBLANKVALUE('Table (2)'[Index],SUM('Table (2)'[value])))

Saludos
Liang
Si este post ayuda, entonces considera Aceptarlo como la solución para ayudar a los otros miembros a encontrarlo más rápidamente.

@V-lianl-msft ,

¡Muchas gracias! Funcionó bastante bien.

amitchandak
Super User
Super User

@Mp1977 ,

Pruebe LASTNONBLANKVALUE(Table[Date], [Measure])

samdthompson
Memorable Member
Memorable Member

@Mp1977

•CALCULATE([Measure],LASTDATE('Date'[Date]))
Arroja eso en una carta y verás el balance máximo
Si se trata de una solución, marque como tal
// if this is a solution please mark as such. Kudos always appreciated.

Gracias por la respuesta ! Pero necesito el último valor de fila, el Max traerá otro valor que el último, con el saldo es más alto al principio del día.

samdthompson
Memorable Member
Memorable Member

@Mp1977

CALCULATE(<measure>, FILTER(ALLSELECTED([DATE])-LASTDATE([CALENDAR[DATE]))

// if this is a solution please mark as such. Kudos always appreciated.
az38
Community Champion
Community Champion

@Mp1977

¿qué es la lógica para el último valor? alguna pista?


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

¡Hola! La lógica es que el número es la última fila de la tabla.

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.