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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. 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))

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here

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])

Join us as experts from around the world come together to shape the future of data and AI!
At the Microsoft Analytics Community Conference, global leaders and influential voices are stepping up to share their knowledge and help you master the latest in Microsoft Fabric, Copilot, and Purview.
️ November 12th-14th, 2024
 Online Event
Register Here
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
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!

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.

Top Solution Authors
Top Kudoed Authors