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

The FabCon + SQLCon recap series starts April 14th at 8am Pacific. If you’re tracking where AI is going inside Fabric, this first session is a can't miss. Register now

Reply
imagautham
Helper II
Helper II

How to combine 3 columns into a single column with HH:MM:SS format in Power Query editor

Hello PBI Community,

 

I have 3 columns which refers to the hours, Minutes and Seconds which an employee spent.

I tried to combine the 3 columns into a single column with HH:MM:SS format. But Im not getting accurate answer.

I selected these 3 columns in power query editor and clicked Transform->Merge Columns-> used colon as delimiter.

I get the below output.

The new column 'Merged' doesnot come in proper HH:MM:SS format. This is because in hours spent I have value as 0.

It should come as 00 in merged column.

Any idea how to do this in power query editor or in DAX?

 Screenshot 2022-11-10 110309.png

1 ACCEPTED SOLUTION
MahyarTF
Memorable Member
Memorable Member

Hi,

you could use the below Dax code for creating the column :

 time(Sheet15[Hour], Sheet15[Minutes], Sheet15[Second])
MahyarTF_0-1668063639201.png

Don't forget to change the dataType to Time and set the Format as you want.

Appreciate for your Kudos and Please mark it as solution if it helps you.

Mahyartf

View solution in original post

2 REPLIES 2
imagautham
Helper II
Helper II

Thanks @MahyarTF  for this

MahyarTF
Memorable Member
Memorable Member

Hi,

you could use the below Dax code for creating the column :

 time(Sheet15[Hour], Sheet15[Minutes], Sheet15[Second])
MahyarTF_0-1668063639201.png

Don't forget to change the dataType to Time and set the Format as you want.

Appreciate for your Kudos and Please mark it as solution if it helps you.

Mahyartf

Helpful resources

Announcements
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.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

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