cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Text() function doesn't appear to work

Not sure whether this is due to a recent powerapps update, but I simply cannot get the text() function to work to format currency correctly. 

 

The data originates from a static excel spreadsheet. I have tried all kinds of formatting to get the numbers to display correctly. 

 

Interesting note: If I incorporate any math into the formula, it works perfectly. So the following formula actually works fine, but is a peculiar workaround:

 

Text(Cost*1/1,"[$-en-US]£#,###.00")

 

Is there a more direct fix? 🙂 

 

Thanks. 

1 ACCEPTED SOLUTION

Accepted Solutions
Pstork1
Dual Super User III
Dual Super User III

Based on my testing @timl is correct.  The value is coming in from Excel as a string and that's why the Text formatting isn't working.  put a Value() function around the incoming cell and it should work.  That would also explain why adding math fixes it.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

3 REPLIES 3
timl
Super User III
Super User III

Hi @Anonymous 

It could be because PowerApps has recognised the Cost field as a text field.

To test this theory, could you try this?

Text(Value(Cost),"[$-en-US]£#,###.00")

 

Anonymous
Not applicable

Hello

Have you tried with the language ?  

 

 

Text(Cost,"[$-en-US]£#,###.00" , "en-US")

 

 

I've used the Text() to format currencies yesterday from a SharePoint list and your formula works on my PA (maybe Excel file or value is the cause ?)



Pstork1
Dual Super User III
Dual Super User III

Based on my testing @timl is correct.  The value is coming in from Excel as a string and that's why the Text formatting isn't working.  put a Value() function around the incoming cell and it should work.  That would also explain why adding math fixes it.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (2,357)