cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
APD_Karl
Level: Power Up

Formula Autocorrect based on en-AU location is creating an error

I am trying to enter a text formula to put a dollar sign in front of a numeric value Text(ThisItem.Price, "$ ##.00") but the system must recognise that I am in Australia and keeps autocorrecting it to Text(ThisItem.Price, "[$-en-AU]$ ##.00") which then gives me an error "Language code 'en-AU' not supported'. If I delete the [$-en-AU] the system keeps putting it back. Would you believe this is part of the PowerApp Learn tutorial - unit 3 of 5. Not looking forward to setting up a Date field or Distance Mesurement.

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: Formula Autocorrect based on en-AU location is creating an error

Hi @APD_Karl ,

If you use Text function within app to format a Number to a currency type value, the Language tag within the Text function would be converted into local language tag automatically.

 

Based on the needs that you mentioned, I afraid that there is no way to achieve your needs in PowerApps currently.

 

In addition, there is no way to turn off the Autocorrect mechanism within the Text function in PowerApps currently.

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
4 REPLIES 4
Community Support Team
Community Support Team

Re: Formula Autocorrect based on en-AU location is creating an error

Hi @APD_Karl ,

Currently, the "Language code 'en-AU' is not supported within the Text function in PowerApps. When you run your app in Australia, the Language tag within yourText(...) formula within your app would be converted into the local language tag automatically.

More details about the available Language code supported within PowerApps, please check the following article:

https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-language#language-ta...

 

If you want the Text(...) formula to recognize that you are in Australia and keeps autocorrecting it into a correct value when you run your app in Australia, I afraid that there is no way to achieve your needs in PowerApps currently.

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:
https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

As an alternative solution, please consider take a try with the following formula:

Set the Text property of the Label to following formula:

If(
   Right(Language(), 2) = "US",
   "$ " & Round(ThisItem.Price, 2),     /* <-- Display as US Currency Symbol e.g. $ 1200.45 */
Right(Language(), 2) = "AU",
"A$ " & Round(ThisItem.Price, 2) /* <-- Display as Australia Currency Symbol e.g. A$ 1200.45 */ )

Please consider take a try with above solution, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Highlighted
APD_Karl
Level: Power Up

Re: Formula Autocorrect based on en-AU location is creating an error

Is this new formula all I place in the formula bar (I just get a blank feild when I do). Or does it go before / after the original formula "Text(ThisItem.Price, "$ ##.00")" (That didn't work either), Or does it go somewhere within the original formula?

 

I don't even need it to say A$, just $ would be fine. I only want to progress to the next stage of the PowerApps Learning Module.

 

What would be smart is if I could turn off Autocorrect while we wait for Microsoft to realise there is a whole world outside the USA.

Community Support Team
Community Support Team

Re: Formula Autocorrect based on en-AU location is creating an error

Hi @APD_Karl ,

If you use Text function within app to format a Number to a currency type value, the Language tag within the Text function would be converted into local language tag automatically.

 

Based on the needs that you mentioned, I afraid that there is no way to achieve your needs in PowerApps currently.

 

In addition, there is no way to turn off the Autocorrect mechanism within the Text function in PowerApps currently.

 

If you would like this feature to be added in PowerApps, please submit an idea to PowerApps Ideas Forum:

https://powerusers.microsoft.com/t5/PowerApps-Ideas/idb-p/PowerAppsIdeas

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
D10ny5u5
Level: Powered On

Re: Formula Autocorrect based on en-AU location is creating an error

I worked around this issue by updating the autofill language code to en-US and then formatting the date as I wanted to.

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

SecondImage

PowerApps Monthly Community Call

Next Wednesday, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 54 members 4,320 guests
Please welcome our newest community members: