反馈已提交
网络繁忙
Sometimes we don't want to calculate the YoY and chain rate of the entire calendar month.
For example, there is a National Day holiday in October. If you want to know the chain rate of the total contract price in October, it is not feasible to directly compare the data in September and October. The data of "8-31" must be used compared with the "8-31" of September to better show the contract signing situation.
For example, this month has just arrived on the 15th, he wants to know the chain rate of the total contract price on the 1-15th this month with the 1-15th of the last month, and the YoY rate on the 1-15th of the same period last year. How to calculate it?
Filter the date range from 2013-03-01 to 2013-03-15, and the total contract price of the current period will be automatically filtered in the grouping table. And calculate the YoY and chain rate for this period, as shown in the following figure:
It is realized by adding date filter components and calculation indicators that are not bound to fields.
Create a new dashboard and enter the dashboard edit page.
First, create a new date range filter component to prepare for the date range filtering.
1) Drag a date filter component into an empty dashboard, as shown in the figure below:
2) Click "OK" directly on the filter component edit page, as shown in the figure below:
Use FineBI's demo data "Provincial and municipal contract data" to add a new component. As shown below:
The YoY rate=(Total contract price in current period-Total contract price in the same period last year)/Total contract price in the same period last year*100%
The chain rate = (Total contract price in current period-Total contract price in the same period last month)/Total contract price in the same period last month*100%
Therefore, to calculate the YoY and chain rate, we need three new fields: "Total contract price in current period", "Total contract price in the same period last year", and "Total contract price in the same period last month". These three new fields all need to be bound to our newly created date range filter component in Section 2.1. Proceed as follows:
1) Copy the "Total contract price" field and name it as the "Total contract price in current period".
2) Perform detailed filtering on the "Total contract price in current period" field. The effect of filtering is to filter the total price of the contract to obtain the data of the date interval selected by the filtering component.
1) Copy the "Total contract price" field and name it "Total contract price in the same period last year";
2) Perform detailed filtering on the field of "Total contract price in the same period last year". The effect of filtering is: to filter the total contract price to obtain the same time period data one year before the date interval selected by the filter component.
1) Copy the "Total Contract Price" field and name it "Total contract price in the same period last month";
2) Perform detailed filtering on the "Total contract price in the same period last month" field. The effect of filtering is to filter the total contract price to obtain the same time period data one month before the date interval selected by the filter component.
Add a "The YoY rate" field. If the "Total contract price in the same period last year" has no value, then "The YoY rate" field is blank, otherwise "The YoY rate" value is calculated.
Here we split the formula into two parts for users to understand:
Functions used
if(ISNULL(sum_agg (Total contract price in the same period last year)),"",The YoY rate)
SUM_AG G
ISNULL
The YoY rate=(sum_agg (Total contract price in current period)-sum_agg (Total contract price in the same period last year))/sum_agg (Total contract price in the same period last year)
Add a chain rate calculation field. If the "Total contract price in the same period last month" has no value, then "The chain rate" field is blank, otherwise the chain rate is calculated.
Here, the formula is also split into two parts for users to understand:
if(ISNULL(sum_agg (Total contract price in the same period last month)),"", The chain rate )
The chain rate = (sum_agg (Total contract price in current period)-sum_agg (Total contract price in the same period last month))/sum_agg (Total contract price in the same period last month)
After all the fields are calculated, it is easy to make a chart component.
Here we make a group table, drag the fields into the analysis area, and change the numerical format of "The YoY rate", "The chain rate" to percentage. As shown below:
Go to the dashboard and filter the date. As shown below:
售前咨询电话
400-811-8890转1
在线技术支持
在线QQ:800049425
热线电话:400-811-8890转2
总裁办24H投诉
热线电话:173-1278-1526
文 档反 馈
鼠标选中内容,快速反馈问题
鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。
不再提示
10s后关闭