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 / Gallery collection - t...
Power Apps
Answered

Gallery collection - two data sources

(0) ShareShare
ReportReport
Posted on by 355

Hi,

 

I have two separate SP lists and though they are used for the same function within my company they have slightly different formats (problem of two different processes now being combined). 

 

I have a gallery that I'd like to display both sets of data, but using clearCollect(colName, 'SPList_1'); Collect(colName, 'SPList_2') it throws an error as some fields types are different (named the same but different formats, i.e. choices vs text).

 

Is there a way to have a gallery reference two different sources directly and not go via a combined collection? 

 

Thanks

Neil 

Categories:
  • Verified answer
    mdevaney Profile Picture
    29,993 Moderator on at

    @Coopedup 
    Nope, you cannot do this directly.  It must be a combined function.  Your best strategy will be to make sure both tables have exactly the same columns and datatypes.

     

    ---
    Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."

  • Coopedup Profile Picture
    355 on at

    This is the answer I'd found myself...but just hoped there may be something I was missing.  A little bit of thinking needed.

    Thank you

  • berofeev Profile Picture
    65 on at

    I was about to dive into a project where I was planning on using the clearcollect/collect method with intentionally different fields in each sp list, but also a set of fields that did overlap in name and data type.

     

    I was planning on using ShowColumns or DropColumns https://docs.microsoft.com/en-us/powerapps/maker/canvas-apps/functions/function-table-shaping

     

    Do you think it would be possible to do this?

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
11manish Profile Picture

11manish 393 Super User 2026 Season 2

#2
Mohsin Ali Profile Picture

Mohsin Ali 328

#3
WarrenBelz Profile Picture

WarrenBelz 278 Most Valuable Professional

Last 30 days Overall leaderboard