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

Total de la última fecha

Hola

Espero que alguien pueda ayudar, tengo una mesa muy simple.

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

Fecha Total

1/1/2020 100

2/1/2020 150

3/1/2020 400

4/1/2020 500

Gracias

Boycie92

1 ACCEPTED SOLUTION
az38
Community Champion
Community Champion

Hola @Boycie92

Tratar

Last Date Total =
var _lastDay = CALCULATE(MAX(Table[Date]), ALL(Table))

RETURN
CALCULATE(MAX(Table[Total]), Table[Date] = _lastDay)

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

View solution in original post

4 REPLIES 4
amitchandak
Super User
Super User

@Boycie92 , pruebe lastnonblankvalue

https://docs.microsoft.com/en-us/dax/lastnonblankvalue-function-dax

lastnonblankvalue(Table[Date],sum(Table[Total])

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

Hola @Boycie92

Tratar

Last Date Total =
var _lastDay = CALCULATE(MAX(Table[Date]), ALL(Table))

RETURN
CALCULATE(MAX(Table[Total]), Table[Date] = _lastDay)

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

Hola @Boycie92 ,

Total máx.


Calcular
(
SUM(Table[Total]), FILTER(ALL('Table'),Table[DATE] ? MAX(Table[Date]))
)

saludos
Harsh Nathani

¿Respondí a tu pregunta? ¡Marca mi puesto como solución! Apreciar con un Kudos!! (Haga clic en el botón Pulgarhacia arriba)

parry2k
Super User
Super User

@Boycie92 no está seguro de cómo lo va a visualizar

y la siguiente medida utilizando una de las expresiones

Max Total = MAX ( Table[Total] )

Max Total = CALCULATE ( MAX ( Table[Total] ), ALL ( Table] ) )

Me gustaría elogiossi mi solución me ayudó.👉Si puedes pasar tiempo publicando la pregunta, también puedes hacer esfuerzos para darle a Kudos quien haya ayudado a resolver tu problema. ¡Es una muestra de agradecimiento!



Subscribe to the @PowerBIHowTo YT channel for an upcoming video on List and Record functions in Power Query!!

Learn Power BI and Fabric - subscribe to our YT channel - Click here: @PowerBIHowTo

If my solution proved useful, I'd be delighted to receive Kudos. When you put effort into asking a question, it's equally thoughtful to acknowledge and give Kudos to the individual who helped you solve the problem. It's a small gesture that shows appreciation and encouragement! ❤


Did I answer your question? Mark my post as a solution. Proud to be a Super User! Appreciate your Kudos 🙂
Feel free to email me with any of your BI needs.

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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

Top Solution Authors
Users online (754)