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 / Canvas App- Date Filter
Power Apps
Answered

Canvas App- Date Filter

(0) ShareShare
ReportReport
Posted on by 538

Trying to display the reports based on the date filter.

 

Current Setup :

  1. DataTable
  2. DatePicker1
  3. DatePicker2

AVTS_0-1620387485653.png

Datasource is selected in Datatable Items : Dailyinventory.

 

How to display the filter based table results in the Datatable

 

 

 

Categories:
I have the same question (0)
  • eka24 Profile Picture
    20,923 on at

    Hi @AVTS 

    On the items property of the DataTable:

     

    Filter (Dailyinventory, DateColumn >= StartDate.SelectedDate && DateColumn <= EndDate.SelectedDate)

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • AVTS Profile Picture
    538 on at

    I am getting error ,

     

    AVTS_0-1620390405938.pngAVTS_1-1620390437708.png

     

  • eka24 Profile Picture
    20,923 on at

    Change the name of the Datapickers to your Datapicker names:

    Filter (Dailyinventory, DateColumn >= DatePicker1.SelectedDate && DateColumn <= DatePicker2.SelectedDate)

     

    Also change the DateColumn to your actual Date column name

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • AVTS Profile Picture
    538 on at

    Datecolumn is short date,following error . Is this incorrect format ?

     

    AVTS_0-1620394046107.png

     

  • eka24 Profile Picture
    20,923 on at

    Remove the Today () from the formula since it could be picked from Datepicker

    ------------

    If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

  • AVTS Profile Picture
    538 on at

    Hi,

     

    Almost ok. But date selection todate i have to given one more date get previous date data.

    Example i have 02.05.2021 is having 10 records. So when i give fom 02.05.2021 to 02.05.2021 no data displaying whereas if i give to date 02.05.2021 to 03.05.2021 then records are displaying

    Filter(Dailyinventory, 'Created On' >= DatePicker2.SelectedDate && 'Created On' <= DatePicker3.SelectedDate )

  • zaphod88 Profile Picture
    502 on at

    Then try this:
    If(DatePicker2.SelectedDate = DatePicker3.SelectedDate,

      Filter(Dailyinventory, 'Created On' = DatePicker2.SelectedDate,
      
    Filter(Dailyinventory, 'Created On' >= DatePicker2.SelectedDate && 'Created On' <= DatePicker3.SelectedDate )) 

  • AVTS Profile Picture
    538 on at

    Is this correct ? i can see duplication of this line ?

    Filter(Dailyinventory, 'Created On' = DatePicker2.SelectedDate,

  • zaphod88 Profile Picture
    502 on at

    Yep. It's a condition: If the picked dates in both pickers are the same, the list is filtered for this date (if DatePicker2 or DatePicker2 does not matter, as it's the same date). Otherwise (if the picked dates are different), the list is filtered for a date range.

  • AVTS Profile Picture
    538 on at

    it did not pick through error ,

     

    AVTS_0-1620412784567.png

     

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!

Leaderboard > Power Apps

#1
Haque Profile Picture

Haque 85

#2
WarrenBelz Profile Picture

WarrenBelz 76 Most Valuable Professional

#3
Kalathiya Profile Picture

Kalathiya 38 Super User 2026 Season 1

Last 30 days Overall leaderboard