web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : jwRSaqIgf7PNGIa3H4Tryo
Power Apps - Building Power Apps
Answered

Populate gallery with items from multiple collections

Like (0) ShareShare
ReportReport
Posted on 18 May 2021 13:33:01 by 506

Hi All,

 

Need to populate gallery with items from multiple collections. Below are the 2 collections which I hold.

 

ClearCollect(
ModEve,
ShowColumns(
DataSource,
"Event",
"Modified",
"Author",
"Event_BL_Flag"
)
);

ClearCollect(
ModOrg,
ShowColumns(
DataSource,
"Event",
"Modified",
"Author",
"Event_BL_Flag"
)
);

 

This is the Gallery where I need to populate items from both the collections. Both collections have same columns. Any idea how to set the item property of Gallery to both collections ?

 

Cap.JPG

 

 

Categories:
I have the same question (0)
  • RandyHayes Profile Picture
    76,291 Super User 2024 Season 1 on 18 May 2021 at 13:39:02
    Re: Populate gallery with items from multiple collections

    @Iantaylor2050 

    Set your Items property to the following:

     

    UnGroup(
     Table(
     {Items: ModEve}
     {Items: ModOrg}
     ),
     "Items"
    )

     

    I hope this is helpful for you.

  • Iantaylor2050 Profile Picture
    506 on 19 May 2021 at 01:27:02
    Re: Populate gallery with items from multiple collections

    Hi @RandyHayes 

     

    I tried using the above formula, however it throws error as below

     

    ColError.JPG

     

    Also, Can we use ThisItem.columnname for setting values in Gallery ?

  • Verified answer
    RandyHayes Profile Picture
    76,291 Super User 2024 Season 1 on 19 May 2021 at 15:05:56
    Re: Populate gallery with items from multiple collections

    @Iantaylor2050 

    Sorry, forgot a comma.  Please scrub through the formulas I provide as I type them by hand without the aide of a design editor.

    Formula should be:

    UnGroup(
     Table(
     {Items: ModEve},
     {Items: ModOrg}
     ),
     "Items"
    )

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Chiara Carbone – Community Spotlight

We are honored to recognize Chiara Carbone as our Community Spotlight for November…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 629 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 397 Super User 2025 Season 2

#3
wolenberg_ Profile Picture

wolenberg_ 232 Moderator

Last 30 days Overall leaderboard
Loading complete