Calculate Time Interval Between Two Dates in Charts

In SAP Analytics Cloud, you can create a calculation that shows the time interval between two dates.
Beginner
July 25, 2025

Introduction

In SAP Analytics Cloud, you can create a calculation that shows the time interval between two dates.

Your model must have Date columns or date (time) hierarchies with Day level granularity.

What Is an Insight?

An insight is a saved table view created in Data Analyzer. It contains the table structure, applied filters, formatting, and prompts. Insights are stored as standalone files and can be reused or shared without creating a full story.

Procedure:

1

Select a chart. In the Builder panel on the right, click on Add Measure > Calculations > Create Calculation.

2

In the Calculation Editor dialog that appears, select Date Difference from the list.

3

Enter a name for the calculation.

Configure the Table Using the Builder Panel

4

In the Properties section, select values for Result Granularity, Time (A), and Time (B)

The Result Granularity values are determined by the data source. If the data source does not contain quarters or weeks, then you won’t see them in the list of values.

5

Click on OK and add dimensions to your chart.

Result

The date calculation is added to the chart.

Learning Path

Enroll Today!

We don't currently have a course on this subject but you better believe we're working on one. Check out what else we have available by pressing here!

Fallback Image

Next

Next Article

Previous

Previous Article

See What's New

Featured Articles

Our most recent and proudest works, ready to make your life a little bit easier.

SAP Analytics Cloud

SAC Key Features & Capabilities

Let’s learn about the key features and capabilities of SAP Analytics Cloud.

Datasphere

Creating a Space

Spaces are the areas where all data is retrieved, prepared and modeled. This article will walk you through creating a space in Datasphere.

SAP Analytics Cloud

Adding a Table (Datasphere Dataset)

Learn how to insert a table based on an existing SAP Datasphere dataset.

Curated For You

Article Recommendations

Here are some articles handpicked by our experts to help you continue your learning journey.

SAP Analytics Cloud

What is the Data Analyzer?

The Data Analyzer is a powerful tool that enables users to conduct ad-hoc analyses based on various data sources.

Contact Us

Reach out if you have any questions or to see how we can create a custom training solution for your organization!

Contact Form Pop-Up - General Use

Custom Training Solution

Fill out and submit the form below, and we’ll reach out to you to discuss how we can work toward achieving your training goals in a way that works best for you and your team.

Contact Form - Custom Training