Skip to main content
Community site session details

Community site session details

Session Id : twEmM8XqkC1JByfYa1Tk4h
Power Apps - Building Power Apps
Answered

Filtering gives unexpected error

Like (0) ShareShare
ReportReport
Posted on 3 Feb 2023 07:58:32 by

Okay, so I have this custom entity, called dh_project. I also created dh_assignments to assign employees to a project. Of course dh_project is a lookup in dh_assignments.

 

Now, in my Canvas App I’d like to be able to select a project that I’ve been assigned to, using a dropdown. I slightly filtered the dh_assignments table in collection colAssignments. The item property of this dropdown looks like this:

 

Filter(Projects, (Project in ShowColumns(colAssignments, "dh_project")))

 

I had to use the ShowColumns because using the “in” operator it expects a one column table.

 

Unfortunately it returns “Can’t convert this data type. Power Apps can’t convert this Guid to a DataEntity” on the Project. Seems pretty straight forward, but I don’t seem to get why the showcolumns/collection is considered to be a “DataEntity” while “dh_project” is nothing but a Guid.

 

Running up and down here, anyone have an idea what I’m doing wrong (chat gpt is running in circles, so no help there).
Thanks,
Jeroen

Categories:
  • Verified answer
    Jeroen J Profile Picture
    on 03 Feb 2023 at 09:59:51
    Re: Filtering gives unexpected error

    Had to be (after hours of fidgetting):

     

    Filter(Projects, Project in Distinct(colAssignments,Project.Project))

     

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete