cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mayarnaldo15
Helper II
Helper II

Include checkbox in Filter

Hi,

Both codes are working properly separately. I just don't know how I combine the two.

 

I have filter function by Department

SortByColumns(
    Filter(
        QAOversightApp,
        Department = DeptDropdown.SelectedText.Result
      
    ),
    "Modified",
    Descending
)

 

After filtering the department, I have to show the list with Follow-up only. The column type of Follow-up in Sharepoint list is Boolean

If(Checkbox1.Value=true, Filter(QAOversightApp, 'Follow-up' <> false), QAOversightApp)

 

mayarnaldo15_0-1634199751858.png

 

Any help is appreciated! 🙂 

Regards,

May

 

1 ACCEPTED SOLUTION

Accepted Solutions
PriyankaGeethik
Super User
Super User

Hi @mayarnaldo15 ,

 

Something like below code will work in your case ? 

 

If(Checkbox1.Value=true, SortByColumns(Filter(QAOversightApp, Department = DeptDropdown.SelectedText.Result && 'Follow-up' <> false),
    "Modified",
    Descending
), SortByColumns(
    Filter(
        QAOversightApp,
        Department = DeptDropdown.SelectedText.Result
      
    ),
    "Modified",
    Descending
))

 

 

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

View solution in original post

1 REPLY 1
PriyankaGeethik
Super User
Super User

Hi @mayarnaldo15 ,

 

Something like below code will work in your case ? 

 

If(Checkbox1.Value=true, SortByColumns(Filter(QAOversightApp, Department = DeptDropdown.SelectedText.Result && 'Follow-up' <> false),
    "Modified",
    Descending
), SortByColumns(
    Filter(
        QAOversightApp,
        Department = DeptDropdown.SelectedText.Result
      
    ),
    "Modified",
    Descending
))

 

 

 

If this post was helpful or you need more help please consider giving Thumbs Up and Tag me in your reply I'll be happy to help. If this post helped you solve your issue please click Accept as solution and provide Thumbs Up. This will help others find it more readily.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (2,207)