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 / Regarding Filter using...
Power Apps
Answered

Regarding Filter using lookups

(0) ShareShare
ReportReport
Posted on by 11

Hello All,

 

I am using this simple function.

 

ClearCollect(MyComp, Filter('Opportunity Competitors', new_Opportunity.Opportunity = ComboBox2.Selected.Opportunity ).new_Competitor.name)

 

on Opportunity there is a subgrid "Opportunity Competitors"...On this Opp Competitor entity we have a lookup of Competitor entity.

 

Now I am trying to fetch the competitor names of a opportunity and set it in a collection 

 

the function ClearCollect(MyComp, Filter('Opportunity Competitors', new_Opportunity.Opportunity = ComboBox2.Selected.Opportunity ).'Created On' works fine and shows me the correct values. The created on is on the Opportunity Competitor entity.

 

The moment I change this to ClearCollect(MyComp, Filter('Opportunity Competitors', new_Opportunity.Opportunity = ComboBox2.Selected.Opportunity ).new_Competitor.name), I start seeing blank values. What could be the reason. I can see the data being fetched in the network calls. It is just not getting mapped.

Categories:
I have the same question (0)
  • Verified answer
    abhilashpmenon Profile Picture
    11 on at

    I have to write this to make it work. ClearCollect(CompetitorName, AddColumns( Filter('Opportunity Competitors', new_Opportunity.Opportunity = ComboBox2.Selected.Opportunity ), "Name1" , Competitor.Name, "CompId" , Competitor.'Competitor ' ))

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…

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 393

#2
WarrenBelz Profile Picture

WarrenBelz 345 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 271 Super User 2025 Season 2

Last 30 days Overall leaderboard