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 with different...
Power Apps
Answered

Gallery with different sources (SQL)

(0) ShareShare
ReportReport
Posted on by 24

I have a gallery which changes sources (SQL views) based on If/Switch function.

Since last week the source does not return all columns from the source, but only first 12 columns.

It returns all the columns when used outside of If/Switch function.

Categories:
  • timl Profile Picture
    37,409 Super User 2026 Season 2 on at

    Hi @Majlo 

    I would try to explictly specify the columns with the ShowColumns function. That might make the columns appear.

    https://docs.microsoft.com/en-gb/powerapps/maker/canvas-apps/functions/function-table-shaping

    Alternatively, you could try turning off 'explicit column selection' in the settings to see if that makes a difference.

  • Majlo Profile Picture
    24 on at

    Hi @timl ,

    unfortunately I tried both of your suggestions and neither works.

    It behaves slightly differently compared to usual 'explicit column selection' since I don't see the existing column at all, not only data in it

  • Verified answer
    Majlo Profile Picture
    24 on at

    So I found the issue.

     

    After the update in source db, some of the columns in some views changed their name to Expr1 etc. and since the names weren't unified it didn't show them

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

#2
WarrenBelz Profile Picture

WarrenBelz 191 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 167

Last 30 days Overall leaderboard