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 / 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

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!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#2
Haque Profile Picture

Haque 69

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard