This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hi all,
I am working with a live data connection which gets data in a hourly basis. I am facing difficulties in using DAX. I have a dataset similar to the one below.
Timestamp Value
15/06/2020 1:00 10
15/06/2020 1:00 12
15/06/2020 1:00 15
15/06/2020 2:00 11
15/06/2020 2:00 13
I want to show only the last value for each timestamp. For ex., i want the output to show as below,
Timestamp Value
15/06/2020 1:00 15
15/06/2020 2:00 13
Could someone pls suggest a way to do this?. Since this is a live connection i couldnt use the query editor. Is there any measure for this. After this, I want to plot the timestamp vs Value in the form of a line plot.
Thanks,
@amitchandak @parry2k @Greg_Deckler
Solved! Go to Solution.
Hi @pbidemouser2 ,
This is very strange.
Are you saying that you can‘t use the [Timestamp] column in the LASTNONBLANKVALUE() function?
What error did you encounter?
Please send a screenshot of your error message.
Or try this measure formula.
Measure 3 =
CALCULATE(
MAX(Sheet4[Value]),
ALLEXCEPT(Sheet4, Sheet4[Timestamp] )
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@pbidemouser2 , Try if this can help
LASTNONBLANKVALUE(Table[timestamp],sum(table[Value]))
Hi @pbidemouser2 ,
Please refer to the below formula.
Measure 2 =
LASTNONBLANKVALUE(
// the name of my table is 'Sheet4'
Sheet4[Timestamp],
MAX( Sheet4[Value] )
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
HI @v-lionel-msft ,
I tried the measure u told. The Sheet4[Timestamp] part doesnt work.
Since the Timestamp column isnt a measure here, i couldnt use it in this. Could you pls suggest me what to do?
Thanks
Hi @pbidemouser2 ,
This is very strange.
Are you saying that you can‘t use the [Timestamp] column in the LASTNONBLANKVALUE() function?
What error did you encounter?
Please send a screenshot of your error message.
Or try this measure formula.
Measure 3 =
CALCULATE(
MAX(Sheet4[Value]),
ALLEXCEPT(Sheet4, Sheet4[Timestamp] )
)
Best regards,
Lionel Chen
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi @v-lionel-msft ,
This measure shows the max value of each timestamp, not the latest one. Is there any other way to find the latest one?
Thanks
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 30 | |
| 23 | |
| 23 | |
| 17 | |
| 15 |
| User | Count |
|---|---|
| 61 | |
| 36 | |
| 29 | |
| 22 | |
| 21 |