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 / Gallery display items ...
Power Apps
Unanswered

Gallery display items filter

(0) ShareShare
ReportReport
Posted on by 314

Hi,

The Gallery result has below three items, but I need to filter out items, not sure what is best to do it.

I need to filter out when the Overwrite is true, then it will remove when "date" and "time" has same value's record with the "Overwrite" is true from the gallery result.

 

For example:

The Gallery Result:

Date                Time              Name                    Overwrite

=======      ====      ===========   ======

10/01/2022     04:00       John White                 false

10/01/2022     20:00       John Lee                     false

10/01/2022      04:00       Tom Lee                     true

 

Result Want:

Date                Time              Name                    Overwrite

=======      ====      ===========   ======

10/01/2022      04:00       Tom Lee                     true

10/01/2022     20:00       John Lee                     false

 

I have below code in SQL but not sure how to transfer it into Power Apps.

Any help.

================================================

Select T.Date, T.Time, T.Name, T.Overwrite
From Tbl T
Where
Not Exists (
Select 1 From Tbl D
Where D.Overwrite='true' And T.Overwrite='false'
And D.Date=T.Date And D.Time=T.Time
)
Order By T.Date

=================================================

 

Thanks!

 

Categories:
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    You need to tell us what you want to filter...

  • usaman45 Profile Picture
    314 on at

    Thanks, I modified my post message.

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 220 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 189 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 139

Last 30 days Overall leaderboard