new

Visualization

Calendar V2

*(This feature will be enabled
only for Enterprise merchants
who began using Daasity
after September 2023
.)*
Overview
Time comparisons in Daasity are about to get a big upgrade.
The new Calendar V2 upgrade is coming out of beta and
was released on April 24.
The new Calendar v2 upgrade brings the following improvements:
  • Easier comparison calculations.
    To compare a measure between periods, all you need to do is choose the measure and one of its companion comparison-period measures and you're done — no more table calculations or additional filtering required.
  • Plot current & previous periods on the same chart.
    Create the same types of charts you're used to seeing and creating in Shopify, Google Analytics, and Looker Studio.
  • Simplified calendar dimensions.
    We're going back to the essentials and cutting the available calendar dimensions down by 40% to make an easier, more intuitive experience for the business users on your team.
Here's a quick demo of these new features in action:
How the new time comparisons work
Comparison measures
Calendar v2 introduces new Comp, Change, and % Change companion measures that can be pulled into your reports. This makes it so you don't need to pull in comparison-period label dimensions and use table calculations to create comparison measures.
image
In this example, if your filter period is the last 7 days and you're analyzing on 2/14:
  • Total Gross Sales
    = Total Gross Sales for the last 7 days (2/8-2/14)
  • Total Gross Sales (Comp)
    = Total Gross Sales for the preceding 7-day period (2/1-2/7). You can also use the new Comparison Type toggle to instead compare it to the previous year. In that case, the comp measure would represent Total Gross Sales for 2/8-2/14 of the previous year.
  • Total Gross Sales (Change)
    = Total Gross Sales minus Total Gross Sales (Comp)
  • Total Gross Sales (% Change)
    = Total Gross Sales (Change) divided by Total Gross Sales (Comp)
New date filtering
There are two new date filters to use in your reports:
image
  • Date (Custom Period)
    : Use this if you want to build a comparison period on the fly, e.g.: Last 7 days, Last 2 weeks, a specific date range like 2/1/2025 - 2/5/2025
  • Date (Preset Periods)
    : Use this if you want to use one of our pre-built periods, e.g.: Yesterday, Month to date, Last retail month, Latest 4 weeks. The logic for these preset periods work the same way as the old calendar's "Pivot by" dimensions and are useful for doing apples to apples comparisons. For example, choosing the Month to date preset period will allow you to compare this month to date vs the same period last month, e.g.: 2/1-2/14 vs 3/1-3/14
Compare to Previous Period or Previous Year
Calendar v2 makes it easy to switch between comparing to the previous period or the previous year. By default, the Comp and Change measures compare to the previous period, but you can easily change that using the new
Comparison Type
parameter:
2025-02-14_14-03-42 (1)
Getting metadata about the comparison
If you want to see what dates are being compared — either for QAing or just to include in a chart or dashboard — there are two days to do so.
You can use the
Show Comparison Date (Yes/No)
toggle to update the date label to show what date is being used for the comparison:
image
Or you can add the
Date Comparison Info
dimension to your data table to show the overall dates being compared. This is useful if you want to add a tile to your dashboard that contains meta data about what periods are being used for the comparison:
image
Will this affect
all
explores?
It will affect the following explores:
  • Amazon All Orders
  • Amazon Business Reports - By ASIN
  • Amazon Business Reports - By Day
  • Amazon Settlement Report
  • AppLovin
  • Daily Company Metrics
  • Daily Plan to Actual
  • Daily Plan to Actual Marketing
  • Inventory Levels
  • Klaviyo Campaign & Flow Performance
  • Klaviyo Events
  • Loop Returns
  • Marketing Attribution
  • Okendo Reviews
  • Order & Order Line Revenue
  • Shipstation
  • Shopping Stage
  • Subscribers
  • Traffic
  • Transactional Sales
  • Vendor-Reported Marketing Performance
What will happen to existing reports?
We're rolling this out in a way so that all of your existing reporting using the old version of the calendar will still work. However, if you want your existing reports to leverage the new Calendar v2 setup, you will need to modify them manually to use the new dimensions and filters.
The old calendar dimensions will still technically be included in the above explores, but they will be hidden. If you want to re-expose them, you can reach out to our support team — or, if you have developers on your team, you can edit the
view_label
parameter for the
retail_calendar
view in the explores. We have set the
view_label
for the
retail_calendar
view to an empty string, which hides the view from the field picker but still allows them to work. Populating the
view_label
will re-expose the view in the field picker.
How to re-enable the old Calendar dimensions
If you need the old calendar dimensions back, create a generic lkml file in the
base_refinements
folder in your Looker project, and add the following contents to the file:
include: "//base_daasity/views/drp/calendar.view.lkml"
view: +retail_calendar {
label: "Calendar"
}
What about LookML customizations that I've made?
If you have created refinements or new custom views or explores in your Looker project, you will need to do 2 things after enabling Calendar v2:
  1. Add 2 new joins to any custom explores to include the new calendar v2 view. After enabling Calendar v2, you should do the following joins to your custom explores:
Please Note!
If the custom explore does not already have a
retail_calendar
join, you will also need to include the
//base_daasity/views/drp/calendar.view.lkml
file and set up a join for it. The instructions below assume that
retail_calendar
is already joined in the explore.
# Add the following include statement to the top of the custom explore file
include: "//base_daasity/views/drp/calendar_v2.view.lkml"
# Add the following joins to the explore
join: calendar_v2 {
relationship: one_to_one
sql: {% if calendar_v2.date_filter_preset._is_filtered %} CROSS JOIN calendar_v2 {% endif %} ;;
sql_where: {% if calendar_v2.date_filter_preset._is_filtered %} ${calendar_v2.date_in_period_date} IS NOT NULL {% endif %} ;;
}
join: calendar_labels {
view_label: "Calendar v2"
from: retail_calendar
relationship: many_to_many
sql_on: ${calendar_v2.date_in_period_date} = ${calendar_labels.calendar_date} ;;
fields: [calendar_labels.retail_month,calendar_labels.retail_week,calendar_labels.retail_year]
}
  1. Update any refinements or custom views. You will need to add a filter for any existing measures you want to be able to work with Calendar v2 and will need to create the Comp, Change, and % Change measures for any custom measures you have added. We have created a web app to help you make your custom code compatible with Calendar v2. (It's what we used when we made the existing views compatible with Calendar v2, and it saved us hours.) Just upload or paste your LookML code, and it will make the updates automatically. You may need to make additional tweaks, but it will at the very least do the majority of the work for you.