Microsoft is giving away 50,000 FREE Microsoft Certification exam vouchers!
Enter the sweepstakes now!Preparing for a certification exam? Ask exam experts all your questions on May 15th. Register now.
Hi,
I am hoping someone can help I have a very simple table.
I would like to be able to create a measure that would provide the figure (total) for the last date available in my data. So, in this scenario 500. Any ideas?
Date Total
1/1/2020 100
2/1/2020 150
3/1/2020 400
4/1/2020 500
Thanks,
Boycie92
Solved! Go to Solution.
Hi @Boycie92
try
Last Date Total =
var _lastDay = CALCULATE(MAX(Table[Date]), ALL(Table))
RETURN
CALCULATE(MAX(Table[Total]), Table[Date] = _lastDay)
@Boycie92 , try lastnonblankvalue
https://docs.microsoft.com/en-us/dax/lastnonblankvalue-function-dax
lastnonblankvalue(Table[Date],sum(Table[Total])
Hi @Boycie92 ,
Regards,
Harsh Nathani
Did I answer your question? Mark my post as a solution! Appreciate with a Kudos!! (Click the Thumbs Up Button)
@Boycie92 not sure how you are going to visualize it
and the following measure using one of the expression
Max Total =
VAR __lastDate = CALCLULATE ( MAX ( Table[Date] ), ALL ( Table ) )
RETURN
CALCULATE ( SUM ( Table[Total] ), Table[Date] = __lastDate )
I would ❤ Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!
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.
Check out the April 2025 Power BI update to learn about new features.
Explore and share Fabric Notebooks to boost Power BI insights in the new community notebooks gallery.
User | Count |
---|---|
77 | |
76 | |
69 | |
48 | |
41 |
User | Count |
---|---|
62 | |
41 | |
33 | |
30 | |
29 |