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
Hayleysea
Resolver II
Resolver II

Cómo obtener el último valor sin espacio en blanco

Hola

Tengo ID, Fechas y Comentarios según según abajo (pretendiendo que la última fecha es 3/06/2020) Necesito obtener el último comentario no en blanco para rellenar en mi columna de resultados (texto azul)

FechaIdComentarioEl último comentario disponible
29/05/20201.AHolaHola 1

1/06/2020

1.AHola 1Hola 1
2/06/20201.A Hola 1
3/06/20201.A Hola 1

¿Necesito que los resultados aparezcan como lo hacen en la columna "último comentario disponible"? ¿Cómo escribo esta columna calculada?

¡¡Gracias!!

4 REPLIES 4
az38
Community Champion
Community Champion

Hola @Hayleysea

tratar de una medida

Last available Comment = 
var _lastDate = CALCULATE(MAX(Table[Date]), Table[Comment] <> BLANK() )
RETURN
CALCULATE(LASTNONBLANK(Table[Comment], 1), Table[Date] = _lastDate  )

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

¡Esto funciona! Gracias

amitchandak
Super User
Super User

@Hayleysea , Probar como

calculate(LASTNONBLANKVALUE(Table[date],max([Comment])), filter(all(table), table[date]<-max(table[date])))

Gracias, pero recibí este error: Se detectó una dependencia circular: Table[comment].

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.