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

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / String Query Filter in...
Power Apps
Answered

String Query Filter in URL get Unfiltered Gallery Items from SharePoint List

(0) ShareShare
ReportReport
Posted on by 33

Hello!

I currently have Column in SP list called Departmet_Division which if assign Var=DEPT in the URl. Department_Division is a choice column and so if I enter the app address and append with "DEPT=Doors" the app serves up a filtered list of items where Department_Division is = "Doors".  There are roughly eight possible choices for Department_Division value that correspond to eight different prefilter views via URL. I have another Column called "OpenComplete" with choice either "Open" or Complete" and set on gallery to only show "Open" items.

 

Want to essentially get all items that are "Open" via URL string Param. Another way to think about this is to get all all items if DEPT = any value.

 

Example of appended url is something like this:

&DEPT=Doors

or 

&DEPT=Doors%20and%20Panels

 

Can anyone help?

 

I tried combining multiple values fo the 'DEPT=' and listing multiple values but not working....there must be a way to assign a value for DEPT= "All" or DEPT= Show all DEPT's.

 

 

Thanks!

 

 

 

Categories:
  • Verified answer
    iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at

    wherever you are using this param, have a condition for an ALL value, then pass ALL in as the param

     

    like

     

    Filter(
     DatasourceName,
     Param(DEPT)="All"
     ||
     Department = Param(DEPT)
    )

     

    This is pseudo code so you'd have to change it to work with your own formula, but that is how I would do it, have wherever you are currently showing the items filtered based on a condition that checks for a specific value, which if true wont filter by DEPT, but if false then filter department by the param.

  • iAm_ManCat Profile Picture
    18,256 Most Valuable Professional on at
    Sort(
     Filter(
     '_Corrective Action_',
     VarDepartment.Value = "ALL"
     ||
     Department_Division.Value = VarDepartment.Value,
     BU.Value = VarBU.Value Or IsBlank(VarBU),
     'Functional Area'.Value = VarFA.Value Or IsBlank(VarFA),
     OpenComplete.Value = "Open"
     ),
     BU.Value,
     Ascending
    )

     

    When you want all items to show, just pass ALL in the URI, it doesn't need to be an actual value, we are just checking whether the param is equal to that , if yes then dont filter by department, Or (||) else filter by department - so it will only filter when the department is set to an actual department value.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard