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 / Fetch correspondent pa...
Power Apps
Unanswered

Fetch correspondent parent list items when search for a child list item

(0) ShareShare
ReportReport
Posted on by 39

Hello,

I have 2 Sharepoint lists: Parent and Child with a 1-N relation. The same are related with a lookup column that every child has one Parent related item.

I want to be able to filter (using a Text Search Box) my gallery not only the Parent list items but also to fetch a parent list item whenever I find a reference in a certain column from the child list items.

 

Example:

 

Parent list:

Title
A1
B1
C1

 

Child list:

TitleRelated Item
A2A1
B2A1
C2C1

 

If I write in my text search box C2, I want to fetch the related item - C1.

 

I have the following query in my gallery:

 

If(
Checkbox1.Value = true && IsBlank(TextSearchBox1),
If(
!IsBlank(Dropdown1.Selected.Value),
Filter(
'KB_items (mirror)',
Department.Value = Dropdown1.Selected.Value
),
'KB_items (mirror)'
),
If(
!IsBlank(TextSearchBox1),
Filter(
'KB_items (mirror)',
Approval = "Approved" And (Or(
IsBlank(Dropdown1.Selected),
StartsWith(
Title,
TextSearchBox1.Text
),
Department.Value = Dropdown1.Selected.Value
)) And (TextSearchBox1.Text in Title || TextSearchBox1.Text in 'Tag Value' || TextSearchBox1.Text in Concat(
'VB Products'.Value,
Value & ","
) || TextSearchBox1.Text in Concat(
'Market Segment'.Value,
Value & ","
) || TextSearchBox1.Text in Concat(
'Use Cases'.Value,
Value & ","
))
)
)
)

 

Is this possible to achieve? Can someone guide me with this?

 

Thanks and sorry if I sound rookie but I am quite new in Powerapps...

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    154,799 Most Valuable Professional on at

    Hi @evaristo ,

    I am not totally clear what list belongs where, but the structure below maintains a big of Delegation capability and adds the fields from the parent list

    With(
     {
     wData:
     Filter(
     'KB_items (mirror)',
     (
     Checkbox1.Value ||
     Approval = "Approved"
     ) &&
     (
     Len(Dropdown1.Selected.Value) = 0 ||
     Department.Value = Dropdown1.Selected.Value
     ) 
     )
     },
     Filter(
     AddColumns(
     wData,
     "ParentField1",
     LookUp(
     ParentList As aList,
     aList.Title = 'Related Item'
     ).ParentField1,
     "ParentField2",
     LookUp(
     ParentList As aList,
     aList.Title = 'Related Item'
     ).ParentField2
     ),
     (
     Len(TextSearchBox1.Text) = 0 ||
     (
     TextSearchBox1.Text in Title || 
     TextSearchBox1.Text in 'Tag Value' || 
     TextSearchBox1.Text in Concat(
     'VB Products',
     Value
     ) || 
     TextSearchBox1.Text in Concat(
     'Market Segment',
     Value
     ) || 
     TextSearchBox1.Text in Concat(
     'Use Cases',
     Value
     )
     )
     )
     )
    )

     

    Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

    MVP (Business Applications)   Visit my blog Practical Power Apps

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!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard