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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

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
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

September Power BI Update Carousel

Power BI Monthly Update - September 2025

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

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.