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 / User defined functions...
Power Apps
Answered

User defined functions not working

(0) ShareShare
ReportReport
Posted on by 1,228 Moderator

I have been trying to get a grasp on how to use user defined functions UDF, however no matter what function I try to create, I always run into the same error. At the end of the formula it says it's wrong, since the formula expected a semicolon instead of a comma, however there is not a single comma in the entire formula. It is important to point out I am using the European notation, as well as I have an updated version of Powerapps, and enabled the New analysis engine and User defined functions features activated.

AmnAA_0-1714405786599.png

 

Categories:
I have the same question (0)
  • Verified answer
    TuongDoan Profile Picture
    573 Moderator on at

    You are using Spanish. So, when close those parentheses, you should use ";;" (double semicolon) instead of a single semi-colon.

     

    ---------------------------

    If the solution I provided assisted you in resolving this issue, kindly select "Accept as solution" This will help others in finding the solution more expediently 😄Also, a Thumbs up would be a great compliment!

  • AmínAA Profile Picture
    1,228 Moderator on at

    AmnAA_0-1714411832403.png

    While using the double semicolon allows the function to work properly, it presents me with the following problem. Whatever I input after said function, including a new function, won't work properly. So the problem is only half-solved, since most of the times I would need to use various functions.

  • TuongDoan Profile Picture
    573 Moderator on at

    Var1's data type is number. But you are trying to add text to it 😄

     

     

    ---------------------------

    If the solution I provided assisted you in resolving this issue, kindly select "Accept as solution" This will help others in finding the solution more expediently 😄Also, a Thumbs up would be a great compliment!

     

  • AmínAA Profile Picture
    1,228 Moderator on at

    I found what the problem was, I forgot you can not set vars within the Formulas. I tried creating another identical function to the one before, but with another name and it turns out it works. It seems that PowerApps just gets the errror wrong . . . Anyways, thank you for your help!

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 834

#2
Valantis Profile Picture

Valantis 533

#3
Haque Profile Picture

Haque 410

Last 30 days Overall leaderboard