Showing results for 
Search instead for 
Did you mean: 
Frequent Visitor

CountRows(), IsBlank(), IsEmpty() in Combobox not working properly

I'm using a 3 Comboboxes top of a page and trying to show a gallery filter based on selected value of combobox. 


At initial load of the screen, the gallery should show all of the items available in the datasource(SQL). So I'm using this condition.








 When the screen loads for the first time, this condition is not working at all, it is giving null. So I thought of using IsBlank or IsEmpty function for the same Combobox selected items property. But IsBlank and IsEmpty are workly perfectly for initial load but not working if we clear the Combobox back to no.


Can anyone suggest ? 

Super User III
Super User III

Where exactly are you using this code?  Inside what control?  In which property?

Frequent Visitor



This is used in Gallery items. for ex: Gallery Items is 




But my actual combo box is 3.

Hi @balaji :

I've made a test:

When the comboxbox control is empty——

  • The value of ComboBox.SelectedItems is a table, even if there is no record in it, powerapp does not seem to think it is a Blank() value.
  • ComboBox.Selected can be Blank().

Therefore, I suggest you try this formula:




Best Regards,


Helpful resources

PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!


Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Solution Authors
Top Kudoed Authors
Users online (47,012)