Skip to main content

Notifications

Microsoft Dynamics 365 | Integration, Dataverse...
Answered

Formula powerfx field questions

(4) ShareShare
ReportReport
Posted on by 14
I thought I was going to have a super easy thing to do.
I want to take a name and create a field that has it in the correct order... NO... I don't want to go to settings and select my preference.  For reasons outside of this question pretend that a Name column holds "Last, First".  I wanted to make it First Last.  (not a settings thing)
 
Calculated fields don't have the requisite things, so I'm actually happy that I am forced to learn more power fx.  Simply, I figured a Concat (second part, " ", first part) shouldn't be that hard.  I should look for the comma and use it.  I expected something like this to work
 
Concatenate(
     Right(name, Len(name)-Find(",",name)-2),
     " ",
     Left(name, Find(",",name)-1)
)
 
Or similar.  I have reached the point of I can get the Left(name,10) - hard coded number)
And I can even do Left(name,Len(name))
but for some reason any time I add a "Find" to it, it won't save.
Categories:
  • Verified answer
    Tom_Gioielli Profile Picture
    Tom_Gioielli 280 on at
    Formula powerfx field questions
    The functions available with PowerFX in Dataverse is limited compared to what can be used in Canvas Apps.
     
     
    I think the goal is for them to have more parity, as evidenced by the long announced (but not yet implemented) feature for replacing rollup fields with Formula columns, or the fact that you still can't return a currency value at all. It's just a current limitation that we need to work around until it is hopefully implemented in the future.
     
    To your current requirement, I agree with @Adis that Power Automate can do the job. You might also look into a Data Flow. Since those use Power Query, you would be able to split apart columns by delimiter, recombine, and then update the Dataverse record and it could be done much quicker and with lower overhead than the Power Automate flow (provided this can be done on a regularly scheduled basis instead of on demand).
     
    Hope the link above helps, and good luck. It's frustrating when these little things seem to cause such a big headache.
     
    I hope this response helped. If it did, please mark as verified
  • Verified answer
    Adis Profile Picture
    Adis 2,677 Super User 2025 Season 1 on at
    Formula powerfx field questions
    Hey,
     
    I dont know the answer to be honest. However, the way I would approach it is using the format data by example in Power automate.
     
    Although, you are not using power automate, you can use it to create an expression and learn how it works. 
     
    From your example the following expression would be created.
     
     
    Kind regards, Adis
     

    If this helped, please mark it as "Verified" for others facing the same issue

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

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Congratulations to the January Top 10 leaders!

Check out the January community rock stars...

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,160 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 230,962 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans