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 / Show the type of the c...
Power Apps
Unanswered

Show the type of the columns of a collection

(0) ShareShare
ReportReport
Posted on by 10

Lets say I have a collection in PowerApps.

I can show this if I click on the (x) icon on the left side.

 

For example like this:

web265p3_0-1712674646055.png

You can see that I have a collection called "xxx" with the columns "Dauer", "Einsatzdatum", "Id"...

 

But how can I know the type of those columns? 

For example the Id-Field could be a number or Text. I can just see that it has the value 1018, but not the type.

However, this is sometimes very useful.

 

Is there any trick I am missing?

 

Categories:
I have the same question (0)
  • Rajkumar_M Profile Picture
    3,747 Moderator on at

    Hi @web265p3 

     

    In PowerApps, it's not directly possible to determine the data type of columns within a collection just by looking at the data displayed in the collection viewer.

     

    You can inspect individual values within a collection using formulas like IsBlank, IsNumeric, IsText, etc., to infer the type of data. For example:

     

    // Check if the first value in 'Id' column of 'MyCollection' is numeric
    If(IsNumeric(MyCollection[Id]), "Numeric", "Text")

     

    Thanks!

     

    If my response has been helpful in resolving your issue, I kindly request that you consider clicking "Accept as solution" and "giving it a thumbs up" as a token of appreciation.

     

  • web265p3 Profile Picture
    10 on at

    Maybe to mention, that an @-is missing: 

    If(IsNumeric(MyCollection[@Id]), "Numeric", "Text")

     

  • web265p3 Profile Picture
    10 on at

    For me this does not work.

    If I create a new collection like this:

     

    Collect(AA, {A: 3, B: "Text", C: Today()})
     
    And then I try to evaluate it like this:
     
    If(IsNumeric(AA[@A]), "Numeric", "Text")
     
    It ALWAYS evaluates to "Text", no matter if I write @A, @B or @C

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Congratulations to the March Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 530

#2
WarrenBelz Profile Picture

WarrenBelz 459 Most Valuable Professional

#3
Haque Profile Picture

Haque 314

Last 30 days Overall leaderboard