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 / Issue with Boolean Values
Power Apps
Answered

Issue with Boolean Values

(1) ShareShare
ReportReport
Posted on by 23

This is a bit of a weird one, but I'm having an issue with Power Apps or maybe SharePoint. I have an app that's using a patch statement to send over a Boolean value to a SharePoint list. The SharePoint lists stores that value in a Yes/No column. In another app, I'm trying to pull the information back into a collection based on that column where the value is true, so in essence:

ClearCollect(col_SharePoint_Data, Filter('List Name', Username = txt_Username.Text && Submitted = true));

 

where Username is a name in the column, txt_Username is filled in by the user, and Submitted is the name of the column storing the Boolean. 

When I use the statement above, it's not pulling the correct data. 

 

However, when I switch the statement to say,

ClearCollect(col_SharePoint_Data, Filter('List Name', Username = txt_Username.Text && Submitted = 1));

it works just fine, but there's a warning in PowerApps stating that I'm attempting to compare incompatible types (numbers and Booleans). 

 

Can someone please help me understand how to make the first statement work so I can resolve the warning message? Just to reiterate and summarize, the first statement did not work at all. No errors or anything, it just didn't pull any data. The second statement (using the number 1 for true) did pull the data I needed it to, but there's a warning stating I'm comparing incompatible types. 

Categories:
  • NandiniBhagya20 Profile Picture
    4,667 Super User 2024 Season 1 on at

    Can you please try using below formula -

    ClearCollect(col_SharePoint_Data, Filter('List Name', Username = txt_Username.Text && Submitted));

  • gmmistur Profile Picture
    23 on at

    Unfortunately, that didn't work. It doesn't pull any data at all. There was a delegation warning on it, but no errors.

  • Verified answer
    jatcube Profile Picture
    508 on at

    @gmmistur try this

    ClearCollect(col_SharePoint_Data, Filter('List Name', Username = txt_Username.Text, Submitted));
  • gmmistur Profile Picture
    23 on at

    Hey, that worked! Thank you so much, you're brilliant!

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 252 Most Valuable Professional

Last 30 days Overall leaderboard