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 / How to format currency...
Power Apps
Unanswered

How to format currency in a nested If statement?

(0) ShareShare
ReportReport
Posted on by 109

Hi All!

 

I have tried for hours and can't figure this out.

 

For a field in my form I have an If statement:

If ( 'Form1'.Mode = FormMode.Edit , Text ( Parent.Default , "[$-en-US]$#,###" )  , varPrice2 )

This means If a gallery item is picked, the form will populate that items info in Edit Mode and if not, and a new form is created with a separate button, then varPrice2 will populate. This part works.

 

Now when I person selects the gallery item it is formatted in currency, when they go to change, say their prices however, the change does not format at all. How can I make the changed price format into currency using my above If statement? 

 

The formula I have for the OnChange property is for the varPrice2 which basically changes the live input to currency format in new formmode:

Set(varPrice2,Text(Value(Substitute(Substitute(DataCardValue2.Text,",",""),"$","")),"[$-en-US]$###,###"))

 

Thanks in advanced!

Categories:

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 352 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 323

#3
Mohsin Ali Profile Picture

Mohsin Ali 226

Last 30 days Overall leaderboard