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

Data Days is here! Join us now for 60+ days of learning, challenges, and connection. Learn more

Reply
topazz11
Helper III
Helper III

data transform using Power M

Hello,

 

Can somebody help me out how to transform the data as below?

Thanks in advance.

 

Screenshot 2023-11-16 125118ddd.png

 

data here

typedate_timenamecarDate
Key In2023-11-14T14:25:56.0370000KimT11111/14/2023
Key Out2023-11-14T11:33:54.0570000KimT11111/14/2023
Key In2023-11-08T16:57:54.0570000KimT11111/8/2023
Key Out2023-11-08T14:49:20.0530000KimT11111/8/2023
Key In2023-11-06T17:25:38.0530000KimT11111/6/2023
Key Out2023-11-06T14:28:34.0500000KimT11111/6/2023
Key In2023-10-10T17:45:20.0370000KimT11110/10/2023
Key Out2023-10-10T16:30:29.0430000KimT11110/10/2023
Key In2023-10-10T10:10:40.0430000KimT11110/10/2023
Key Out2023-10-10T08:04:51.0470000KimT11110/10/2023
Key In2023-10-06T13:00:23.0370000KimT11110/6/2023
Key Out2023-10-06T09:29:57.0400000KimT11110/6/2023
Key In2023-10-06T10:03:11.0370000KimT11110/6/2023
Key Out2023-10-06T08:22:57.0400000KimT11110/6/2023
Key In2023-10-06T07:53:11.0370000KimT11110/6/2023
Key Out2023-10-06T07:32:57.0400000KimT11110/6/2023
1 ACCEPTED SOLUTION
Ahmedx
Super User
Super User

3 REPLIES 3
Ahmedx
Super User
Super User

to know how to do this watch my video

https://1drv.ms/v/s!AiUZ0Ws7G26Ri3kmDBya1NhjQJBC?e=5gTdas

Ashish_Mathur
Super User
Super User

Hi,

In the Query Editor, click on any cell in the type column and click on Pivot Column.  Select date_time column and the Aggregate function as Don's aggregate.


Regards,
Ashish Mathur
http://www.ashishmathur.com
https://www.linkedin.com/in/excelenthusiasts/
lbendlin
Super User
Super User

Shouldn't the duration be Key_in - Key_out ?

Helpful resources

Announcements
Fabric Data Days is here Carousel

Fabric Data Days 2026

Don't miss out on Data Days, June 15 through August 7. Learn Fabric, Power BI, SQL, AI and more.

May Power BI Update Carousel

Power BI Monthly Update - May 2026

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

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.