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

Don't miss out! 2025 Microsoft Fabric Community Conference, March 31 - April 2, Las Vegas, Nevada. Use code MSCUST for a $150 discount. Prices go up February 11th. Register now.

Reply
Anonymous
Not applicable

DAX calculated column add text at the end

Hello,

I have the following calculated column formula which calculates the difference between two dates and i use it in a table visualization with the start date, end date and duration columns. But i want to add a text at the end of the duration value: " days".

Duration = DATEDIFF('Scores'[Start date],'Scores'[End date],DAY)+1

I tried to use the concatenate function but it does not work. Any help is much appreciated!

Duration = CONCATENATE((DATEDIFF('Scores'[Start date],'Scores'[End date],DAY)+1), " days")

 

1 ACCEPTED SOLUTION
jdbuchanan71
Super User
Super User

@Anonymous 

Try this.

Duration = DATEDIFF('Scores'[Start date],'Scores'[End date],DAY)+1 & " days"

View solution in original post

1 REPLY 1
jdbuchanan71
Super User
Super User

@Anonymous 

Try this.

Duration = DATEDIFF('Scores'[Start date],'Scores'[End date],DAY)+1 & " days"

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! Prices go up Feb. 11th.

Jan25PBI_Carousel

Power BI Monthly Update - January 2025

Check out the January 2025 Power BI update to learn about new features in Reporting, Modeling, and Data Connectivity.

Jan NL Carousel

Fabric Community Update - January 2025

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