Exploratory
  • Introduction
  • Product Features
    • Summary View
    • Table View
    • Row Filter
    • Column Filter
    • Dashboard
    • Dashboard (日本語)
    • Note
    • Note (日本語)
    • Steps (Right-hand side)
    • Branch
    • Parameter
    • Parameter (日本語)
    • Export
    • Share
      • Share Type
      • Chart / Analytics
      • Data
      • Report (Note / Dashboard)
      • Notification
      • Version History
      • Restore Older Version
      • CSV API
    • Share (日本語)
      • 共有のタイプ
      • チャート / アナリティクス
      • データ
      • レポート (ノート / ダッシュボード)
      • 通知
      • バージョンの履歴
      • 古いバージョンの復元
      • CSV API
    • Schedule
      • Manage Schedules
      • Notification
      • Scheduling History
    • Schedule (日本語)
      • スケジュールの設定
      • 通知
      • スケジュールの履歴
    • Team
      • Manage Teams
    • Team (日本語)
      • チームの設定
    • Project
      • Import
      • Export
      • Search
  • Data Import
    • File Data
      • CSV / Delimited File
      • Amazon S3
      • Google Drive
      • Google Cloud Storage
      • Excel
      • JSON
      • Log File
      • Microsoft Azure
      • Stats - SAS / SPSS / STATA
      • RData / RDS
      • Parquet File
      • EDF - Exploratory
    • Database Data
      • SQL Troubleshooting
      • Create Connection
      • Amazon Athena
      • Amazon Aurora
      • Amazon Redshift
      • Amazon Redshift (日本語)
      • Google BigQuery
      • HP Vertica
      • MariaDB / MySQL DB
      • MariaDB / MySQL DB (日本語)
      • Microsoft Access
      • MongoDB
      • ODBC
      • Oracle
      • PostgreSQL
      • PostgreSQL (日本語)
      • Presto
      • Snowflake
      • SQLServer (DSN)
      • SQLServer
      • Teradata
      • Treasure Data
    • Cloud Apps Data
      • Create Connection
      • FRED - Federal Reserve of Economic Data
      • Github Issues
      • Google Analytics
      • Google Analytics (日本語)
      • Google Spreadsheet
      • Google Cloud Storage
      • Salesforce
      • Twitter Search
      • Stripe
      • Weather Data
      • Stock Price Data
    • Write R Script as Data
      • Currency Exchange Rate
    • Write R Script as Data (日本語)
    • Web Page Scraping
    • Text Input Data
    • Data Source Extension
      • Quandl
      • Holiday
      • RSS Data
    • Create Custom Data Source
  • Data Wrangling
    • Command Line mode for faster and more flexible data interaction in Exploratory
    • Select / Remove Columns
    • Reorder Columns
    • Create New Calculation
    • Create New Calculation for Multiple Columns
    • Summarize (Aggregate)
    • Group
    • Filter
    • Rename
    • Arrange (Sort)
    • Top / Bottom N
    • Join
    • Merge
    • Gather
    • Spread
    • Pivot
    • Expand
    • Complete
    • Separate
    • Unite
    • Bind Rows
    • Bind Columns
    • Keep Only Unique Rows
    • Keep Only Duplicated Rows
    • Slice
    • Drop NA
    • Sample
    • Impute NA
    • Fill
    • Create Buckets
    • Assign New Values to Existing Values - Recode
    • Assign New Values by Setting Conditions - Case When
    • Work with Categories
    • Data Type Conversion
    • Row as header
    • Ungroup
    • Unnest
    • Separate List Items into Columns (Unnest Wider)
    • Separate List Items into Rows (Unnest Longer)
    • Separate Address (Japan)
    • Hoist
    • Remove Empty Rows
    • Remove Empty Columns
    • Clean Column Names
    • Window Calculation
    • Window Calculation (日本語)
    • Add Row
    • Text Wrangling
    • Regular Expression Cheat Sheet
    • Regular Expression Cheat Sheet (日本語)
  • Visualization
    • Types
      • Pivot
      • Summarize Table
      • Table
      • Bar
      • Line
      • Area
      • Pie/Ring
      • Radar
      • Histogram
      • Density Plot
      • Scatter (No Aggregation)
      • Scatter (With Aggregation)
      • Boxplot
      • Violin
      • Error Bar
      • Error Bar (Summarized Data)
      • Map - Standard
      • Map - Extension
      • Map - Long/Lat
      • Map - Heatmap
      • Heatmap
      • Contour
      • Number
      • Word Cloud
      • Word Cloud (日本語)
    • Features
      • Trend Line
      • Reference Line
      • Repeat By
      • Window Calculation
      • Date/Time Aggregation
      • Show Range
      • Highlight
      • Change Marker
      • Multiple Y-Axis Columns
      • Layout Configuration
      • Column Configuration
      • Column Configuration Dialog
      • Color and Group Setting
      • Color and Group Setting (日本語)
      • Color Setting
      • User Color Palette Setting
      • Pin
      • Save as PNG/SVG
      • Save as Exploratory Data File
      • Share/Schedule
      • URL Link
      • Category (Binning)
      • Highlight
      • Limit Values
      • 'Others' Group
      • Edit Display Name
      • Missing Value Handling
      • Rename Column Names
      • Axis Setting
      • Axis Formatting
      • Show Detail
      • Fit to Screen (Table)
      • Number of Unique Values Check
      • Number of Unique Values Check (日本語)
  • Analytics
    • Correlation
    • Distance
    • K-Means Clustering
    • Principal Component Analysis
    • Factor Analysis
    • Correspondence Analysis
    • Linear Regression Analysis
    • Logistic Regression Analysis
    • Generalized Linear Models
    • Survival Curve
    • Cox Regression
    • Random Survival Forest
    • Decision Tree
    • Random Forest
    • XGBoost
    • Time Series Forecasting (Prophet)
    • Time Series Forecasting (ARIMA)
    • Time Series Clustering
    • Anomaly Detection
    • Word Count
    • Text Clustering with Topic Model (LDA)
    • Market Basket Analysis
    • T Test
    • T Test (Aggregated Data)
    • ANOVA
    • Wilcoxon Test
    • Kruskal-Wallis Test
    • Chi-Square Test
    • A/B Test
    • Normality Test
    • Prediction
    • Dictionaries for Text Analysis
  • Statistics
    • Correlation
    • Distance
    • Cosine Similarity
    • SVD
    • Multi Dimensional Scaling
    • T-test
    • F-test
    • Chi-square test
    • A/B Test (Bayesian)
  • Machine Learning
    • Linear Regression
    • Logistic Regression
    • GLM
    • Multinomial Logistic Regression
    • K-means Clustering
    • Random Forest
    • XGBoost
    • Forecasting
    • Time Series Clustering
    • Anomaly Detection
    • Survival Curve
    • Survival Model (Cox Regression)
    • Market Basket
    • Causal Impact
    • Evaluate Prediction - Regression
    • Evaluate Prediction - Binary
    • Calculate ROC
    • Evaluate Prediction - Multiclass
    • Prediction
    • Prediction - Binary Classification
    • Prediction - Survival Model
    • Simulate Survival Curve
    • Extract Summary of Fit
    • Extract Parameter Estimates
    • Run ANOVA Test
    • Fix Imbalanced Data (SMOTE)
  • Text Analysis
    • Tokenize Text
    • Create N-gram Tokens
    • Calculate tf-idf
    • Count Text Pairs
  • Extend with R
    • R Package Install
    • Custom R Script
    • Custom Model Function
  • Setup
    • Disable McAfee virus scan
    • Change Repository Location
    • Change Repository Location (日本語)
    • Holidays Data for Forecast
    • Possible Reasons for Install Error
    • Upgrade Microsoft .NET Framework
  • Diagnostics
    • Log file for debugging
    • Log file for debugging (日本語)
    • Startup Log file for debugging
    • Startup Log file for debugging (日本語)
    • Check version of Exploratory Desktop
    • How to Recover the History Data
  • Keyboard shortcuts
Powered by GitBook
On this page
  • Types
  • Cumulative (Running Total)
  • Percent (%) of Total
  • Difference From
  • Percent (%) Difference From
  • Value Of
  • Moving Calculation
  • Rank
  • Options
  • Quick Window Calculation
  • Links

Was this helpful?

  1. Visualization
  2. Features

Window Calculation

PreviousRepeat ByNextDate/Time Aggregation

Last updated 2 years ago

Was this helpful?

The Window Calculation is available on Pivot, Summarize Table, Bar, Line, and Area charts.

Types

The following Calculation Types are available.

Cumulative (Running Total)

The "Cumulative" calculation calculates the current value based on the previous values in each group.

There are the following options available for summarizing values. The default value is Sum.

  • Sum

  • Sum Ratio - Sum of the ratio against the total. The last value in the group will be 100%.

  • Mean (Average)

  • Min Value

  • Max Value

  • Product

Percent (%) of Total

The "Percent of Total" calculates the ratio of values in each group. There are the following options available. The default is Sum (Total).

  • Sum (Total)

  • Mean (Average)

  • Median

  • Mode (Most Frequent)

  • Min Value

  • Max Value

  • First Value

  • Last Value

  • Previous Value (LAG) - Shows the previous values in the group.

  • Next Value (LEAD) - Shows the next values in the group.

