web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Filter not working on ...
Power Apps
Unanswered

Filter not working on dropdown

(0) ShareShare
ReportReport
Posted on by 40

Hi there so I have come across a possible bug

 

I am setting a dropdown items based on a variable like below, and in some cases the first row is missing from the filter

 

 

 

If(RoleType = "Support Staff" Or RoleType = "XY Services",Filter('[dbo].[PayScale]',Type = "Support"),RoleType = "YYStaff",Filter('[dbo].[PayScale]',!IsMatch(Type,"Support")))

 

 

 

 

I can replicate this 100x by submitting a form when it is either a Support staff or an XY staff and then submitting a form with a YY staff. The missing row is only ever for a YY staff and I can submit loads of YY staff without issue, but as soon as I submit a form as another staff type then the next form will be missing the first row

 

P.S as to why I'm querying the DB each time I originally had a collection and filtered that and had the same issue, was trying something else to see if it would work

Categories:
I have the same question (0)
  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @jpjp 

    Could you try this and see if it works.  I think the problem is with your !IsMatch()

     

    If(
     RoleType = "Support Staff" || RoleType = "XY Services", 
     Filter(
     '[dbo].[PayScale]',Type = "Support"
     ),
     RoleType = "YYStaff", Filter(
     '[dbo].[PayScale]',Type <> "Support"
     )
    )

    If there is no other option than YYStaff other then XY and Support staff then 

    If(
     RoleType = "Support Staff" || RoleType = "XY Services", 
     Filter(
     '[dbo].[PayScale]',Type = "Support"
     ),
     Filter(
     '[dbo].[PayScale]',Type <> "Support"
     )
    )

    should be sufficient.

     

     

  • jpjp Profile Picture
    40 on at

    Hi @Drrickryp 

     

    Just tried your solution... However sadly the same issue happens 

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    @jpjp 

    Is Type an option set? 

  • jpjp Profile Picture
    40 on at

    @Drrickryp

     

    Nope just a varchar column in a SQL database containing a string

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 717 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard