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 / Combine Text and Filte...
Power Apps
Answered

Combine Text and Filtered Data in a Collection

(0) ShareShare
ReportReport
Posted on by 199

I am trying to create a collection that includes a list of items from a single column in a filtered Dataverse list and a single line of text, "Base Bid". The goal is to have a list of the Change Order Numbers for a given Job and "Base Bid". 

 

I have two Comboboxes. The first selects the Job No. In that Combobox's OnSelect Property I have the following code:

ClearCollect(colOriginated,"Base Bid", SortByColumns(ShowColumns(Filter('Change Orders','Job No' = ThisItem.'Job No'),"crd93_cono"),"crd93_cono",Descending))

 

Then in the Originated combobox Items property I simply have colOriginated. The Items only show "Base Bid" and do not show any of the Change Orders. 

 

I know I've seen a solution for this in the past, but I cannot find it anywhere. Please help and let me know if you have any questions to help solve this problem.

 

Thank you.

Categories:
I have the same question (0)
  • Verified answer
    RandyHayes Profile Picture
    76,299 Super User 2024 Season 1 on at

    @powerwood 

    Please consider changing your Formula to the following:

    ClearCollect(colOriginated,
     {crd93_cono: "Base Bid"},
     SortByColumns(
     Filter('Change Orders',
     'Job No' = ThisItem.'Job No'
     ).crd93_cono,
     "crd93_cono",Descending
     )
    )

     

    You were adding a "Base Bid" that would be going into a record with a Value column, yet all your other records have a column called crd93_cono

     

    You can also spare yourself the overhead of the collection and just set your Items property of your combobox to:

    Ungroup(
     Table({items: Table({crd93_cono: "Base Bid"})},
     {items: 
     SortByColumns(
     Filter('Change Orders',
     'Job No' = ThisItem.'Job No'
     ).crd93_cono,
     "crd93_cono",Descending
     )
     }
     ),
     "items"
    )
    

     

    Also...your formula is specifically using ThisItem.'Job No' but yet you stated that you have a first combobox for the selection of the job number.  If that is the case, then you want your formulas to be using the selected job number from the first control...not ThisItem.

     

    I hope this is helpful for you. 

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 329 Most Valuable Professional

#2
11manish Profile Picture

11manish 209 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 179

Last 30 days Overall leaderboard