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

Did you hear? There's a new SQL AI Developer certification (DP-800). Start preparing now and be one of the first to get certified. Register now

Reply
Sri_phani
Helper III
Helper III

Get First Datetime and Last datetime

Hi,

 

I am having a challenge with PowerQuery. I have Activity-wise details, I have to find the Login & Logout from those activities. The first time registered in login and the last time registered is logout within that date. 

 

I tried with an approach of first grouping the data with Employee name and Date. But that is where I am stuck.

 

Example: Below is the grouped data and in the same screenshot raw data is there in table.  From this screenshot employee login will be 10/4/2024 3 AM and logout will be 10/4/2024 5 AM.

 

Sample data -  https://docs.google.com/spreadsheets/d/1gKxpcn6-lXejQt_pIew7irDKvf6yMbdH92YbsgT27zc/edit?usp=sharing

 

Sri_phani_1-1728485327039.png

 

Thanks in advance. 

 

 

1 ACCEPTED SOLUTION
jgeddes
Super User
Super User

Does changing your grouping settings as below get you the result you are looking for?

jgeddes_0-1728504196144.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





View solution in original post

2 REPLIES 2
Sri_phani
Helper III
Helper III

Thank you very much. It helped. 

jgeddes
Super User
Super User

Does changing your grouping settings as below get you the result you are looking for?

jgeddes_0-1728504196144.png

 





Did I answer your question? Mark my post as a solution!

Proud to be a Super User!





Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

Check out the April 2026 Power BI update to learn about new features.

Fabric SQL PBI Data Days

Data Days 2026 coming soon!

Sign up to receive a private message when registration opens and key events begin.

New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Top Solution Authors