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 Apps
Answered

Date Format Issue

(0) ShareShare
ReportReport
Posted on by 372

Hello, 

 

I have date format issue when I want to get data from excel. My excel column has date format like dd-mmm-yy (10-Jun-23). I want to grab data to my Apps, I used this formula in my icon Reload:

ClearCollect(
ProductID,
Filter(
Table1,
DateValue(Text(Received, "dd-mmm-yyyy")) >= Today() - 90 && // 'Received Date' 3 months from now
IsBlank(Text('Delivery Date', "dd-mmm-yyyy")) && // 'Delivery Date' is blank
Value(No) <= 2000 // Limiting to 2000 rows
),
Sort(Table1, No, SortOrder.Descending)
)

firda59_1-1690250429770.png

 

 

But, I got this error message:

Error when trying to retrieve data from the network: Unable to match columns in the filtered view. Filtered columns count: 85, actual columns count: 87. To use ordering or filtering, please try to make all the columns visible. clientRequestId: e17979ef-ef63-4c7b-87a2-762d2d7641d1 serviceRequestId: f4bbc460-feff-43bd-acce-f3592af6ff4d;c692e537-6701-409c-a33b-3fee4d8c5a4e;e0b4163e-df21-4cb4-9e97-49cc1ca0dd32;da57f350-b2bc-43dc-957d-a7ffbbf853c0;c6872246-747b-47a2-a52c-5fbb2f3e30c3;d42fce84-3a1d-45c2-8132-78c4156da246

 

Can anyone help me to fix it? Thank you

Categories:
I have the same question (0)
  • narayan225 Profile Picture
    2,547 Moderator on at

    @firda59 

     

    When you receive date from Excel, you will need to convert them to actual values first as Excel stores dates as numbers.

    http://powerappsguide.com/blog/post/convert-excel-date-serial-numbers

     

    You will first need to convert them to date values that Canvas App recognises first.

     

    Then your app should work fine.

     

    Hope this helps.

    Cheers!

     

  • firda59 Profile Picture
    372 on at

    Hi @narayan225 

     

    So, it means that I should convert my date column in excel as number?

  • narayan225 Profile Picture
    2,547 Moderator on at

    @firda59 

     

    You will first need to check how the date column is formatted. Try adding the table to a gallery and see how the date is shown if it is coming up as date, then it should be easier to filter with date values.

     

    As your date is formatted like dd-mmm-yy (10-Jun-23), you will need to transform it to 10/06/2023 format and then only you can perform the filter operation.

     

    Hope this helps.

     

    Cheers!

  • firda59 Profile Picture
    372 on at

    Hi @narayan225 

     

    I try to add my date in excel to gallery, this is the result:

    firda59_0-1690266970270.png

    In powerApps:

    firda59_1-1690266986902.png

     

    I dont understand why the result are different. Do you know why? 

  • narayan225 Profile Picture
    2,547 Moderator on at

    @firda59 

     

    Please use the following syntax for your filter condition.

    ClearCollect(
    ProductID,
    Filter(Organisation, 'Date Joined' >= DateAdd(Now(),-3,TimeUnit.Months) &&
    IsBlank('Delivery Date') && // 'Delivery Date' is blank
    Value(No) <= 2000 // Limiting to 2000 rows
    ))

    This should work fine as I tested by creating a sample database with your schema.

     

    Cheers!

  • firda59 Profile Picture
    372 on at

    Hi @narayan225 

     

    In my combobox that has formula:

    Distinct(ProductID, 'XXX ID'), error.

     

    The error message:

    Expected value '' to be a valid RFC 3339 'date-time' format. Allowed ISO 8601 format(s): 'YYYY-MM-DDThh:mm:ssZ', 'YYYY-MM-DDThh:mm:ss±hh:mm', 'YYYY-MM-DDThh:mm:ss'.

     

    Do you know how to fix it?

  • narayan225 Profile Picture
    2,547 Moderator on at

    @firda59 

     

    What are you trying to fill in the combo box?

     

    And are you getting the error in the gallery or in the combo box?

    Please advise.

     

    Cheers!

  • firda59 Profile Picture
    372 on at

    @narayan225 

     

    Hi, so I want to get at least 2000 the latest data from excel, which the column has blank delivery date and received date (today - 90days) 3 months ago. I used this formula in my button (refresh data to get 2000 latest data):

    ClearCollect(
    ProductID,
    Filter(
    Table1,
    DateValue(Text(Received, "dd-mmm-yyyy")) >= Today() - 90 && // 'Received Date' 3 months from now
    IsBlank(Text('Delivery Date', "dd-mmm-yyyy")) && // 'Delivery Date' is blank
    Value(No) <= 2000 // Limiting to 2000 rows
    ),
    Sort(Table1, No, SortOrder.Descending)
    )

     

    After my apps get that 2000 data, I used combobox to filter ID from that 2000 data. I used this formula:

    Distinct(ProductID, 'XXX ID')

     

    And then, my galery will show the component which has that ID (from combobox).

     

     

    It is error after I click that button 'refresh'

  • narayan225 Profile Picture
    2,547 Moderator on at

    @firda59 

     

    Did you use the syntax that I provided for the refresh button?

    ClearCollect(
    ProductID,
    Filter(Organisation, 'Date Joined' >= DateAdd(Now(),-3,TimeUnit.Months) &&
    IsBlank('Delivery Date') && // 'Delivery Date' is blank
    Value(No) <= 2000 // Limiting to 2000 rows
    ))

    Did you use this syntax?

     

    Cheers!

  • firda59 Profile Picture
    372 on at

    @narayan225 

     

    yup, still error

    firda59_0-1690440755888.png

     

    I dont know but, when I try to get 1 column from Received, the date is different between Apps and Excel. But for another column date there is no issue. Is it affect to formula?

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 Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 404

#2
timl Profile Picture

timl 344 Super User 2026 Season 1

#3
WarrenBelz Profile Picture

WarrenBelz 320 Most Valuable Professional

Last 30 days Overall leaderboard