Forum Discussion

christina_hoeglinger's avatar
christina_hoeglinger
Copper Contributor
Oct 02, 2019
Solved

Powerapps filter Gallery

Hi,

 

I am creating a power app to view and make entries in a sharepoint list.

Now I created a new Screen with a gallery and the source is my sharepoint list. In the list, there is a field that is called "closed" and it has a drop down menu with yes/no. Now I want this particular gallery to only show the lines of the sharepoint list were the field "closed" is set to 'No'. 

Is there any way to do that?

I experimented a bit by changing the following line, but nothing seems to work.

For any help I would be greatful!

Thanks

Christina

  • It’s a drop down aka choice column with those values and so it’s a delegated query now so if you use filter(data source,closed.value = “no”) in items you will get the result you need.

5 Replies

  • Hi christina_hoeglinger,

     

    You can use the "Filter" command in the "Items" property to filter the list.

     

    Here is my unfiltered app:

     

    Here is my filtered app and code:

    SortByColumns(Filter([@PowerAppsDemo], Closed = false), "Title", If(SortDescending1, Descending, Ascending))

     

     

    Unfortunately, using "true" does not work as expected. Here is a version of the code for "true" but be warned you will get "Delegation" warnings.

    SortByColumns(Filter([@PowerAppsDemo], Closed <> false), "Title", If(SortDescending1, Descending, Ascending))

    I hope this helps.

     

    Norm

    • ChrisWebbTech's avatar
      ChrisWebbTech
      MVP

      It’s a drop down aka choice column with those values and so it’s a delegated query now so if you use filter(data source,closed.value = “no”) in items you will get the result you need.

      • christina_hoeglinger's avatar
        christina_hoeglinger
        Copper Contributor

        Thank you so much! I actually was pretty close to this solution, i just forgot the .Value after Closed ChrisWebbTech 

         

        I have follow-up question regarding your post: when you say delegated query, do you mean that the job gets passed on to sharepoint? I think I read about this, but I am not sure if this is what you mean here?

        It has something to do with powerapps being only able to use a limited number of rows? 500 I think?

         

        Thanks again for your help!

        Christina

Resources