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 / Filter returns nothing...
Power Apps
Answered

Filter returns nothing when boolean condition is false

(0) ShareShare
ReportReport
Posted on by 364 Moderator

Hello, 
I use that code to filter rows in the app. 
There's 5 600 rows behind linked to a particular ID. 
The behavior is the same when the ID is linked to 1 row. 

It works fine until I apply the boolean condition false. Nothing is returned.

Does somebody has any clue?

 

 

 Switch(
 filtrerDemandes;
 0;
 Filter(
 Demande;
 f_idEntite.Value = Text( ID_EntiteSelectionee.ID ));


 1;
 Filter(
 Demande; 
 f_idEntite.Value = Text( ID_EntiteSelectionee.ID); demandeActive = true );
 2;
 Filter(
 Demande; 
 f_idEntite.Value = Text( ID_EntiteSelectionee.ID); demandeActive= false)
 
 
 )

 

 


 

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @PierreCA -

     

    What control are you using for "ID_EntiteSelectionee" ?

  • PierreCA Profile Picture
    364 Moderator on at

    Hello @Amik , 

    "ID_EntiteSelectionee" is a local variable containing an ID after making selection in a former screen and is searching an exact numeric value. 
    Using the Text() formating allowed me to perform the filter without the delegation warning.  

    PierreCA_1-1717783137642.png

     

    When performing the filter as on the picture, I still get a delegation warning. 

    PierreCA_0-1717783034949.png

    I don't find a way to circumvent that delegation problem and load the number of rows I want.  My understanding of Microsoft documentation (https://learn.microsoft.com/en-us/connectors/sharepointonline/#power-apps-delegable-functions-and-operations-for-sharepoint ) leads me to apply the second option of coding that doesn't work.





  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @PierreCA and what is "f_idEntite"? A SharePoint LookUp?

  • PierreCA Profile Picture
    364 Moderator on at

    Yes, it is, but with a single choice value. 

  • Verified answer
    Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @PierreCA - operations on complex data types can be delegated back to the server, but that does not mean all attributes of a complex data type can be delegated back to the server.

     

    For example, the DisplayName or Email attribute of a People data type are delegable, but not the Claims, Department, JobTitle, and Photo attribute.

     

    The same applies to LookUp data types. The "Id" field is not delegable but the Value field is delegable.

     

    Amik_0-1718060551388.png

     

    Although the SharePoint Lookup field allows users to “relate” a field to another list, complex column types, particularly the Lookup column, are expensive from a performance perspective if you have a high volume of records and are only partially delegable (this functionality was created for the SharePoint user interface in mind).

     

    Given you're expecting users to interact with your data using an app interface, the solution here is to drop the use of LookUp data types and instead use fully delegable data types like Single Line Text or Number to relate your lists together using a common identifier (typically the SharePoint ID).

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 411 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 338

#3
WarrenBelz Profile Picture

WarrenBelz 256 Most Valuable Professional

Last 30 days Overall leaderboard