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 / Filter 'has at least o...
Power Apps
Answered

Filter 'has at least one true'

(0) ShareShare
ReportReport
Posted on by 15

I have a collecion with 3 columns like this:

 

QIDcorrectuserSelection
1falsefalse
1falsefalse
1falsefalse
1truefalse
2falsefalse
2truefalse
2falsefalse
2falsefalse




How can I check if there is a true value for each different QID in userSelection?

Categories:
I have the same question (0)
  • Ram Prakash Duraisamy Profile Picture
    5,885 Super User 2026 Season 1 on at

    Hello @SL93,

     

    You can simply use

     

    Filter(TableName/CollectionName, userSelection = true)

     

    Please mark as Answer if it is helpful and provide Kudos


    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA
    Blog : https://microsoftcrmtechie.blogspot.com

  • CU26100700-0 Profile Picture
    15 on at

    Hi @rampprakash,

     

    thanks for the reply, but that won't fix my issue.

    I need all entries of the collection that have a QID where at least one has true at userSelection.

  • Ram Prakash Duraisamy Profile Picture
    5,885 Super User 2026 Season 1 on at

    Hello @SL93 

     

     

    Filter(TableName/CollectionName, userSelection = true && !Blank(Qid))

    That's it 🙂

     

     

    Please mark as Answer if it is helpful and provide Kudos

     

     

    Subscribe : https://www.youtube.com/channel/UCnGNN3hdlKBOr6PXotskNLA

    Blog : https://microsoftcrmtechie.blogspot.com

  • CU26100700-0 Profile Picture
    15 on at

    What I am looking for is more like this:

    Filter(GroupBy(collection, "QID", "answers").answers, userSelection)

    But that is returning: "This identifier isn't recognized" on userSelection.

  • Ram Prakash Duraisamy Profile Picture
    5,885 Super User 2026 Season 1 on at

    Hello @SL93 ,

     

    Do you want to have group by with filter ?

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

    Hi @SL93,

    Do you want to check if the userSelection matches to the answer?

    Could you please share a bit more about your need?

     

    From your description, I think you want to count if there is at least one true in a grouped QID.

    I have a test on my side, please take a try as below.

    Add a Gallery and set the Items property as below:

    GroupBy(collection,"QID","Answer")

    Set the Labels within it Text property as below:

    CountRows(Filter(ThisItem.Answer,correct="true"))

    vqiaqimsft_0-1635150309858.png

     

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
WarrenBelz Profile Picture

WarrenBelz 392 Most Valuable Professional

#2
11manish Profile Picture

11manish 136 Super User 2026 Season 2

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 109 Super User 2026 Season 2

Last 30 days Overall leaderboard