cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
jpjp
Helper I
Helper I

Filter not working on dropdown

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

4 REPLIES 4
Drrickryp
Super User II
Super User II

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.

 

 

Hi @Drrickryp 

 

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

Drrickryp
Super User II
Super User II

@jpjp 

Is Type an option set? 

@Drrickryp

 

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

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Apps Community Call

Monthly Power Apps Community Call

Did you miss the call?? Check out the Power Apps Community Call here!

secondImage

Experience what’s next for Power Apps

See the latest Power Apps innovations, updates, and demos from the Microsoft Business Applications Launch Event.

Power Platform ISV STudio

Power Platform ISV Studio

ISV Studio is the go-to Power Platform destination for ISV’s to monitor & manage applications post-AppSource publish.

Top Solution Authors
Top Kudoed Authors
Users online (56,893)