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
Anonymous
Not applicable

Combining Date columns

I have two date columns.  Specifically, one date column is the "start date" the other is the "end date" both are formatted to display only the time.  I was to combine these columns so that I have one column with both start time and end time so that I can display it within a table or tooltip.

 

example:

 

original columns:

Date_Time_Start: 8:00:00 AM

Date_Time_End 8:30:00 AM

 

New column:

Time: 8:00am-8:30am

1 ACCEPTED SOLUTION

 Hi @Anonymous,

Based on my test, you could refer to below ways:

You could use TIMEVALUE function to fetch the time data, refer to below formula:

Time = CONCATENATE(TIMEVALUE('Table1'[Date_Time_Start]),CONCATENATE("~",TIMEVALUE('Table1'[Date_Time_End])))

Result:

1.PNG

Or you could use the RIGHT function to fetch the time value:

Time2 = CONCATENATE(RIGHT('Table1'[Date_Time_Start],11),CONCATENATE("~",RIGHT('Table1'[Date_Time_End],11)))

Result:

1.PNG

 

You could also download the pbix file to have a view.

 

 

Regards,

Daniel He

 

 

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

7 REPLIES 7
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Could you please tell me if your problem has been solved? If it is, could you please mark the helpful replies as Answered?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
v-danhe-msft
Microsoft Employee
Microsoft Employee

Hi @Anonymous,

Based on my test, you could refer to below formula:

Time = CONCATENATE('Table1'[Date_Time_Start],CONCATENATE("~",'Table1'[Date_Time_End]))

Result:

1.PNG

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Now my only issue is that the time start and time end columns were originally in Date/time format so in the new column it is showing me both the dates and times as text, I cannot change the column data type without receiving an error and I cannot change the edit the data because the date is used for a relationship.  How may I further format this new column to hide the dates and only show time?

Hi @Anonymous,

I could not understand the format of your data, you have posted your original data as below:

original columns:

Date_Time_Start: 8:00:00 AM

Date_Time_End 8:30:00 AM

Could you please post what your data look like in your data view?

 

Regards,

Daniel He

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

I had forgotten that I formatted the data beforehand.  The original data is in the format 'MM/DD/YYYY HH/MM/SS am/pm"  So when using the code given here I get a format of date and time in text.  I am unable to remove the date from the new columUntitled2.png

 Hi @Anonymous,

Based on my test, you could refer to below ways:

You could use TIMEVALUE function to fetch the time data, refer to below formula:

Time = CONCATENATE(TIMEVALUE('Table1'[Date_Time_Start]),CONCATENATE("~",TIMEVALUE('Table1'[Date_Time_End])))

Result:

1.PNG

Or you could use the RIGHT function to fetch the time value:

Time2 = CONCATENATE(RIGHT('Table1'[Date_Time_Start],11),CONCATENATE("~",RIGHT('Table1'[Date_Time_End],11)))

Result:

1.PNG

 

You could also download the pbix file to have a view.

 

 

Regards,

Daniel He

 

 

 

Community Support Team _ Daniel He
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Anonymous
Not applicable

Thank you.

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.