There are the following options available. The default is X Axis.

  • X Axis - Calculate the ratio for each X-Axis data point. The total percentages on each X value will be 100%.

  • Color - Calculate the ratio for each color value. The total percentage of each color value will be 100%. For example, in the following chart, the total percentage of blue bars is 100%, and the same for other colors.

  • All - Calculate the ratio based on all data points. The total percentage of all the data points will be 100%.

Difference From

The "Difference From" calculates the difference from the specified position. There are the following options where you compare the differences from. The default is Mean.

  • Mean (Average)

  • Median

  • Mode (Most Frequent)

  • Min Value

  • Max Value

  • First Value

  • Last Value

  • Previous Value (LAG) - Shows the previous values in the group.

  • Next Value (LEAD) - Shows the next values in the group.

  • Period Ago (TS_LAG) - Shows the value of a certain period ago. For example, the value last month. This option is available only if the Date or POSIXct column is assigned to the grouping column such as X-Axis, Row of the Pivot Table, etc.

  • Specific Value - Difference from a specific value that you give.

Percent (%) Difference From

The "Percent (%) Difference From" calculates the difference ratio from the specified position. There are the following options where you compare the differences from. The default is Mean.

  • Mean (Average)

  • Median

  • Mode (Most Frequent)

  • Min Value

  • Max Value

  • First Value

  • Last Value

  • Previous Value (LAG) - Shows the previous values in the group.

  • Next Value (LEAD) - Shows the next values in the group.

  • Period Ago (TS_LAG) - Shows the value of a certain period ago. For example, the value last month. This option is available only if the Date or POSIXct column is assigned to the grouping column such as X-Axis, Row of the Pivot Table, etc.

  • Specific Value - Difference from a specific value that you give.

Value Of

The "Value Of" gets the values at the specific position. The following Default is Previous Value.

  • Previous Value (LAG) - Shows the previous values in the group.

  • Next Value (LEAD) - Shows the next values in the group.

  • Period Ago (TS_LAG) - Shows the value of a certain period ago. For example, the value last month. This option is available only if the Date or POSIXct column is assigned to the grouping column such as X-Axis, Row of the Pivot Table, etc.

Moving Calculation

The "Moving Calculation" calculates values by summarizing the data points in the window (range) around each data point.

For example, in this chart, it is using Moving Calculation using Average for summarizing data. Each data point is calculated by the average of the target data point plus 4 previous (left) data points. The beginning 4 data points which are on the very left of the chart are empty because there are not enough data points to calculate for those.

The following options are available.

  • Summarize Values Using - Type of calculations to apply to data points in the window. The default is Average.

  • Sum

  • Mean (Average)

  • Min Value

  • Max Value

  • Median

  • Standard Deviation

  • Variance

  • Sum

  • Product

  • Window Size - Number of data points to include in each window. The default is 5.

  • Window Align - How to define the boundary of each window. For example, if you set Right, each window includes the target data point plus 4 left data points.

  • Right

  • Center

  • Left

  • Fill Value - Value to fill the empty data points. The default is empty.

Rank

The "Rank" calculates the rank of the values in the group.

  • Order

    • Ascending

    • Descending

  • Rank Type

    • Min Rank

    • Dense Rank

    • Percent Rank

Options

  • Remove NA - Whether you want to remove NA values before applying a Window Calculation or not.

Quick Window Calculation

You can reach the popular Window Calculations quickly from the Quick Window Calculation menu. It is just a shortcut to the Window Calculation and you can customize it like a regular Window Calculation.

Links

You can check out the following articles for more information.

Introducing Window Calculations with Chart in Exploratory Desktop
5 Most Practically Useful Window (Table) Calculations in R