Periscope Data Documentation

Connecting to Periscope

First Time Connecting

Connection Definitions

Common Connection Errors

Private Network SSH Tunnels

Integrations

Overview

Getting Started

Keyboard Shortcuts

Charts & Dashboards

Chart Overview

Chart Options

Dashboard Overview

Refresh Mechanics

Organizing Charts

Organizing Dashboards

Table-like Charts

Table Overview

Cohort Grids

Pivot Tables

Graph-like Charts

Overview & General Settings

Chart Types and Settings

Mixing Chart Types

Map Charts

Map Chart Overview

Heatmaps

Clusters and Bubbles

Satellite Maps

GeoJSON

Other Charts & Customizations

Pie Charts

Image Charts

Chart Annotations

Site Administration

Adding Users

Removing Users

User Types

User Groups

Two-Factor Authentication

Managing User Permissions

Dashboard Permissions

Site Preferences

Query Management

Color Themes

Dashboard Refresh Management

Usage Data

Periscope Cache

Caching Strategies

Querying the Periscope Cache

Cross-Database Joins

CSV Upload

Materializing Views

SQL Formatters

Using SQL Formatters

Composing SQL Formatters

Dollars and Percentages

Time Zone Formatters

Date Aggregation

Date Parts

Basic Filters

Custom Filters

Date Range Filters

Aggregation Filter

Adding, Moving, and Hiding Filters

Advanced Filters

Default Filters

Drilldowns

Parent-Child Filters

Matching Filter Values

Time Zone Conversions

Direct Replacement

User Friendly Names

Views

SQL Views

Joining to Views

More SQL Tools

SQL Snippets

Parameterized SQL Snippets

SQL Alerts

Automatic Joins

Version History

Sharing and Embedding

Sharing Dashboards Externally

Email Reports

Easy Embedding

Embed API

Embed API Options

CSV Download

Public CSV URL

Slack API

Slack Linking Reports

Data Management

Adding and Deleting Datasource

Spaces: Data-Level Permissions

Improving Query Throughput

Revoking Table Permissions

Salesforce Datasource

Schema Browser

SSO Integrations

Overview

Okta

OneLogin

Google Apps

Date Range Filters

Dashboard-Level Date Range

To use the built-in Date Range filter at the top of the dashboard, write:

where [my_datetime_column=daterange]

For example, New Users Per Day can be modified applying the dashboard-wide Date Range filter like so:

The daterange filter can be updated at the dashboard level, for example, to "90 days."

The filter parameters will then be applied to all charts using the daterange filter, such as "New Users Over Time."

The user can then re-enter the chart editor and click the Query tab to display the SQL showing the date restriction for the 90-day dashboard-level filter, complete with timezone correction:

To filter on only the start or end of the Date Range, write:

where my_datetime_column >= [daterange_start]
where my_datetime_column < [daterange_end]

Ad-Hoc Date Ranges

To create chart-specific date range filters that are independent of the dashboard-level filters, write:

where [my_datetime_column=30days]

Any number of days will work between the "=" sign and the word "days".

Week-To-Date, Month-To-Date and Year-To-Date

To filter date ranges to the current calendar week, month, or year, write:

 where [my_datetime_column:wtd]
 where [my_datetime_column:mtd]
 where [my_datetime_column:ytd]

The built-in date range and aggregation filters syntax is similar.