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 / Power Apps canvas - co...
Power Apps
Answered

Power Apps canvas - convert numeric value in a collection to an empty string

(0) ShareShare
ReportReport
Posted on by 893 Super User 2026 Season 1
Hello -
 
I would like to convert the value in field Promotional Price to an empty string or blank when applying this UpdateIf statement to the collection.
I've attempted many different things but only putting a zero in the statement does anything close.
 
Any suggestions?
 
UpdateIf(ColStorePriceswithPromoDescrip,'Promotion Type'="Retail Exception",{'Promotional Price':0});
 
 
 
 
 
Categories:
I have the same question (0)
  • Suggested answer
    ronaldwalcott Profile Picture
    3,906 Moderator on at
    Blank is not a valid numeric value.
     
    You could create a new column and convert the number to text or wherever you are displaying the value change the display option to something like
     
    If(ThisItem.NumericField = 0, "", Text(ThisItem.NumericField, "[$-en-US]#,###.##"))
     
     
  • Cgangweg01 Profile Picture
    893 Super User 2026 Season 1 on at
    Thanks for the reply @ronaldwalcott!
     
    I will try the new column approach. I don't know what a display option is nor how to work that into the button OnSelect statement where the clearcollect and updateif statements are.
  • Verified answer
    timl Profile Picture
    37,271 Super User 2026 Season 1 on at
    Hi  Cgangweg01 
     
    I assume you tried the following and it didn't work? That's interesting because Blank() should insert a NULL into the field.
     
    If you run the following and check the collection in the collections section of the designer, what value appears against the 'Retail Exception' rows? It could be that the values are being updated to NULL in the collection but are not displayed correctly in the gallery/data table, possibly due to formula that formats the value to 2 decimal places.  
     
    UpdateIf(ColStorePriceswithPromoDescrip,'Promotion Type'="Retail Exception",{'Promotional Price':Blank()});
     
     
     
  • Cgangweg01 Profile Picture
    893 Super User 2026 Season 1 on at
    Thank you timl!
     
    I think I tried that but must have had the syntax wrong.
    Worked like a charm now!
    Appreciate your help.

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

Congratulations to the June Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 335 Most Valuable Professional

#2
11manish Profile Picture

11manish 166

#3
sannavajjala87 Profile Picture

sannavajjala87 71 Super User 2026 Season 1

Last 30 days Overall leaderboard