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

Find everything you need to get certified on Fabric—skills challenges, live sessions, exam prep, role guidance, and more. Get started

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
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

Power BI Carousel June 2024

Power BI Monthly Update - June 2024

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

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

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