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 / select NA text when no...
Power Apps
Answered

select NA text when no item from combo box is selected.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi every one,

I am using a Combo box. if we select multiple items from combo box the data should be stored as selected value display names separated by coma (,). 
for this I have written below query which is working fine.
let us say I am using RequestorName Combo box, and display name is the name that is being concatenated.
Concat(
ComboBox_RequestorName.SelectedItems,
DisplayName,
","
)

but Problem is if I did not select any item from combo box it should show as NA. 
i have implemented this but it is not working
Concat(
If(IsEmpty(ComboBox_RequestorName.SelectedItems)," ",ComboBox_RequestorName.SelectedItems),
DisplayName,
","
)

can anyone help on this?

Categories:
  • Verified answer
    zmansuri Profile Picture
    6,048 Super User 2024 Season 1 on at

    If(IsEmpty(ComboBox_RequestorName.SelectedItems)," ",

    Concat(
    ComboBox_RequestorName.SelectedItems),
    DisplayName,
    ","
    )

  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @PrasadBabu,

    Have you solved your problem?

    Do you want to display NA string in the Label when there is nothing selected from the Combo Box?

    Could you please share a bit more about the scenario?

     

    I have a test on my side, that the original formula as below could display nothing if there is nothing select from Combo Box:

    Concat(
    ComboBox_RequestorName.SelectedItems,
    DisplayName,
    ","
    )

    vqiaqimsft_0-1633944939590.png

     

    If you want the Label to display NA string, please modify your formula as below:

    If(
     IsEmpty(ComboBox_RequestorName.SelectedItems),
     "NA",
     Concat(
     ComboBox_RequestorName.SelectedItems,
     DisplayName,
     ","
     )
    )

    vqiaqimsft_1-1633945028889.png

     

    Hope it could help you at some degree.

     

     

     

     

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 381 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 340

#3
WarrenBelz Profile Picture

WarrenBelz 187 Most Valuable Professional

Last 30 days Overall leaderboard