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 / Formula to Copy Items ...
Power Apps
Answered

Formula to Copy Items from a Gallery to Another

(0) ShareShare
ReportReport
Posted on by 285
Hi,
 
I have two galleries Gallery1 and Gallery2 wherein at Gallery1, there are items like ThisItem.Col1, ThisItem.Col2, ThisItem.Col3 and a check box. Total rows are 10. The requirement is when i select all or any check box the corresponding Col1, Col2, Col3 value should get listed in Gallery2. Need a formula to achieve the same.
 
A help would be highly solicited.
 
Regards
Categories:
  • Verified answer
    SpongYe Profile Picture
    5,909 Super User 2026 Season 2 on at
    Hi @Sam70
     
    OnCheck Property of Checkbox add the following code:
    Collect(SelectedItems, ThisItem)
    OnUncheck Property of Checkbox:
    Remove(SelectedItems, ThisItem)
    
    Then the Items Property of Gallery2:
    SelectedItems
     
    Hope this help!
  • Sam70 Profile Picture
    285 on at
     
    The solution works perfect. Just in case i have a check box which checks/unchecks in one go, what would be the formula.
     
    Regards

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

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard