web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Combo box - Item Count...
Power Apps
Unanswered

Combo box - Item Count display

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

I have a combo that contains lot of values in drop down. I am able to select one or more from the drop down .

e.g below, i have selected 5 items and the count shows '5 items' . I would like to know , is this count displaying from

 

dsab81_0-1608274610466.png

 

Reason why i would like to know , is because i have a check box ( see pic  'select all') , and when i check the checkbox , i am able to select all items , but the combo box is not displaying any count of items in the combo box.

 

see how it behaves when i check the check box . It actually selected 97 items but the count of items is not showing up in combo box.

dsab81_0-1608275045103.png

 

What am i missing ?

 

LOGIC :

 

Combo box - Items : 

--------------------

Distinct(
'Site Admins',
If(
NewComboBox.Selected.Value = "Supplier",
Supplier,
NewComboBox.Selected.Value = "City",
City,
NewComboBox.Selected.Value = "Site",
'Site Name'
)
)

 

Combo Box - On change :

----------------------------

Clear(SelectedPerson); // Add this formula

ForAll(

// Add this formula

'ComboBox-Bcc'.SelectedItems,

Collect(

SelectedPerson,

Filter(

'Site Admins',

If( // Modify formula here

NewComboBox.Selected.Value = "Supplier",

Supplier = Result,

NewComboBox.Selected.Value = "City",

City = Result,

NewComboBox.Selected.Value = "Site",

'Site Name' = Result

)

)

)

);
If((CountRows(SelectedPerson)+CountRows('ComboBox-To'.SelectedItems)+CountRows('ComboBox-Cc'.SelectedItems)) >500,UpdateContext({PopUpCount: true}))

 

 

Combo box - On Select :

--------------------------

false

 

Check Box - On Check :

---------------------------

If(
Checkbox1.Value=true,
Set(
Glob,
Distinct(
'Site Admins',
Switch(
NewComboBox.Selected.Value,
"Site", 'Site Name',
"Supplier", Supplier,
"City", City
)
)
),
Blank()
)

Categories:
I have the same question (0)
  • CU-18081211-6 Profile Picture
    9,270 Moderator on at

    Hi @dsab81 ,

     

    Please set up your DefaultSelectedItems property of your combobox control based on checkbox control value, something like:

    If(CheckBox.Value, yoursource)

     

    Hope it helps !

  • dsab81 Profile Picture
    Microsoft Employee on at

    oh! but my default selected value for the combo box is set global value named : glob

    That 'glob' is used in the check box - 'on check' property  ( see the formulae of on check property in my post above )

     

    How do we set it now ?

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard