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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
stefan321
Helper I
Helper I

measure - get last date

I have the following table:

stefan321_0-1712049692299.png

Like to have a measure where i get the last "Online" (see Status column) date (Column Time) from each Server. 
Example:

Server A --> 19 Mar 2024 14:50:11
Server B --> 6 Mar 2024 15:50:14

 

It would be also nice when i can filter for that last online date with a measure field

3 REPLIES 3
sjoerdvn
Super User
Super User

There is obviously more going in your model & report, cannot help you with what info you provided so far.

sjoerdvn
Super User
Super User

Try something like below. Adjust for your table name, Also adjust if Status or Time have relationships with other tables (dimensions)

Last Online Time = CALCULATE(MAX('table'[Time]),ALL('table'[Time]),'table'[Status]="Online")

HI 
unfortunately it do not work.
Now i get only "Online" results, but i want to see in Table all other Status results as well, for example also"Offline"
Additionaly "Last Online Time" show wrong Time (compared to Time column )
In that example it should show for Server "geus" 28.11.2023 14:27:50

Is it possible to fitler that measure only for the last online Time?

stefan321_2-1712052714393.png

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

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

August 2025 community update carousel

Fabric Community Update - August 2025

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