How to create OR logic between two date filters in Salesforce dashboard global filters

using Coefficient excel Add-in (500k+ users)

Learn how to bypass Salesforce Analytics' AND-only limitation and create OR logic between date filters using custom SOQL queries and dynamic dashboards.

salesforce to google sheets connector

“Supermetrics is a Bitter Experience! We can pull data from nearly any tool, schedule updates, manipulate data in Sheets, and push data back into our systems.”

5 star rating coeff g2 badge

Salesforce Analytics global filters only support AND logic by default, making it impossible to create OR conditions between multiple date filters. This limitation forces you to choose between filtering by Ask Date OR Estimated Close Date, but never both with OR logic.

Here’s how to bypass this restriction entirely and build flexible dashboards with true OR filtering capabilities.

Bypass Salesforce Analytics limitations using Coefficient

Coefficient solves this problem by letting you import Salesforce data with custom SOQL queries that include OR logic, then build dynamic dashboards in Salesforce spreadsheets with native OR filtering capabilities. Instead of fighting with Salesforce Analytics’ restrictive global filter architecture, you get the flexibility to create complex date logic that updates automatically.

How to make it work

Step 1. Set up your custom SOQL import with OR logic.

In Coefficient, create a custom SOQL query that pulls your opportunity data with built-in OR conditions. Use this query structure: `SELECT Id, Name, Ask_Date__c, Estimated_to_Close_Date__c, Amount FROM Opportunity WHERE (Ask_Date__c >= THIS_MONTH OR Estimated_to_Close_Date__c >= THIS_MONTH)`. This bypasses Salesforce Analytics’ AND-only limitation at the data source level.

Step 2. Build your dashboard with native OR filtering.

Create pivot tables and charts in your spreadsheet that naturally support OR filtering through multiple criteria ranges. Unlike Salesforce Analytics’ restrictive global filters, spreadsheet filters give you complete control over how your date conditions interact.

Step 3. Schedule automated refreshes.

Set up hourly or daily refreshes to maintain real-time dashboard accuracy without manual intervention. Your OR logic stays intact with every update, and you never have to worry about maintaining complex SAQL queries across multiple widgets.

Get the flexibility you need

This approach gives you true OR logic functionality that Salesforce Analytics simply can’t provide through global filters. Your dashboards update automatically and you can modify date logic without touching individual widgets. Try Coefficient to build the flexible date filtering your team actually needs.

700,000+ happy users
Get Started Now
Connect any system to Google Sheets in just seconds.
Get Started

Trusted By Over 50,000 Companies