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 / Error with combobox fi...
Power Apps
Answered

Error with combobox filtering boolean column

(0) ShareShare
ReportReport
Posted on by 4

Hi,
I have my following gallery:

 

2023-09-18_16-34-11.png

I'm having issues with my combobox filter filtering a boolean column. I created a collection to have text values in my filter:

 

ClearCollect(ctlValueTest;Table({Choice:"Yes"; Value:true}; {Choice:"No"; Value:false}))

 

Here is the formula in the Items of my gallery:

 

Filter(cltTest;
IsEmpty(cbxTxtTest.SelectedItems) || IsBlank(cbxTxtTest.SelectedItems) || txt in cbxTxtTest.SelectedItems;
IsEmpty(cbxValueTest.SelectedItems) || IsBlank(cbxValueTest.SelectedItems) || txt in cbxValueTest.Selected.Choice
)

 

But when I choose a value in my cbxValueTest filter (yes or no) there is nothing displayed.

Where is my error please?
THANKS

Categories:
  • v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @esquiveljc ,

     

    The return values ​​of IsEmpty and IsBlank are true and false. We usually use it as a judgment rather than as a filtering condition. For details, you can refer to the documentation: Blank, Coalesce, IsBlank, and IsEmpty functions in Power Apps - Power Platform | Microsoft Learn

    Your goal seems to be to not filter the data source when both combo boxes are empty, you can refer to this code:

    If(!IsEmpty(cbxTxtTest.SelectedItems)||!IsEmpty(cbxValueTest.SelectedItems),Filter(cltTest,txt in cbxTxtTest.SelectedItems||txt in cbxValueTest.Selected.Choice,cltTest)

     

    Hope this helps you!

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

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

  • esquiveljc Profile Picture
    4 on at

    .

  • esquiveljc Profile Picture
    4 on at

    Hi @v-mengmli-msft,

    Thank you for your quick response, but I have an error message in the formula. There is still a data type problem. Excuse me, I'm quite new to PowerApps.

     

    2023-09-19_09-28-56.png

    And here are my collections:

     

    2023-09-19_09-37-37.png

     

    Thanks and regards.

  • Verified answer
    v-mengmli-msft Profile Picture
    Microsoft Employee on at

    Hi @esquiveljc ,

     

    I modified my code, please try this:

    If(!IsEmpty(cbxTxtTest.SelectedItems)||!IsEmpty(cbxValueTest.SelectedItems),Filter(cltTest,txt in cbxTxtTest.SelectedItems||txt in cbxValueTest.Selected.Choice),cltTest)

     

    Hope this helps you!

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

    If my answer solves your problem, please accept it as a solution to help more people stuck on the same problem find it.

     

    Best regards,

    Rimmon Li

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 296 Most Valuable Professional

Last 30 days Overall leaderboard