cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
nenandi
Frequent Visitor

Value score with "," instead "."

How to solve this, the value of the variable is stored with "," instead of with "." due to different regional user settings,

depending on the user, I get the result with a comma or a period 93,33 instead 93.33, so it is not easy to calculate the average

the result of the quiz is kept in excel.

Thx

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @nenandi,

Have you tried my solution?

If you patch data to excel table, I think only a General column could save the format changes through Power Apps.

Whatever region your users are in, just make sure the following steps:

1). Make sure the aimed column in Excel table is a General type

2). Make sure the format change is operated at the last step

For example, if you use the Patch(). please write it as below:

 

 

 

Patch(Table1,Defaults(Table1),{Score:Text(Value(YourTextScore,"es-ES"),"[$-en-US]##.#","en-US")})

 

Of course, if the formula could not make sense, please provide some screenshot to describe.

Here is some edits I want to show you, I refer to a language tag "es-ES"  to format your text score number, so that we could format it using the dot.

In addition, to avoid some users who are already in a region using the dot separator, the Substitute is not a good choice, so I deleted it.

 

Best Regards,
Qi

View solution in original post

4 REPLIES 4
PG_WorXz10
Resident Rockstar
Resident Rockstar

Hi @nenandi ,

 

Based on the Language() function you can replace "," or "."

 

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

v-qiaqi-msft
Community Support
Community Support

Hi @nenandi,

Have you solved your problem?

Do you want to format your number suing the dot rather than a comma?

Could you please share a bit more about your scenario?

Actually, since your users have different region settings, I think there is no need to change the region setting or something language function. We just need to format it before your calculation.

Text(93,33,"[$-en-US]##.#","en-US")

Or, you could use the Substitute.

Substitute(93,33,",",".")

 

Best Regards,
Qi
nenandi
Frequent Visitor

I have a variable Score (value 0), depending on the answer is added a certain value e.g 11.33 on Next button, I patch the variable Score in an Excel with button Finish.
On some users regional settings in phone is different so score 93.33 patched 93,33 how to solve this
I do some workaround all values multiple by 100 and divide in separate column in Excel by 100.

Hi @nenandi,

Have you tried my solution?

If you patch data to excel table, I think only a General column could save the format changes through Power Apps.

Whatever region your users are in, just make sure the following steps:

1). Make sure the aimed column in Excel table is a General type

2). Make sure the format change is operated at the last step

For example, if you use the Patch(). please write it as below:

 

 

 

Patch(Table1,Defaults(Table1),{Score:Text(Value(YourTextScore,"es-ES"),"[$-en-US]##.#","en-US")})

 

Of course, if the formula could not make sense, please provide some screenshot to describe.

Here is some edits I want to show you, I refer to a language tag "es-ES"  to format your text score number, so that we could format it using the dot.

In addition, to avoid some users who are already in a region using the dot separator, the Substitute is not a good choice, so I deleted it.

 

Best Regards,
Qi

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (3,836)