For example, calculate the sum of the order amounts of different ship methods in every year.
Combine with other quick calculation functions to calculate the proportion within the group, the accumulated proportion within the group, and so on.
Use the TOTAL function.
The first parameter is the indicator calculated by the user, which must be an aggregate function or aggregate indicator.
Note: The third parameter supports SUM, AVG, MAX, MIN, and is not case sensitive.
1) Calculate the aggregate value of the "AMOUNT" of different ship methods in every year, for example, calculate the aggregate value of the amount in the group of year 2008, as shown in the following figure:
For the writing of functions, please refer to: Function Calculation Format.
Continue to calculate the "proportion within the group" to calculate the proportion of the amount of different ship methods in the same year: SUM_AGG(AMOUNT)/TOTAL(SUM_AGG(AMOUNT),1,"sum") , as shown in the following figure:
Formula description:
Calculate the "accumulated proportion within the group", enter the formula: ACC_SUM(SUM_AGG(AMOUNT),1)/TOTAL(SUM_AGG(AMOUNT),1,"sum"), as shown in the figure below:
If you calculate the summary value of the "AMOUNT" in the self-service dataset, you can add a column and select "All Values/Within the group" to set the sum of total amount, as shown in the figure below:
Since the data here is a calculation of detailed data, the result will not be changed due to dimensional changes. The results are as follows:
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy