Blog Layout

Relative Dates in Reports

Mike Arthur • Dec 21, 2015

Check that you're returning all the data that you think you are!

Did you know that if you filter a report by 'Date Field' equals 'last 3 months', you won't see data where 'Date Field' is this month?

I found this out when my report wasn't returning everything that I expected to see.

The range for the relative date filter 'LAST n MONTHS ' is ' Starts at 12:00:00 AM on the first day of the month that started n months before the current month and continues up to 11:59 PM on the last day of the month before the current month . ' (my italics).

Be sure to read the range definitions carefully to ensure that your reports return everything that you expect.

You can find all the relative date filters defined here.

In order to show records where 'Date Field' is from the first of the month up to and including this month, I changed my filter to ' Last Modified Date equals LAST 3 MONTHS,THIS MONTH ', i.e. the last 3 months or this month.

My Blog of Salesforce Stuff

by Mike Arthur 16 Oct, 2021
'XHR Failed' error when trying to install VS Code extension
by Mike Arthur 09 Jun, 2020
What is $A (dollar A) in Lightning Aura component framework? Is it a global variable? Where are the docs for $A?
by Mike Arthur 08 May, 2020
Authorise a Salesforce Connected App using OAuth 2.0 JWT Bearer Flow
by Mike Arthur 26 Apr, 2020
REST API Connection to Salesforce Connected App Using OAuth 2.0 Authentication from Postman
by Mike Arthur 23 Mar, 2020
How to create a Lightning tab menu with dropdown sub-menu
by Mike Arthur 27 Nov, 2018
How to show a month by month trend chart with multiple years on same chart
by Mike Arthur 06 Nov, 2018
What to do if you receive emails about expiring certificates
22 Aug, 2018
Process json strings when working with integrations
by Mike Arthur 22 Aug, 2018
If you're switching email accounts you can copy appointments from one calendar to the other
by Mike Arthur 22 Aug, 2018
When you search in Outlook 2016, how do you see in which folder you filed an email in the results?
More posts
Share by: