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 / Why AddColumns in Gall...
Power Apps
Answered

Why AddColumns in Gallery breaks EditForm's Item?

(0) ShareShare
ReportReport
Posted on by 255

I have a 3 screens app with a Gallery Screen and EditForm Screen.

If I add AddColumns function in Gallery's Items, it breaks EditForm's Item ("Not compatible with DataSource...anymore").

It's challenging since I really need to use AddColumns for the Gallery because I have to retrieve a ProductName from another table with Lookup, and then sort the Gallery with ProductName. 

Categories:
  • Verified answer
    BCBuizer Profile Picture
    22,899 Super User 2026 Season 2 on at

    Hi @Finnair ,

     

    By using AddColumns you create a sort of virtual table which does not match the schema of the Form's datasource anymore, hence the error.

     

    You can easily overcome this issue by using a LookUp function in the Form's Item property.

  • Finnair Profile Picture
    255 on at

    Thanks @BCBuizer 

     

    But the problem in Form's Item is that it has to be form "GalleryX.Selected" since it has to show an item selected in a Gallery.

     

    In Gallery's items I can add ProductName with a label succesfully (with Lookup), but sorting by this factor seems to be impossible.

     

     

  • Finnair Profile Picture
    255 on at

    Thanks @BCBuizer 

     

    I think I was able to create formula for Form's Item when I use ID as combining factor:

     

    LookUp(MY_MAIN_SQL_TABLE ; ID = GalleryX.Selected.ID)

     

     

     

     

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 342 Super User 2026 Season 2

#2
M Bilal Khan Profile Picture

M Bilal Khan 258

#3
Mohsin Ali Profile Picture

Mohsin Ali 231

Last 30 days Overall leaderboard