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 get a label to ...
Power Apps
Answered

How to get a label to display N/A when there is no data

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi,

 

I have lables that pull data from a sql server. So field for different rcord dont have any data and i would like to be able to populate them with "N/A" instead of leaving them blank.

 

Ive tried changing the data type of the record to nchar but the numbers have lost there decimal places and looks very untidy.

 

Is there a formula in powerapps that allows me to do this?

 

I have attached an image to show the current set up.

 

All fields are set to data type nchar(10)

 

Regards,

David

powerapp_na.png
Categories:
  • Verified answer
    Shanescows Profile Picture
    2,218 Most Valuable Professional on at

    Something like:

     

    Default: If(IsBlank(FieldToCheck), "N/A", FieldToCheck)

     

     

  • MB-02102022-0 Profile Picture
    Microsoft Employee on at

    You can format numbers with the Text function like so...

     

    Text( Value("1234.59"), ".#" )

    More complete documentation on this function can be found here: https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-text (you'll want to scroll to the number examples near the bottom)

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 July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 395 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 260 Most Valuable Professional

Last 30 days Overall leaderboard