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 / Create a gallery from ...
Power Apps
Answered

Create a gallery from different collection on a If condition

(0) ShareShare
ReportReport
Posted on by 2

Hi !

I have one gallery and I want it to use datas from Collection1 if XXX and from Collection2 if YYY.

Si I wrote this : 

 

(On my item gallery property) : If(condition1 , Collection1 , If(condition2 , Collection2) )

 

But it shows an error, apparantly some column (ThisItem.column) are unknown but this is so weird because my 2 collections have the same column. 

Anyone has an idea ? 

 

Thank you very much !

Categories:
I have the same question (0)
  • Bilakanti Profile Picture
    1,226 on at

    @alexane13 ,

     

    Can you please share your two collections schema.

  • alexane13 Profile Picture
    2 on at

    alexane13_0-1615899213093.png

    alexane13_1-1615899260414.png

     

    There is too much column to show you all but column name are exactly the same because when I try only with collection1 it's working and only collection2 it's also working

     

  • Verified answer
    Bilakanti Profile Picture
    1,226 on at

    @alexane13 ,

    I have replicated the same requirement from my end and it's working perfectly fine. Below are the screenshots for the same.
    1. Temp collections.

    Bilakanti_0-1615901923697.png

    2. Radio buttons: to select either colList1 or colList2.

    Bilakanti_1-1615901972895.png

    3.Items property of Gallery:

    Bilakanti_2-1615902009906.png

     



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 356 Most Valuable Professional

#2
11manish Profile Picture

11manish 225 Super User 2026 Season 2

#3
Mohsin Ali Profile Picture

Mohsin Ali 211

Last 30 days Overall leaderboard