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 / Power Apps Formulas - ...
Power Apps
Answered

Power Apps Formulas - Filter Error?

(0) ShareShare
ReportReport
Posted on by 78

Hello,
I think I encountered an issue with the "new" Formulas.
I have this Formula:
_fxInspectionRecords = Filter('FPO ENV Refrigerant Usage Trackings', !IsBlank('Location/Block'));
It filters ok but the resulting table ONLY contains the value for the Location/Block column not the other columns for the filtered records. When looking at the content of the formula it does show all columns of the dataset but only the values for the Location/Block-column (the other columns do have values in Dataverse).

I came across this trying to remove a delegation warning
Previously I assigned all the records to the Formula:
_fxInspectionRecords = Filter('FPO ENV Refrigerant Usage Trackings') (instead of using a collection)

This formula for Gallery Items then leads to a delegation warning for the If-sections. I use the same formula for a different Formula that is based on ShowColumns (so i thought that maybe I cannot just assign a complete datasource to a Formula and that is why I tried the filter command that leads to be error above.

Filter(
colInspectionRecords,
IsBlank('cmbFilterLocation-ER'.SelectedItems) || cgfpo_location in 'cmbFilterLocation-ER'.SelectedItems,
If(
'chkFilter<50-ER',
cgfpo_capacity_50_plus = false,
cgfpo_capacity_50_plus = true
) || If(
'chkFilter≥50-ER',
cgfpo_capacity_50_plus = true,
cgfpo_capacity_50_plus = false
))

My dataset is well outside the delegation concern, but I would to understand the strange behavior, especially for the 
_fx = Filter() part.

Any help or idea is appreciated.
Thank you


Categories:
I have the same question (0)
  • BCLS776 Profile Picture
    8,994 Moderator on at

    You are likely seeing the effects of explicit column selection bringing in only the minimum necessary columns to complete the operation. If you wrap the Filter() in a ShowColumns() statement you will force it to bring in additional columns that you specify.

     

    Hope that helps,

    Bryan

  • Florida712 Profile Picture
    78 on at

    Thank you Bryan. I had hoped to avoid specifying the columns as it is a large number of columns. I do find it strange that not specifying leads to automatic exclusion not of the columns but the values being blank.
    Do you have any idea on whether utilizing ShowColumns will avoid delegation issues? The behavior from my original formula leads me to believe that being the case.

      

  • Verified answer
    BCLS776 Profile Picture
    8,994 Moderator on at

    @Florida712 wrote:

    Thank you Bryan. I had hoped to avoid specifying the columns as it is a large number of columns. I do find it strange that not specifying leads to automatic exclusion not of the columns but the values being blank.
    Do you have any idea on whether utilizing ShowColumns will avoid delegation issues? The behavior from my original formula leads me to believe that being the case.

      


    Yes, a Filter() on a Dataverse record will read the column schema and show blank values.

     

    You can turn explicit column selection off for the entire app, but you would give up the performance benefits that come from using it. It is located in the app settings. Try to avoid turning this setting off if possible.

     

    Another option when using Dataverse, and I do this whenever I have a complicated or troublesome Filter(), is to use a Dataverse View to set up the filtering in the backend. It helps app performance in real-time too because it reduces the amount of records a non-delegable Filter() may have to load and sort through.

     

    Bryan

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 551

#2
WarrenBelz Profile Picture

WarrenBelz 430 Most Valuable Professional

#3
Valantis Profile Picture

Valantis 298

Last 30 days Overall leaderboard