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 / How ShowColumn functio...
Power Apps
Answered

How ShowColumn function work?

(0) ShareShare
ReportReport
Posted on by 120

Hi everyone;

I want to know more about how the ShowColumn function works. I know that it is used to create a table within the app from the data source by sifting through columns and removing non-selected columns. However, I don't understand which column will be displayed if we put it into a dropdown.
As an example in this link
Why in step 4h, when performing Dropdown2.items = ShowColumns ('Job Positions', "ID", "Title"), the title column is selected by default, not the ID column displayed?
And what does adding the ID column in the example in the above link mean?

 

Categories:
  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    In the example you refer to 'Job Positions' is a SharePoint list.  SharePoint lists always include an ID column, which is an integer that is guaranteed to be unique for each record added to the list. So in that context the ShowColumns creates a local Table that consists of two columns, the ID and the Title field from the 'Job Positions SharePoint list.  The Title is displayed in the Dropdown because its Text, while ID is an Integer. (Although I have seen times when this doesn't default correctly and you need to manually set the Value property to the field I wanted displayed.

  • carem Profile Picture
    120 on at

    @Pstork1 

    In step 4m

    The formula: Show Columns(Applicants, “Title”, “ID”, “ApplicantsJobPositionLookup”)

    Why is the Title column selected but not the ApplicantsJobPositionLookup column?

  • Verified answer
    Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    I would assume that's because Title is a simple text field but ApplicationsJobPositionLookup is a complex Lookup field and not Text.  Title is also the first text field it comes across.  As I mentioned you can set a property to control which field is displayed.

  • carem Profile Picture
    120 on at

    Thanks, @Pstork1 

    That means ShowColumn automatically takes the first Text format column as the display value for the Dropdown control.

  • Pstork1 Profile Picture
    69,665 Most Valuable Professional on at

    That is my experience.  As I mentioned, you can control what column is used in the properties panel for the dropdown.  But I believe the default is to use the first Text column it encounters.

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

#2
WarrenBelz Profile Picture

WarrenBelz 188 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 120

Last 30 days Overall leaderboard