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 / Label from Excel to di...
Power Apps
Answered

Label from Excel to display if none

(0) ShareShare
ReportReport
Posted on by 37

Hi,

Is there a way to Display a value when there is an empty table? in this type of useage,

 

Concat(ComboBox1_1.SelectedItems,"Contact" &"-"&Contact&'Main Number'&'Alt Number' )

 

So if there is not a Contact, Main, or Alt Number, is there a way to display something like, xxx or xxx-xxx-xxx ?
 
Thanks,
Categories:
I have the same question (0)
  • timl Profile Picture
    37,271 Super User 2026 Season 1 on at

    Hi @Lmcginnis 

    You can use the Coalesce function to do this:

    Coalesce(Concat(ComboBox1_1.SelectedItems,
    "Contact" &"-"& Contact &'Main Number' &'Alt Number'
    ),
    "xxx-xxx-xxx"
    )
  • v-yutliu-msft Profile Picture
    Microsoft Employee on at

    Hi @Lmcginnis ,

    Do you want to display a string as the format of “xxx-xxx-xxx” when one of the fields having a null value?

    I’ve made a similar test, you could refer this:

    Concat(ComboBox2.SelectedItems,

                                                                   "Contact"&

                                                                   If(IsBlank(ComboBox2.Selected. Contact),"","-"& Contact)&

                                                                   If(IsBlank(ComboBox2.Selected. 'Main Number'),"","-"& 'Main Number')&

                                                                   If(IsBlank(ComboBox2.Selected. 'Alt Number'),"","-"& 'Alt Number')

                 )

     

     

     

    Best regards,

    Community Support Team _ Phoebe Liu

  • Lmcginnis Profile Picture
    37 on at

    Hi,

    Can seem to edit you suggestion to work for my needs.

     

    But yes, if the excel field is blank (a phone number) I would like it to display "XXX-XXX-XXXX" .

     

    my current lable is formatted as,

    Concat(ComboBox1_1.SelectedItems, 'ER Phone')

     

    and I have tried, 

    Concat(ComboBox1_1.SelectedItems, 'ER Phone')If(IsBlank(ComboBox1_1.Selected. 'ER Phone'),"","-XXX-XXX-XXXX")

     

    It doesnt appear to work for me.

    Thanks,

  • Verified answer
    Lmcginnis Profile Picture
    37 on at

    HI,

    I think I got it to work, when I noticed I wasnt using the & function to call the "if" function, but then it was always displaying the "xxx-xxx-xxxx" .. so I tried this "!IsBlank" and it worked

    Concat(ComboBox1_1.SelectedItems, 'ER Phone') & If(!IsBlank(ComboBox1_1.Selected. 'ER Phone'),"","XXX-XXX-XXXX")

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 326 Most Valuable Professional

#2
11manish Profile Picture

11manish 168

#3
sannavajjala87 Profile Picture

sannavajjala87 75 Super User 2026 Season 1

Last 30 days Overall leaderboard