ℹ️Objective: Learn how to effectively analyze your time-based data, how to create time-based filters, calculations and visualisations.
Estimated Time: 20 mins
Exercise Description: You as a business analyst, need to assess company’s performance this year, compare operational and finance KPIs over time and learn how to enhance the dashboard with interactive capabilities to ensure company’s managers can further investigate the data.
Key Features:
- Create dynamic and fixed date-based story and page filters with multiple ranges
- Learn how to customise “current date” for greater flexibility when analysing time-based data
- Create dynamic calculations such as Year-to-Date (YTD), Previous Year-to-Date (PYTD) and others
- Learn how to define date-based hierarchies in SAC that best suit your needs
- Click Home
ℹ️Welcome to the Time Analysis Deep Dive! We will also go into greater detail on the analytic capabilities available to story creators and how you can enhance yourdashboard to analyze trends over time
🚩For this section you will start with an existing story. Let's open the starting story from the file repository
- Click Files
- Click Public
- Click TechEd 2021
- Click Section 10.0 - Time Analysis (START)
🚩As you do not have edit rights to this story, use Save As to create your own copy.
-
Click File
-
Click Save As
-
Save the file as "ANA260_Section 10_Your Initials" in MyFiles
-
Click OK
🚩Wait for the story to be copied
- Click Edit
🚩You want to do the time-based analysis on the Historical Performance tab.
- Select Historical Performance Tab
🚩Right now, there is no time-based filter on the dashboard, you want to narrow down the data to the current month to date. Let's create a story filter using the quick filter option for time.
-
Click Add Story Filter icon
-
Click Current
-
Click Order Date
-
Click Month under To Date
🚩You can see a story filter for the current month to date has been created and the entire dashboard has been filtered from start of this month until today.
Note: As this is a dynamic time filter, your data may look different based on today's date.
🚩 Currently the current month is determined based on system time. However, you want to provide your story viewers with the ability to determine what the current day is. For this you can add a custom current date input control.
-
Click Order Date Story Filter
-
Click Edit Filter
🚩While you created the month to date filter via quick options, the dynamic range filter dialog provides a lot of more options. First you want to add the custom current date input control.
-
Expand Current Date
-
Click + Create Current Date Input Control
-
Rename to Date Selector
-
Expand Granularity
-
Click Day
🚩Let's set the default current date to October 31st, 2021 as it is the last day of last month.
-
Expand Day Granularity
-
Click January
-
Click October
- Click 31
- Click OK
🚩Quality Check! Does your Dynamic Time Filter match the screenshot?
Note: Range 1: Current Month may not match due to dynamic time.
- Click OK
🚩You can see the Date Selector input control was added to the story filter bar. In the time series chart, you can see that the data now show October data until October 31st.
🚩Let's change the Current Date to December 8th, 2021 and see how the dashboard updates.
-
Click Date Selector
-
Click October
- Click Dec
-
Click 8
-
Click Outside the Date Selector to Collapse
🚩You can see, especially in the time series chart, that the dashboard has been updated accordingly.
🚩Next, you want to give your story viewers some more time filtering options. Such as Current Year to Date and Previous Year to Date. Of course, all these options shall be based on the Date Selector for the current date.
You can do this by adding additional ranges to the Current Month story filter
-
Click Order Date
-
Click Edit Filter
🚩The first range to add is beginning of the year up to today's date.
- Click + Add a New Range
- Click Include Range up to Current Period
🚩The next range to add is beginning of last year up to today's date last year. This can be done by applying an offset to the range filter
- Click + Add a New Range
- Expand Range Type
- Click Offset
-
Enter 1 as the Offset Amount
-
Click Outside the Offset Amount
-
Enable Include Range up to Offset Period
The last range shall be the last 2 years as well as the current year
- Click + Add a New Range
-
Enter Look Back as 2
-
Click Outside Look Back to Save Entry
🚩You're done with the set up of the 4 time ranges that the story view may choose from.
- Click OK
🚩Let's review the ranges created. Switch from Current Month to the Current Year filter.
-
Click Current Month
-
Click the Second Member
-
Click outside to collapse the story filter
🚩You can see on the time series chart that the filter has been applied. Let's extend to view the last 2 years as well as the current year.
-
Click Order Date
-
Click the Last Member
-
Click outside to collapse the story filter
🚩Again, you can see on the time series chart that the filter has been applied.
🚩Right now, the story filter has still a lot of options such as configuring the time periods to go back to. You can hide this complexity from the story viewer. Let's do that and only expose the effected time range to the story viewers.
-
Click Order Date
-
Click Settings
-
Click Show/Hide
-
Deselect Look Back
-
Deselect Current Period
-
Deselect Look Ahead
-
Deselect Range Info Icons
🚩You can see that this looks much cleaner.
🚩Next you want to add some page input controls to investigate, which orders where ordered and received in a certain time frame. These input controls shall be in the lane with the Order Deliver Analysis table. Let's select the lane and add an input control each for Order and Receive Date
- Click the Third Lane (Row)
-
Click More icon
-
Click Insert Input Control
- Click Dimensions
-
Click Order Date
-
Click Filter by Range...
🚩This time the range shall be fixed rather than dynamic
- Click Fixed
🚩You want the range of the order to be from October 1st to October 31st, 2021.
-
Expand Granularity
-
Click Day
-
Expand the Beginning Date Picker
-
Click 2019
- Click 2021
- Click January
- Click Oct
- Click 1
- Expand the End Date Picker
- Click December
- Click Oct
- Click 31
- Click OK
🚩The input control was added to the page. Let's expand it and put it into the position.
- Click and Drag the Input Control to Resize
🚩Let's create another input control to filter based on the receive dates between October 1st, 2021 and November 30th, 2021.
- Click the Third Lane (Row)
-
Click More icon
-
Click Insert Input Control
- Click Dimensions
-
Scroll and Click Receive Date
-
Click Filter by Range...
-
Click Fixed
-
Expand Granularity
-
Select Day
- Expand the Beginning Date Picker
- Click 2019
- Click 2021
- Click January
- Click Oct
- Click 1
- Expand the End Date Picker
- Click 2022
- Click 2021
- Click January
- Click Nov
- Click 30
- Click OK
🚩The input control was added to the page. Let's expand it and put it into the position.
- Reszie Receive Date as Wide as Order Date Range Filter
🚩You may have noticed that the entire dashboard is filtered on the Order and Receive date input controls that you just added. You only want to apply these to the Order Delivery Analysis table. You can use Linked Analysis to set the scope of the page input controls
-
Click the Order Date Range Filter
-
Click the More Action
-
Click Linked Analysis
- Click Only Selected Widgets
-
Scroll and Click Order Delivery Analysis
-
Click Apply
🚩We want to repeat the steps for the Receive Date Range Filter Input Control.
-
Click Receive Date Range Filter
-
Click More Action icon
-
Click Linked Analysis
- Click Only Selected Widgets
-
Scroll and Click Order Delivery Analysis
-
Click Apply
🚩Let's find out which orders that were shipped after Oct 1st, 2021 have been received by October 8th, 2021.
- Click the End Date Picker
- Click November
- Click Oct
- Click 8
🚩Next you want to calculate the time it takes to deliver your orders. This can easily be done via calculations.
- Click the Order Delivery Analysis Table
-
Click Designer
-
Click More Action Icon for Account
-
Click Add Calculation
- Click Date Difference
The time to deliver the orders is the difference between Receive Date and Order Date.
-
Expand Time (A)
-
Click Receive Date
🚩You must specify the context of the calculation. As the delivery time is based on orders you must use Order ID in the dimension context. Also, in case the chart or table does not include Order ID, then an additional average aggregation will be applied to the calculation.
- Expand Dimension Context
-
Click Order ID
-
Click Outside the Dimension Context Drop Down Menu to Collapse
-
Rename Calculation to Delivery Time
-
Click OK
🚩You can see the delivery time has been added to the table.
Note: You may need to scroll in the table to see the new calculation.
Let's format the calculation.
-
Click 1 Story Calculations
-
Click Edit Formatting
-
Deselect Use Unit of Underlying Measure
-
Set Decimal Places to 0
-
Click OK
🚩The calculation has been formatted. Let's order the measures in the table.
- Click Designer to collapse the Designer Panel
🚩We want to reorder the measure within our table.
-
Right Click on Account to Open the Context Menu
-
Click Sort Options
-
Click Add Custom Order
🚩The desired order is: • Delivery Time • Sales Revenue • Gross Margin • Discount
-
Click and Drag Delivery Time to the top
-
Click and drag Sales Renue Below Delivery Time
-
Click and Drag Gross Margin above Discount
- Click OK
🚩Next you want to compare the financial performance for this year to the performance from last year during the same period. You will do the analysis on the Financial Performance table. Select the table and open the Builder panel.
-
Scroll to the Bottom of the Dashboard
-
Click the Financial Performance Table
- Click Designer to Open the Builder Panel
🚩The table uses a measure input control. You want to have the time calculations apply automatically to any measures in the table, this can be done using Cross Calculations. Add the Cross Calculation dimension to the table
- Click + Add Measures/Dimensions
-
Click Cross Calculations
-
Click Outside the Measures/Dimensions Drop Down Menu to Collapse
🚩Let's add the first cross calculation as a restricted measure for the year to date time range using order date dimension
-
Click the More Actions Icon for Cross Calculations
-
Click Add Calculations
- Click Restricted Measure
-
Expand Dimensions
-
Click Order Date
-
Expand Values or Input Controls
-
Expand To Date Under Current Period
- Click Year
-
Rename the Calculation to YTD
-
Click OK
🚩You can see the calculation was added to the table. Let's create an equivalent calculation for the previous year's value.
-
Click Add Calculations
-
Click the More Action Icon for Cross Calculations
- Click Restricted Measure
-
Expand Measures
-
Click Account Values
-
Expand Dimensions
-
Click Order Date
-
Expand Values or Input Controls
-
Expand To Date Under Previous Period
-
Click Year
-
Rename the Calculation to PYTD
-
Click OK
🚩Next you want to calculate the variance between last years data and this year’s data.
-
Click the More Actions Icon for Cross Calculations
-
Click Add Calculation
- Click Calculated Measure
-
Type P
-
Click PYTD
-
Type - Y
-
Click YTD
-
Rename Calculation to Variance
-
Click OK
🚩Before reviewing the table. Let's make sure we have only the desired calculations selected.
- Click Filter for Cross Calculations
-
Click PYTD
-
Click OK
Note: Due to the dynamic time filter the data may vary.
🚩Next, you would like to adjust the order of the columns in the table.
-
Click the More Actions Icon for Cross Calculations
-
Click Edit Member Order...
🚩The required member order is:
YTD PYTD Variance Account Values Measure Selector
-
Click and drag YTD to top
-
Click and drag PYTD below YTD
-
Click and drag Variance below PYTD
- Click Done
🚩You want to make the variance stand out more easily indicating where there was an increase or decrease from last year. This can easily be done by turning it into a variance in-cell chart.
-
Right Click Variance to Open the Context Menu
-
Click In-Cell Chart
-
Click the In-Cell Chart
-
Expand the Comparison Tile
-
Click Variance Bar
🚩Next let's look at some time navigation inside a chart. The chart shows the Sales Revenue over time. Let's drill a level down to understand how 2021 is performing.
-
Drag the Horizontal Scroll Bar to the Right
-
Left Click the 2021 Bar
-
Click the Drill Down Icon
🚩You can see the chart now show the Sales Revenue by quarter. However, you're more interested in it for the half year. Let's change the hierarchy via the builder panel.
-
Click the Drill Icon for Order Date
-
Click Set Hierarchy
-
Expand Hierarchy
-
Click Year, Half-Year, Quarter, Month, Day
- Click Set
🚩The chart has been reset to the new hierarchy. Let's change the level via the builder panel.
-
Click the Drill Icon for Order Date
-
Click Level 3
🚩Now let's look at quickly showing the year over year changes if the Sales Revenue. This can be done via time calculation quick options if time if in the chart
- Click the More Action Icon for Sales Revenue under Measures
-
Click Add Time Calculation
-
Click Year Over Year
- Remove Sales Revenue
🚩You can see that H1 2021 is significantly lower than H1 2020. Let's drill into this more.
-
Click the H1 2021 Bar
-
Click Drill Down
🚩The major deviation was in Q1 of 2021.
ℹ️You have concluded the Time Analysis Section! Save your document.
🚩Press Ctrl + S to save your story
You have completed the entire Time Analysis section!
You are now able to:
- Create dynamic and fixed date-based story and page filters with multiple ranges
- Customise “current date” for greater flexibility when analysing time-based data
- Create dynamic calculations such as Year-to-Date (YTD), Previous Year-to-Date (PYTD) and others
- Define date-based hierarchies in SAC that best suit your needs