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 / Filtering a SQL View
Power Apps
Answered

Filtering a SQL View

(0) ShareShare
ReportReport
Posted on by 125

Hi,

 

I am facing an issue filtering an SQL view from Powerapps. When I try to filter the SQL view and create a collection, only the values of columns used to filter the SQL view are populated, if I am not using a column to filter the data, it gives blank value to that column.

 

For example, SQL_View[column_Name,column_Age,column_EmailAddress] is the view I need to filter and I use ClearCollect(col_colData,Filter(SQL_View,Column_Name="David")), it returns a collection where column_Name is David but all the other columns(column_Age,Column_EmailAddress) are blank.

 

Instead if I use ClearCollect(col_colData,Filter(SQL_View,Column_Name="David",column_Age="25",column_EmailAddress="abc@xyz.com")), I get a collection with values in all the cloumns.

 

I do not face this issue when I use a SharePoint list as a data source. Is there any different way to filter SQL data? Also, this happens only if I open the App in a browser using URL. Everything works fine in Preview mode.

 

Any help on this would be appreciated.

 

Thanks and Regards,

Dileep

Categories:
  • Verified answer
    DileepGolla Profile Picture
    125 on at

    I figured out what was causing this issue after spending a lot of time.

     

    We can avoid this by Disabling the "Explicit column selection" under App Settings>Advanced Settings>Preview Features.

     

     

    Capture.PNG
  • sekaing Profile Picture
    4 on at

    This issue started almost 4 years ago, and today 09/21/2022, I am encountering the exact same issue while trying to filter a SQL View. Anybody has an update on this, or are we still in same exact situation as 4 years ago? Thanks. 

     

    Example: employeeView (2 records)

    FirstNameLastNameDeleted
    JohnDoe0
    JaneDoe0
       

     

    I have a screen with a gallery to display people's firstname and lastname.

    My gallery items property is defined as: Filter(employeeView, Deleted = false).

    With this filter, the gallery's content is blank, absolutely nothing, nada, niet, mais rien du tout.... although the number of records returned by the filter is 2!

    But if I change my gallery items property to: Filter(employeeView, false = false), then the gallery displays the 2 records above!

     

     

     

     

     

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard