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 / MULTIPLE FILTERS NOT W...
Power Apps
Unanswered

MULTIPLE FILTERS NOT WORKING

(0) ShareShare
ReportReport
Posted on by

Hey guys, I have an app who I wanna to filter by:

OnStart app: Show all the data from SharePoint list, and filter by email permissions.

 

Like, "Shane" has power to filter all the gallery with the all data on SharePoint

 

But "April" has no permission to filter all the data, just the data he created.

 

And I need to show all the data if "Shane" is logon 

 

And if is not, show the data only the user created = "April" only see her creation.

And I make this formula:

 

If(User().Email="xy@email.com";Despesas;Filter(SortByColumns(Despesas;"ID";Descending);'Criado por'.Email = varUser.Email))

 


And it works, but I need to add a multiple filters on the formula,

 

When the gallery visible:

 

Show the gallery Descending by the data, and search by "name" on a text input" or filter by a dropdown "ID" or filter by a "status of payment"

 

And I tried this one:

 

 

Search(Sort(Filter(Despesas;StartsWith(Solicitante;TextInput1.Text)||ID=DropDown1.Selected.ID);ID;Descending)||ComboBox4.Selected.Value="pago")

 

 

FILTER.png

 

Is that possible? 


Thanks dor the help!

Categories:
I have the same question (0)
  • KrishnaV Profile Picture
    5,023 on at

    Hi @Gorilla_8 ,

     

    This has to be done with one collection assigned to the gallery and that collection has to be filtered and sorted as accordingly.

    1. OnVisible get all the records to collection "collListData"
    2. Then apply this filter on the collection to get the required data at level one

     

    If(User().Email="erica.dias@arapyauinstituto.onmicrosoft.com";Despesas;Filter(SortByColumns(Despesas;"ID";Descending);'Criado por'.Email = varUser.Email))​

     

    • Now on change of the text input for search use below formula

     

    Set(collListData1,search(collListData,textinputsearch.text in namecolumn))
    clearcollec(collListData,collListData1);
    clear(collListData1);
    // These 2 steps to get the filtered data to collection​

     

    • Now for filter on ID also OnSelect property of the dropdown do as below:

     

    Filter(collListData,ID=dropdownlist.select.value)​

     

    I hope this resolved your issue if you see any challenge/need further help let me know I am always happy to help.

     

    Regards,
    Krishna
    If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • Gorilla_8 Profile Picture
    on at

    Thanks for the reply @KrishnaV , but the collection dont get all the data like before, he dont filter my data based on my email, I have to recreate it, and I dont wanna do that

  • KrishnaV Profile Picture
    5,023 on at

    Hi @Gorilla_8 ,

     

    Then do the same set of filters on the list directly.

     

    I hope this resolved your issue if you see any challenge/need further help let me know I am always happy to help.

    Regards,
    Krishna
    If this post helps give a 👍 and if it solved your issue consider Accept it as the solution to help the other members find it more.

  • Gorilla_8 Profile Picture
    on at

    I dont understand

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 711 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 319 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard