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 / Linking a collection t...
Power Apps
Answered

Linking a collection to an excel-table - date column not importing

(0) ShareShare
ReportReport
Posted on by Microsoft Employee

Hi everyone,

i have linked a collection to an excel-table using  "ClearCollect(colPrice;pricingtable)".

Every single column is linked very well, except the date column and i cant figure out the problem. 

I tried different formatting for the date in excel but the collumn of my collection stays empty.

Importing the date as a number works, but it shows up the wrong date in a gallery, it's alway 1970-01-01.

 

any suggestions?

sorry for my poor english 😑

Categories:
I have the same question (0)
  • Nogueira1306 Profile Picture
    7,390 Super User 2024 Season 1 on at

    I would say for you to create the collection with Patch().

     

    Try this:

     

    ForAll(

    Patch(

    colPrice,

    Defaults(colPrice){

    ...

    ColDate: DateValue(DateExcel)

    ...

     

    }

     

    That way you are forcing the item to be a Date

    If that does not work, try converting in excel.. set it field as text

     

    If you need additional help please tag me in your reply and please like my reply.
    If my reply provided you with a solution, pleased mark it as a solution ✔️!

    Best regards,
    Gonçalo Nogueira

    Check my LinkedIn!

    Check my User Group (pt-PT)!

    Last Post on Community

  • v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @SteMatu ,

     

    If you have formatted the column to Text, then fill up those cells with date form texts, you will be able to retrieve all the date column values into Power Apps collection and gallery, no matter how you format this column in Excel:

    vjefferni_0-1637738572913.png

    vjefferni_1-1637738621555.png

     

    But you should note that, if you change this column to Date or other formats, any new entries will not be able to display in Power Apps correctly, basically be blank all the time.

     

    So, the best approach to make power apps with Excel table as the data source is, use Text columns all over the table and never change.

     

    Hope this helps.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

  • SM-20081418-0 Profile Picture
    54 on at

    Not sure what you mentioned me to do, but it gave me a hint for a solution.

    I created another column in excel with the formula =TEXT(Eingabemaske'!O17;"dd.mm.yyyy") which is readable for powerapps.

     

  • Verified answer
    v-jefferni Profile Picture
    Microsoft Employee on at

    Hi @SteMat ,

     

    So, if you are able to use a new column with the Text formulas to convert the previous column date values, it is the solution.

     

    Best regards,

    Community Support Team _ Jeffer Ni
    If this post helps, then please consider Accept it as the solution to help the other members find it.

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 April Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Vish WR Profile Picture

Vish WR 1,070

#2
Valantis Profile Picture

Valantis 639

#3
11manish Profile Picture

11manish 608

Last 30 days Overall leaderboard