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 / Date range filtering o...
Power Apps
Answered

Date range filtering on Countrows

(0) ShareShare
ReportReport
Posted on by

Hi Experts,

 

I have the below code in a text label to calculate all entries logged with certain criteria. 

CountRows(
Filter(QualityPortal, 
'Business Unit' = 'Dropdown-BusinessUnit_2'.Selected.Value || "Please select an option"=('Dropdown-BusinessUnit_2'.Selected.Value),

Classification = 'Dropdown-Classification_2'.Selected.Value || "Please select an option"=('Dropdown-Classification_2'.Selected.Value),

Status = 'Dropdown-Status_2'.Selected.Value || "Please select an option"=('Dropdown-Status_2'.Selected.Value),

Function ='Dropdown-SourceFunction_2'.Selected.Result || "Please select an option"=('Dropdown-SourceFunction_2'.Selected.Result),

'Cause Category' = 'Dropdown-CauseCategory_2'.Selected.Title || "Please select an option"=('Dropdown-CauseCategory_2'.Selected.Title),

Source = 'Dropdown-Source_2'.Selected.Value || "Please select an option"=('Dropdown-Source_2'.Selected.Value),

'Business Change Required' = 'Dropdown-BusinessChange_2'.Selected.Value || "Please select an option"=('Dropdown-BusinessChange_2'.Selected.Value)
)
)

 

In my sharepoint list, the Title column shows the date and time a user creates an entry in the sharepoint list (see below)

Date.JPG

Is there a way that I can adapt my code at the top so that I can filter to show the total results during a time period either a day, a week, a month etc. My thoughts are to have a start date choice and an end date choice so that the code filters based on the criteria between those 2 dates?

 

Thanks in advance!

Categories:
I have the same question (0)
  • Verified answer
    v-qiaqi@microsoft.com Profile Picture
    Microsoft Employee on at

    Hi @Dave-ITMan,

    Could you please tell me that how you configure this start date choice and an end date choice?

     

    Generally, we could use the following formula to filter records during a time period:

    Filter(QualityPortal, StartDate.SelectedDate <=DateTimeValue(Title)<=EndDate.SelectedDate )
    

    Note that only date value could be compared with.

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 893

#2
Valantis Profile Picture

Valantis 571

#3
11manish Profile Picture

11manish 482

Last 30 days Overall leaderboard