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 / Filter function does n...
Power Apps
Unanswered

Filter function does not work all the time

(0) ShareShare
ReportReport
Posted on by 12

Hello All,

 

I am quite new to Powerapps and have noticed a bug which I am unable to solve.

 

I have a sharepoint excel with KPIOwner and KPI as columns. There could be multiple owners for the same KPI in which case there would be multiple rows for the same KPI ex. 

 

KPIOwnerKPI
User AOTD Asia
User BOTD Asia
User BOTD Americas

 

I am using KPIOwner as a filter to filter out the Gallery where I am displaying KPI and it's value (value comes from a different list which also has KPI as a column).

On some occassions, I am not able to see all the KPI that belong to an owner. There are instances where it may only return OTD Asia for user B and not OTD Amercias (based on example seen above).

 

This is the formula I am using- Filter('Source,Title = 'Week DD_1'.Selected.Value,KPIDesc=KPIDesc in ForAll(Filter(Table1,Text(KPIowner)='Week DD_3'.Selected.Value),KPI)

 

Thanks in advance

 

edited: My column name is KPI and not KPIDesc. I have corrected this now. Sorry for the confusion

 

Categories:
I have the same question (0)
  • mmbr1606 Profile Picture
    14,605 Super User 2025 Season 2 on at

    hey @_deeplearn93 

     

    can you please try this:

    Filter(
     'Source',
     'Title' = 'Week DD_1'.Selected.Value,
     KPIDesc in Filter(
     Table1,
     Text(KPIOwner) = 'Week DD_3'.Selected.Value
     ).KPIDesc
    )
    

     

    Let me know if my answer helped solving your issue.

    If it did please accept as solution and give it a thumbs up so we can help others in the community.



    Greetings

  • Yogesh Murugan Profile Picture
    443 Moderator on at

    Filter(
    Source,
    Title = 'Week DD_1'.Selected.Value &&
    KPIDesc in Filter(
    Table1,
    Text(KPIOwner) = 'Week DD_3'.Selected.Value
    ).KPIDesc
    );

    try this 

  • Verified answer
    BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @_deeplearn93 ,

     

    The issue you have is caused by a lack of ability to delegate your filter conditions to the data source. As a result, only the first 500 items (by default) will be visible in your app. As a quick, but temporary fix, you can raise this number to 2000 under the App settings:

    BCBuizer_0-1708360788524.png

    More information on delegation can be found here: https://learn.microsoft.com/en-us/power-apps/maker/canvas-apps/delegation-overview

     

    A common workaround is to use pre-filtering where first a delegable filter is used to bring the number of items below the Data Row Limit before applying the non-delegable filter, for instance:

     

    With(
    	{preFilter: Filter(
    		'Source',
    		'Title' = 'Week DD_1'.Selected.Value
    	)},
    	Filter(
    		preFilter,
    		KPIDesc in Filter(
    			Table1,
    			Text(KPIOwner) = 'Week DD_3'.Selected.Value
    		).KPIDesc
    	)
    )
  • _deeplearn93 Profile Picture
    12 on at

    Getting an error with this formula that KPIOwner is not recognizable

  • _deeplearn93 Profile Picture
    12 on at

    Getting an error with this formula

  • _deeplearn93 Profile Picture
    12 on at

    Hello. Thank you for the detailed explanation. It is already set to 2000 rows. The prefilter formula works for some records but does not work for some others...

  • BCBuizer Profile Picture
    22,505 Super User 2025 Season 2 on at

    Hi @_deeplearn93 ,

     

    In that case the issue is probably the use of Excel as a datasource. You might consider migrating to a more forgiving data source. 

  • _deeplearn93 Profile Picture
    12 on at

    Thank you so much for your help. This solution seems to have worked for now as I am getting all the rows I am expecting. Although it is still showing delegation warning on the text part of the formula. any function I could replace it with ?

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 329 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard