Creating a Rolling Calendar in Power BI
Last Updated :
13 Dec, 2023
Rolling calendars have become a vital tool in data analysis and visualization for monitoring and evaluating changes across time. By comparing recent data to past data dynamically and interactively, they give users the ability to spot trends, anomalies, and potential improvement areas. Users of the robust business intelligence platform Power BI may generate and apply rolling calendars to extract insightful information from their data. In this article, we will learn about how to make rolling calendars in Power BI.
Power BI Rolling Calendars
They are dynamic calendars that have the feature to update automatically and analyze new and current data. Creating a dynamic rolling calendar can help users save time in managing reports that require frequent updates.
For instance, a rolling calendar can be used to track sales figures for the past 12 months, ensuring that the data is always up-to-date.
Purpose for Power BI Rolling Calendars:
- The calendars help to include timelines and date references while creating reports or visualizations based on any type of chart.
- The non-standard columns have aggregated data easily by using the rolling calendars.
- They do financial analysis on a weekly, monthly, quarterly, or yearly basis.
- The report gets updated automatically when any new data is to be represented.
Creating a rolling calendar
Creating a rolling calendar in Power BI involves two primary steps:
- Calculating the Rolling Date Range: Utilize DAX (Data Analysis Expressions) to calculate the appropriate date range based on the current date. This typically involves subtracting a fixed period from the current date.
- Building the Calendar Table: Construct a calendar table containing the desired date range, including columns for year, month, and day. This table can be created manually or generated using Power Query.
Implementing the Rolling Calendar
Steps to create a Power BI rolling calendar:
1. Create a blank query
Get data in the Home tab and click on blank query.

The following steps explains how to use a formula to create a list of dates in Power BI. After creating the list of dates, it converts it into a table, and the user can format the column as a date.
In the Power Query editor, add the initial date using the DATE function. The date is in the <year>, <month>, <day> format. Try typing the following date for 01st Jan 2023, the initial date which was chosen by the user.

2. Write DAX (previously created formula) to initiate a literal date.
3. Write the following formula to generate a list of dates to add the custom step to the above step.
=List.dates(Source,Number.From(DateTime.LocalNow())-Number.From(Source),#duration(1,0,0,0))
Click the fx icon, click the fx button to add a new step. It will show a list which will populate in the query editor, from our source date (initial date) to the current date with a rolling down calendar structure.

Whenever the user opens up any report any time later on say after a month, this rolling calendar will show the last date as the current date. So we have created a dynamic rolling list of dates.
4. Convert this list into table

5. Advanced Query editor view:
Click on the "Advanced Editor" button on the top bar.
.webp)
You can see the query and its syntax for the above steps followed for creating the rolling calendar.

6. Add custom columns as per the requirement of developer or report builder.

The Inserted column looks like the following image, the user can select any thing like "Month", "Start of Month", "End of Month", "Days in Month", "Name of Month" as given in the right hand side of the above image.

This dynamic rolling calendar will show the last date as the current date. It requires no changes in this formula. We have finally created a dynamic rolling list of dates.
Benefits of Using Rolling Calendars in Power BI
Rolling calendars offer several advantages:
- Dynamic Data Analysis: Automatically adjust date ranges based on the current date, ensuring data is always up-to-date.
- Trend Identification: Facilitate trend identification and analysis over time, enabling users to spot patterns and anomalies.
- Performance Comparison: Allow for comparison of performance across different time periods, providing insights into the impact of changes or events.
- Enhanced Decision-Making: Support informed decision-making by providing a clear and concise view of historical and current data.
Applications of Rolling Calendars in Power BI
Rolling calendars find applications in various business domains:
- Sales Analysis: Track sales trends, identify seasonal patterns, and measure the effectiveness of marketing campaigns.
- Financial Analysis: Monitor key financial metrics, analyze revenue and expenses, and assess financial performance over time.
- Operational Analysis: Identify operational bottlenecks, track production output, and measure efficiency improvements.
- Marketing Analytics: Analyze customer behavior, track campaign performance, and optimize marketing strategies.
- Human Resource Management: Monitor employee trends, track retention rates, and analyze workforce demographics.
Conclusion
Rolling calendars have become an essential tool for data analysis and visualization, providing a dynamic and interactive way to track trends over time. Power BI's capabilities for creating and implementing rolling calendars empower users to gain valuable insights from their data, enabling informed decision-making and improved business performance. As data continues to grow and evolve, rolling calendars will remain an indispensable tool for businesses seeking to extract actionable insights and drive growth.
Similar Reads
Create a Toggle Button in Power BI
The Toggle button is a control element that allows the user to switch between the different states like switching between the images, measurements, pages, and many more. This toggle button makes reports more interactive. The main advantage of the toggle button is it creates space in the report rathe
5 min read
Power BI - Create a Radial Gauge Chart
A radial Gauge chart looks similar to a speedometer of a Car. A gauge chart is a half-circle chart, which tells whether a target is achieved or not. Gauge charts are generally used to measure the progress toward a goal. In this article, we will learn how to create a radial gauge chart in Power BI. C
4 min read
Power BI - How to Create a Waterfall Chart?
A waterfall chart shows a running value as quantities are added or subtracted. Itâs helpful to visualize how an underlying value is influenced by a series of positive and negative changes. The columns are usually encoded using color so that you can quickly identify increments and decrements. In a wa
2 min read
Power BI - Create Slicer Chart
Power BI Slicers are the interactive filters used to format and analyze the parts of the data more effectively. They are basically filters for visuals. A slicer chart helps in sorting or slicing or filtering some unwanted stuff and viewing only the required important information in the visual pane.
6 min read
Conditional Formatting in Power BI
Conditional formatting visually enhances and customize our data's appearance based on certain conditions or rules. It helps us highlight important data by applying colors, style and symbols based on rules or conditions. It makes our reports more readable, insightful and visually attractive.Types of
5 min read
Power BI - How to Create a Scatter Chart?
A Scatter chart is a chart, representing data points, spread on a graph, to show the column values. It helps us analyze and summarise the data very efficiently. We can also add legends, bubble sizes, and animations to this chart. This graph is widely used because it can show better visualizations in
4 min read
Power BI - How to Format a Card?
Cards in Power BI help us display a certain value, corresponding to different dynamic scenarios. For example, want to know the total population of the world, and the population of a certain country by a slicer, all can be achieved by cards in Power BI. In this article, we will learn how to format a
5 min read
Power BI - Create area charts
In this article, we will learn to implement basic area charts using Power BI. This discusses some important concepts used to create the very common area charts so as to make large business intelligence decisions made out of analyzing data trends. We will be discussing the following topics and their
7 min read
Power BI - Format Multi-Row Card
Multi-Row cards in Power BI help us display multiple values, corresponding to different dynamic scenarios. For example, want to know the total population of the world, the average world's economy, annual total deaths all in a single card, to achieve such tasks we use multi-row cards. Under the field
6 min read
Power BI - Create Pie and Donut Charts
In this article, we will learn to create Pie and Donut Charts using Power BI.Pie chartsPie and Donut Charts are mostly created to show the contributions of different values to a total amount. They are easy to read on charts. Donut charts work best to compare a particular section to the whole rather
8 min read