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

Prepping for a Fabric certification exam? Join us for a live prep session with exam experts to learn how to pass the exam. Register now.

Reply
Boycie92
Resolver I
Resolver I

Segunda fecha última Total

Hola

Espero que alguien pueda ayudarme a tener una mesa muy simple.

Me gustaría poder crear una medida que proporcione la cifra (total) para la segunda última fecha disponible en mis datos. Por lo tanto, en este escenario 400. ¿Alguna idea?

Fecha Total

1/1/2020 100

2/1/2020 150

3/1/2020 400

4/1/2020 500

Gracias

Boycie92

4 REPLIES 4
amitchandak
Super User
Super User

@Boycie92

medida :
var _max maxx(allselected(Table),Table[date])
devolución
calculate(lastnonblankvalue(Table[date],Sum(Table[Total])),Table[Date]<_max)

O


medida :
var _max maxx(allselected(Table),Table[date])
devolución
calculate(lastnonblankvalue(Table[date],Sum(Table[Total])),filter(allselected(Table),Table[Date]<_max))

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Hola @amitchandak

Eso funciona perfectamente gracias. ¿Hay de todos modos para mostrar la segunda fecha las como una medida separada?

Gracias

Boycie92

@Boycie92 , Crear una medida de la misma manera que la anterior y en ese uso

max(Table[Date]) en lugar de Sum(Table[Total])

Full Power BI Video 20 Hours YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Fowmy
Super User
Super User

@Boycie92

Por favor revise esta solución,

https://community.powerbi.com/t5/Desktop/Show-second-last-date-value-in-card/td-p/531093

Did I answer your question? Mark my post as a solution! and hit thumbs up


Subscribe and learn Power BI from these videos

Website LinkedIn PBI User Group

Helpful resources

Announcements
PBIApril_Carousel

Power BI Monthly Update - April 2025

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

Notebook Gallery Carousel1

NEW! Community Notebooks Gallery

Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.

April2025 Carousel

Fabric Community Update - April 2025

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

Top Solution Authors
Top Kudoed Authors