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 / All functie not workin...
Power Apps
Answered

All functie not working in my filter.

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hello!

I have an application with a ticket system. My gallery looks like this:
https://gyazo.com/149a2c76b0acf3419bc28ce3d939ad61

This is the code of my gallery:

SortByColumns(
 Search(
 If(
 gblIsAdmin;
 MancoTabel;
 Filter(
 MancoTabel;
 Verzender = User().FullName && If(
 selectedStatus <> "All";
 IsBlank(selectedStatus) || Status = selectedStatus
 )
 )
 );
 TekstZoekVeld.Text;
 "Ordernummer";
 "Verzender";
 "Deelorder";
 "Extern";
 "Product";
 "Intern";
 "Deelorder";
 "Tekeningnummer";
 "Omschrijving";
 "Status"
 );
 "Datum";
 If(
 SortDescending1;
 Ascending;
 Descending
 )
)


Currently this is my code of my BrowseGallery of my tickets. I am currently able to filter on 4 different statusses. 

-All
-Open
-Verwerkt in Ridder
-In behandeling

All of these statusses work except for the status "All". Could you guys maybe take a look at my code and explain me why the "All" status is not working? 

If I need to explain my code, just let me know and I will explain it.

 

Categories:
I have the same question (0)
  • Verified answer
    WarrenBelz Profile Picture
    155,779 Most Valuable Professional on at

    Hi @Anonymous ,

    Not the first time I have seen this code . . . .

    Have a look at changes to the second If filter - this should show all records for the user if All and your filter if not.

    SortByColumns(
     Search(
     If(
     gblIsAdmin;
     MancoTabel;
     Filter(
     MancoTabel;
     If(
     selectedStatus = "All";
     Verzender = User().FullName;
     Verzender = User().FullName && 
     (IsBlank(selectedStatus) || Status = selectedStatus)
     )
     )
     );
     TekstZoekVeld.Text;
     "Ordernummer";
     "Verzender";
     "Deelorder";
     "Extern";
     "Product";
     "Intern";
     "Deelorder";
     "Tekeningnummer";
     "Omschrijving";
     "Status"
     );
     "Datum";
     If(
     SortDescending1;
     Ascending;
     Descending
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

  • Community Power Platform Member Profile Picture
    Microsoft Employee on at

    Thank you! Worked perfectly

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 477

#2
WarrenBelz Profile Picture

WarrenBelz 341 Most Valuable Professional

#3
11manish Profile Picture

11manish 317

Last 30 days Overall leaderboard