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 Apps
Unanswered

Help with Filters

(0) ShareShare
ReportReport
Posted on by 12
Hi All, total Newb, so please be gentle... I have a gallery with 3 dropdowns. When drpStatus_1 is set to "All", I wanna see ALL records EXCEPT ones marked as complete. 
 
The below filter works to an extent, but when I change drpStatus_1 to "Complete", I don't see any records at all. 
 
Any Advice please?
 
Filter(
    Site_Visits2,
    Prisonpicker_1.Selected.'Site/Name' = Blank() Or PrisonName = Prisonpicker_1.Selected.'Site/Name',
    ppPeoplePicker_1.Selected.'Site/Name' = Blank() Or Engineer = ppPeoplePicker_1.Selected.'Site/Name',
    drpStatus_1.Selected.Value = "All" Or StatusX = drpStatus_1.Selected.Value, !Not(Completed in StatusX)
)
Categories:
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @Paul764467875 

     

    Try this formula,

     

    Filter(
    Site_Visits2,
    (Prisonpicker_1.Selected.'Site/Name' = Blank() Or PrisonName = Prisonpicker_1.Selected.'Site/Name'),
    (ppPeoplePicker_1.Selected.'Site/Name' = Blank() Or Engineer = ppPeoplePicker_1.Selected.'Site/Name'),
    If(
    drpStatus_1.Selected.Value = "All",
    StatusX <> "Complete",
    StatusX = drpStatus_1.Selected.Value
    )
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Paul764467875 Profile Picture
    12 on at

    Hi Rajkumar_404,

     

    Thanks for the reply. Unfortunately the formula does not work - no errors, all filters work correctly, but I still see completed when this should be omitted unless selected in the dropdown.

     

    Thanks.

     

    Paul.

     
     
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Try this formula,

     

    Filter(
    Site_Visits2,
    (
    IsBlank(Prisonpicker_1.Selected.'Site/Name') Or PrisonName = Prisonpicker_1.Selected.'Site/Name'
    ) &&
    (
    IsBlank(ppPeoplePicker_1.Selected.'Site/Name') Or Engineer = ppPeoplePicker_1.Selected.'Site/Name'
    ) &&
    (
    drpStatus_1.Selected.Value = "All" And StatusX <> "Complete" Or
    drpStatus_1.Selected.Value <> "All" And StatusX = drpStatus_1.Selected.Value
    )
    )

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

  • Paul764467875 Profile Picture
    12 on at

    Same result as the 1st one I'm afraid, no errors, but I still see Completed items in my List. I only wanna see Completed Items when I select Completed from the filter. default should be Pending and Required (without Completed)

     

    Thanks,

     

    Paul.

  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Try this,

     

    Filter(
    Site_Visits2,
    (
    IsBlank(Prisonpicker_1.Selected.'Site/Name') || PrisonName = Prisonpicker_1.Selected.'Site/Name'
    ) &&
    (
    IsBlank(ppPeoplePicker_1.Selected.'Site/Name') || Engineer = ppPeoplePicker_1.Selected.'Site/Name'
    ) &&
    (
    (drpStatus_1.Selected.Value = "All" && StatusX <> "Complete") ||
    (drpStatus_1.Selected.Value = "Complete" && StatusX = "Complete") ||
    (drpStatus_1.Selected.Value <> "All" && drpStatus_1.Selected.Value <> "Complete" && StatusX = drpStatus_1.Selected.Value)
    )
    )

     

     

  • Paul764467875 Profile Picture
    12 on at

    Sorry for the late reply - I am afraid none of the above formulas worked for me. Thanks anyway.

  • Paul764467875 Profile Picture
    12 on at

    Afternoon all,

     

    I am having problems with a formula, and wondered if anyone could assist?

     

    txt_Tuesday.Text currently has a value of 01:00 which is SUPPOSED to be 1hr.

     

    When I run the below formula, it sees 01:00 as a TIME, so when it minuses the 7 hours, it gives me 6pm the previous day. I want it to show as -6 hrs.

     

    Time(Hour(txt_Tuesday.Text)-7,Minute(txt_Tuesday.Text),Second(txt_Tuesday.Text))

     

    Thanks,

     

    Paul.

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

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard