Using Match+Index to compare different years' financial sales
If the store's financial year begins outside of January, sales trajectories can still be compared between the current and last financial years. You can add some calculations to Analytics to organize this.
-
Start by pulling up your sales by month for the past 36 months.
- Next, locate the Sale Completed Month from your report, and change it to your Financial Month.
-
From the date functions discussion, you can use the
add_monthsfunction.Add_monthsrequires two arguments: how many months forward, and which months you're looking at. For example, if your financial year starts in May, you need to determine how many months remain until the following January. To reach January from May, you would add eight months. In this example, enter: add_months(8,) -
Then, the months you want to start from are the Sale Completed Month.
-
Save, and the report displays the redefined financial month.
-
Next, you want to read the results for a year. To start this, extract the year.
-
From the Financial Month, copy the entire calculation.
-
Paste the calculation into the Current Financial Year.
-
Click Save. The report displays the information as you need.
-
Finally, click Save As New.
Next, for example, if you want to use Analytics to view the details for the year 2019 in this model, you would need to adjust it for the next financial year. Instead of defining this year, what you can do is set the calculation for the highest year from the available Financial months.
-
Start by using the Large function from the Math functions.
-
Refer to the Financial Year.
-
Find the largest timestamp.
-
Click Save. The largest timestamp will be in position one.
-
Also, you could proactively create a new calculation to pull up the previous Financial Year.
-
Click Save, and the report will pull up the previous Financial Year.
-
Next, click Save As New.
Next, you can turn these years into dates using Date calculation. You can recreate dates that are somewhere on the list, and then organize them the way you want.
-
The Date function requires three arguments: the year, the month, and the day.
-
Copy the calculation for This Financial Year into the year position, use the row() function to define the month (month one will be row one, month two will be row two, and so on). Finally, you can define the day as the number 1.
In this example image, there are two of these now: one for This Financial Year, and another for Last Financial Year.
-
Click Save, and the table for recreated years will read the results.
Finally, you have the framework to match and index the sales totals from the default sorting to your desired sorting. Start by matching the Financial Year-Month to the Financial Month.
-
Firstly, build the calculation.
-
Copy and paste the Financial-Year-Month calculation.
-
Then, copy and paste the first Financial-Month calculation. In this example, a second calculation to find the rows for the previous financial year is also included.
-
Click Save. The rows that correspond to our Financial Months for this Financial Year and the Last Financial Year display.
-
Using the match function, you can pull from the Sale Line Totals.
-
Enter each corresponding value for the financial year.
-
Click Save.
-
When you do it for both years, the values displayed are pulled from your report into the right order
-
Next, you can customize the visualization. Hide everything except the last two columns.
-
Then, copy the Last Financial Year calculation, but replace the -1 with -2
-
Then, click Save.
Analytics pulls up the corresponding months' results into the format that you want. There are many ways you can customize this report further, looking at running totals, looking at daily versions, and adding a goal for growth.