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 / Use filtered subset of...
Power Apps
Unanswered

Use filtered subset of CDS entity as data source for Power App

(0) ShareShare
ReportReport
Posted on by 34

Is there a way to create a filtered subset of a CDS entity that I can pass to one of my Power Apps as a data source? I can obviously filter in the app, but to guard against sending too large a data set to the app I would like to "pre-process" it to a manageable size before manipulating it in the app. I thought of creating a new entity and using the Get Data\Blank Query option in CDS, but don't know how to reference the entity in question.

 

I have the same question (0)
  • Verified answer
    Hamish Sheild Profile Picture
    3,005 Most Valuable Professional on at

    Hi @DirkKotze 

     

    Have you tried the recent added feature where you can select a View of your CDS data source entity?  I'm pretty sure that this is pre-filtered at the CDS source rather than in the Cavas App.

     

    Annotation 2020-05-08 102601.png

     

    -----
     
    If this post has answered your question please consider it for "Accept as Solution" or if it has been helpful give it a "Thumbs Up".

  • Drrickryp Profile Picture
    Super User 2024 Season 1 on at

    Hi @DirkKotze 

    It is very easy to do this.  First select an entity and then open the views option  Create the view with the data you want included and then filter it by selecting the filter option on the right hand column and add the sort direction.  Name and save the filter.  You can create as many views as you like and sort the columns in each view. 
    Annotation 2020-05-11 134751.jpg
    Then in PowerApps, when you set up your gallery, choose the entity as the Data Source, then select the view and the Items property of the gallery will reflect the filtered view.  
    Annotation 2020-05-11 134944.jpg

  • Ben Thompson Profile Picture
    1,400 on at

    As I know far too much about the internals of CDS as @HSheild states if you select a view as your data source the filter will be applied within CDS prior to the data being passed to the Canvas App.

     

     

  • DirkKotze Profile Picture
    34 on at

    Thank you very much @HSheild@Drrickryp , and @ben-thompson for that advice. I tried using Views before and couldn't get it working, so I assumed that was not the solution to my problem. When I now looked into Views again, I got it working.

  • Marco Pezzutti Profile Picture
    78 on at

    Hello

     

    I am importing the data from excel and I made one of my fields called Owner as specified. When I import it , the Owner data does not go into the Owner field as specified but rather creates a new field called Owner . What am i doing wrong here?

  • Hamish Sheild Profile Picture
    3,005 Most Valuable Professional on at

    Hi @mpezzutti 

     

    This looks like a completely different question with a different topic.  It's best if you create a new post so things don't get confused.

     

    It is really hard to understand your issue with the brief description you have given.  Are you able to provide steps and screenshots of what you are trying to do?  There are multiple ways of "importing data from Excel" with the Power Platform.

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