Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Power Apps - Building Power Apps
Answered

Return all Relevant Data to TextInput

(1) ShareShare
ReportReport
Posted on by 4,884 Super User 2025 Season 1
I have TextInput1.

I have Production list.

Production list has columns 'Heat Number' and 'Campaign'.

A Campaign may appear in the Production list several times (see 318
in the attachment below).

I have the following lookup in the default of TextInput1. It is returning
one Heat Number, rather than ALL Heat Numbers associated with the
Campaign number chose (318).

In my example TextInput1 ('Heat Number') should contain '4828, 4829,
4830 and 4831'.

How do I update my lookup so that it pulls in all relevant 'Heat Numbers'?

I've tried both of the following. Each returns a single Heat Number -
LookUp(col_ZEB_Production,Campaign = CS_Campaign_Fld.Text,Title)
LookUp(col_ZEB_Production,Campaign = CS_Campaign_Fld.Text).Title

  • Verified answer
    Pstork1 Profile Picture
    66,758 Most Valuable Professional on at
    Return all Relevant Data to TextInput
    Lookup() by definition only returns the first item that meets the criteria in the lookup.  If you want multiple items then you need to use Filter, not Lookup.  You want something like this to return a string of all the Heat_Numbers in a single Campaign as a comma delimited string.  I'm assuming Title is the field that has been renamed to hold the Heat_Numbers.
     
    Concat( Filter( col_ZEB_ProductionCampaign = CS_Campaign_Fld.Text ), Title, ", " )

    ----------------------------------------------------------------------------------
    If this Post helped you, please click "Does this answer your question" and give it a like to help others in the community find the answer too!

    Paul Papanek Stork, MVP
    Blog: https://www.dontpapanic.com/blog
     

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

Michael Gernaey – Community Spotlight

We are honored to recognize Michael Gernaey as our June 2025 Community…

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

Leaderboard >