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

July 7 - July 17 | Round 2 of the Power BI Dataviz World Championships. Don't miss your chance! Learn more

Reply
slounsbury
Helper II
Helper II

Adding Units To Calculated Column

This is probalby a super easy solutions to this but after trying several different methods from the forum I couldn't get it to work. I have several columns that I need to either have time units added to them (ie. Hour, Day, Minute).

 

Here is an example of one of my columns that needs to have the "Days" unit added:

 

ART = ABS(DATEDIFF(v_rpt_Service_SLA[Date_Responded_UTC], v_rpt_Service_SLA[ART_ST],HOUR))

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Am not sure this is what you expect ....Please let me know if you need something else  🙂

 

Adding & "Days" at the end of your formula will solve the problem.

 

ART = ABS(DATEDIFF(v_rpt_Service_SLA[Date_Responded_UTC], v_rpt_Service_SLA[ART_ST],HOUR)) & "Days"

 

Thanks

Raj

View solution in original post

4 REPLIES 4
Anonymous
Not applicable

Hi

Could you please make the question clear ?  OR Can you please post some details / sample with what do you have and what do you expect?

 

Thanks
Raj

Of course, I have all three of these columns of which the last one I created through a DATEDIFF calculation as shown above. Currently It looks like this:

Date_Responded_UTCART_START
11/6/17 8:00 PM11/7/17 8:00 PM1
11/7/17 8:00 PM11/11/17 8:00 PM4

 

I am wanting it to look like this:

Date_Responded_UTCART_START
11/6/17 8:00 PM11/7/17 8:00 PM1 Days
11/7/17 8:00 PM11/11/17 8:00 PM4 Days
Anonymous
Not applicable

Am not sure this is what you expect ....Please let me know if you need something else  🙂

 

Adding & "Days" at the end of your formula will solve the problem.

 

ART = ABS(DATEDIFF(v_rpt_Service_SLA[Date_Responded_UTC], v_rpt_Service_SLA[ART_ST],HOUR)) & "Days"

 

Thanks

Raj

Thank you @Anonymous, This worked great! I had been trying to place the & "Date" inside the parenthesis.

Helpful resources

Announcements
FabCon and SQLCon Barcelona 2026

FabCon & SQLCon – Barcelona 2026

Join us in Barcelona for FabCon and SQLCon, the Fabric, Power BI, SQL, and AI community event. Save €200 with code FABCMTY200.

60 days of Data Days Carousel

Data Days 2026

Join Fabric Data Days 2026: 60 days of free live/on-demand sessions, challenges, study groups, and certification opportunities.

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.