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!