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

Text field currency formatting whilst linking to SharePoint List.

I'm building an app that links to a SharePoint list. When the app was built from the list I lost the formatting on a lot of my fields (percentage fields and currency fields). I unlocked the data cards and editted the text to keep inherting from parent but also include formatting using:

 

"£" & Text(Parent.Default, "0.00")

 

For every field this worked, but I have one field where it got the currency format but has way too many decimal places. In the SharePoint list it is validated to only have 2 decimal places and I specified in the text field to only hold 2 decimal places. Does anyone know what might be causing this? The only difference I can see between this field and the other fields is that this is a minus value (it has to be minus as it is net financial impact).

 

Screenshot below for reference to field and text code.

 

Thanks in advance

Capture.JPG

1 ACCEPTED SOLUTION

Accepted Solutions
Super User III
Super User III

@Jamiehopper1 

My thought is the field in Sharepoint is storing the value as Text already.  Give this code a try, it will convert the field to a number and then re-convert to Text in the correct format.

 

"£" & Text(Value(Parent.Default), "0.00")

 

---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

View solution in original post

3 REPLIES 3
Super User III
Super User III

@Jamiehopper1 

My thought is the field in Sharepoint is storing the value as Text already.  Give this code a try, it will convert the field to a number and then re-convert to Text in the correct format.

 

"£" & Text(Value(Parent.Default), "0.00")

 

---
Please click "Accept as Solution" if my response helped to solve your issue so that others may find it more quickly. If your thought the post was helpful please give it a "Thumbs Up."

View solution in original post

Solved! Thanks very much

@Jamiehopper1 

No problem.  Always happy to get someone unstuck so they can continue building!

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (7,644)