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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.

LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.