cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Gorilla_8
Level 8

What's error? Or this multiple filters...

 

If(toggle_porcentagem.Value=true;Filter(collTaskListForGallery; TrabalhoPercentualdaTarefaConcluído<100;collTaskListForGallery))||
If(toggle_porcentagemMAIOROUMENOR.Value=true;Filter(collTaskListForGallery; TrabalhoPercentualdaTarefaConcluído<=100;TrabalhoPercentualdaTarefaConcluído>=0))
||If(Checkbox_MaiorPorcentagem.Value=true;Sort(collTaskListForGallery;TrabalhoPercentualdaTarefaConcluído;Descending);If(Checkbox_MenorPorcentagem.Value=true;Sort(collTaskListForGallery;TrabalhoPercentualdaTarefaConcluído;Ascending))

 

 

filter_error_worng.png

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support Team
Community Support Team

Re: What's error? Or this multiple filters...

Hi @Gorilla_8 ,

Based on the formula that you mentioned, I think there is something wrong with it. I have made a test on my side, please consider take a try with the following workaround:

 

Set the Items property of the Gallery to following:

Sort(
     Filter(
            collTaskListForGallery;
            If(
               toggle_porcentagem.Value = true;
               TrabalhoPercentualdaTarefaConcluído < 100;
               true
            );
            If(
               toggle_porcentagemMAIOROUMENOR.Value = true;
               TrabalhoPercentualdaTarefaConcluído <= 100 && TrabalhoPercentualdaTarefaConcluído >= 0;
               true
            )
     );
     TrabalhoPercentualdaTarefaConcluído;
     If(
        Checkbox_MaiorPorcentagem.Value=true;
        Descending;
        Checkbox_MenorPorcentagem.Value=true;
        Ascending
     )
)

Please consider take a try with above formula, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
Community Support Team
Community Support Team

Re: What's error? Or this multiple filters...

Hi @Gorilla_8 ,

Based on the formula that you mentioned, I think there is something wrong with it. I have made a test on my side, please consider take a try with the following workaround:

 

Set the Items property of the Gallery to following:

Sort(
     Filter(
            collTaskListForGallery;
            If(
               toggle_porcentagem.Value = true;
               TrabalhoPercentualdaTarefaConcluído < 100;
               true
            );
            If(
               toggle_porcentagemMAIOROUMENOR.Value = true;
               TrabalhoPercentualdaTarefaConcluído <= 100 && TrabalhoPercentualdaTarefaConcluído >= 0;
               true
            )
     );
     TrabalhoPercentualdaTarefaConcluído;
     If(
        Checkbox_MaiorPorcentagem.Value=true;
        Descending;
        Checkbox_MenorPorcentagem.Value=true;
        Ascending
     )
)

Please consider take a try with above formula, then check if the issue is solved.

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Gorilla_8
Level 8

Re: What's error? Or this multiple filters...

Yes, but I need to work with simultaneous filters...

 

Like, use two filters at same time, three filters, or just one...

 

Understand?

Community Support Team
Community Support Team

Re: What's error? Or this multiple filters...

Hi @Gorilla_8 ,

Have you taken a try with the formula I provided above?

 

Yeah, based on the needs that you mentioned. I think the formula I provided above could achieve your needs.

 

The If function within above formula I provided would be executed at the same time. Within the If function, only when the filter criteria meets, the filter condition (e.g. TrabalhoPercentualdaTarefaConcluído < 100) would be executed. The above formula I provided would be applied to any combination of filter conditions (two filters, three filters or just one filter, ...).

 

Please consider take a try with it on your side, then check if it could help in your scenario.

 

Please check and see if my response within the following thread would help in your scenario:

https://powerusers.microsoft.com/t5/Building-Power-Apps/how-write-formula-for-separated-break-IF/m-p...

 

Best regards,

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,060)