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

The Power BI DataViz World Championships are on! With four chances to enter, you could win a spot in the LIVE Grand Finale in Las Vegas. Show off your skills.

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
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

FebPBI_Carousel

Power BI Monthly Update - February 2025

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

Feb2025 NL Carousel

Fabric Community Update - February 2025

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

Top Solution Authors