Quantcast
Channel: SCN : Blog List - SAP BusinessObjects Web Intelligence
Viewing all articles
Browse latest Browse all 221

WebI Trick: Line chart to show running average for each year

$
0
0

Business requirement: Display 3-month running average for sales revenue in a 12-month timing window for each year, like the one below

0.png

This chart helps the business understand how well they perform in term of sales revenue in each year after slightly adjusting data for seasonality.

 

Here’s how we can achieve that.

 

Step 1: Build a report using eFashion Universe

1.png

 

Step 2: Create “3-month Running Average” variable for sales revenue

=RunningSum(Previous([Sales revenue];3))/3

 

Step 3: Extract “3-month Running Average” for each year (2005 & 2006)

2.png

And

3.png

 

If you add these 3 variables in the original table, you can see that the running average of sales revenue is extracted from the first calculation for each year.

4.png

 

We still need one more step to display data correctly. We cannot use 2005 RA and 2006 RA because WebI may get confused between 2005 and 2006 data. You can add the [Year] dimension to the chart, but you may not have a clear look for trending performance in each year.

 

Step 4: Clean running average data for each year so that they can be displayed on the chart separately.

Create 2005 variable

=Sum([2005 RA] In([Year];[Month]))

 

Create 2006 variable

=Sum([2006 RA] In([Year];[Month]))

 

Now we should be able to assign data to the chart as requested

5.png

 

And then we have the final result:

0.png

 

Huu Nguyen


Viewing all articles
Browse latest Browse all 221

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>