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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch 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!

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.