cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Doors1980
Level: Powered On

Count records from only the last 90 Days

I can easily count all records using:

 

CountRows(Search(LLL, "Kerry", "Title"))

How do I search the same data but return items only from the last 90 days?

 

Thanks, Smiley Very Happy

1 ACCEPTED SOLUTION

Accepted Solutions
Anonymous
Not applicable

Re: Count records from only the last 90 Days

Hi @Doors1980

 

If you want to Count all rows that match few criteria I recommend using something like this:

 

 

CountRows(
  Filter(
    LLL,
DateColumn >= DateAdd(Today(), -90),
Title = "Kerry" ) )

 

This will only count rows that have Kerry in Title and the date column which is up to 90 days behind today.

 

View solution in original post

4 REPLIES 4
BitLord69
Level 10

Re: Count records from only the last 90 Days

Hi!

 

You have two options: either you change your Search to maybe a Filter and select your dates there, or you do a CountIf instead. It will look something like this:

 

CountIf(LLL, DateColumn >= DateAdd(Today(), -90))

 

You have to change the name of the column, and if it's not a date value already (meaning if the date as stored as text), you have to use DateValue to make it into a date.

 

Good luck!

Doors1980
Level: Powered On

Re: Count records from only the last 90 Days

Thanks @BitLord69 , how would I add the 90 days into a filter formula? (as I also need to filter by another field, not just by the 90 days)

Anonymous
Not applicable

Re: Count records from only the last 90 Days

Hi @Doors1980

 

If you want to Count all rows that match few criteria I recommend using something like this:

 

 

CountRows(
  Filter(
    LLL,
DateColumn >= DateAdd(Today(), -90),
Title = "Kerry" ) )

 

This will only count rows that have Kerry in Title and the date column which is up to 90 days behind today.

 

View solution in original post

Doors1980
Level: Powered On

Re: Count records from only the last 90 Days

Perfect @Anonymous , cheers for the help.  I'll get the hang of this one of these days. Smiley Tongue

Helpful resources

Announcements
Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Join THE global Microsoft Power Platform event series

Attend for two days of expert-led learning and innovation on topics like AI and Analytics, powered by Dynamic Communities

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Microsoft Business Applications Virtual Launch

Join us for the Microsoft Business Applications Virtual Launch Event on Thursday, April 2, 2020, at 8:00 AM PST.

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Top Solution Authors
Top Kudoed Authors
Users online (9,435)