web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Calculated Field in CDS
Power Apps
Answered

Calculated Field in CDS

(0) ShareShare
ReportReport
Posted on by 75

Hello,

I created a column in an Address entity to add 2 fields together. The fields are "FirstName" and "LastName". I called the calculated column as "FullName". In the formula window, I did the following: FirstName & " " & LastName, it says it is wrong. Then, I changed the columns to cr320_FirstName and did the same with LastName, and yet it is an error. I replace "&" with "+" sign, ditto. I would really appreciate any help. 

 

Thanks,

Isaiah A

I have the same question (0)
  • PowerBack19 Profile Picture
    679 on at

    @IsaiahA - Have you tried the CONCAT function in the calculated field's formula? Here is a reference page: https://docs.microsoft.com/en-us/dynamics365/customerengagement/on-premises/customize/define-calculated-fields#calculated-field-functions-syntax

  • IsaiahA Profile Picture
    75 on at

    Hello, 

    Thanks for you response. There is no CONCAT function on that link. When it comes to calculating two numeric field, it was so straight forward like say: Column1 * Column 2

     

    In the box that designated your formula, I was expecting something like: Column1 & " " & Column2. It is surprising to me that CDS would not give an example of how to concatenate two columns with a string. Hopefully, someone has created a calculated column in CDS that joins two fields together. 

     

    Thanks,

    Isaiah A. 

  • Verified answer
    PowerBack19 Profile Picture
    679 on at
    Actually the CONCAT function is listed in the "Calculated field functions syntax" section, found right below the DIFFINYEARS and above TRIMLEFT.

    Here is the information from the link:
    CONCAT (single line of text, single line of text, … single line of text)

    Returns a string that is the result of concatenating two or more strings.
  • PowerBack19 Profile Picture
    679 on at

    I apologize for not including this screen shot:

    CONCAT info from Microsoft DocsCONCAT info from Microsoft Docs

  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @IsaiahA ,

     

    Please try this: 

    Concat(firstname, " ", lastname)

     

    Snipaste_2019-12-30_15-20-29.png

    Sik

  • IsaiahA Profile Picture
    75 on at

    To those who have responded to my questions:

    Dear All,

    Thank you very much for responding to my questions. I will use the CONCAT function as described by you all.

    Sincerely, 

    Isaiah A. 

  • testasdfasfsafa Profile Picture
    309 on at

    This approach doesn't seem to work for Lookup field.  I need to concatenate 3 look up field and 1 multiselect and cannot find anything online on such topic. 😞

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 536

#2
WarrenBelz Profile Picture

WarrenBelz 426 Most Valuable Professional

#3
Haque Profile Picture

Haque 305

Last 30 days Overall leaderboard