反馈已提交
网络繁忙
After ranking the sales, you can filter out the stores with the top 30% of sales. That is, when the number of stores is 20, the top six are filtered out, as shown below:
The example uses Demo data "store sales statistics".
Use this data sheet to create components.
Enter the component edit page, add the calculation field "rank", and rank the "AMOUNT" in descending order. Use the formula RANK_ANLS, RANK_ANLS(SUM_AGG(AMOUNT),0,"desc"), click "OK", as shown in the figure below:
Note: The functions and fields in the formula box need to be selected by clicking the selection area on the left, and cannot be entered manually.
Add a new calculation field "total_customers". Use the formula TOTAL to calculate the maximum value of the rank to find out how many customers are there in total. Enter the formula: TOTAL(rank, 0, "max") and click "OK", as shown in the figure below:
1) Drag "CUSTOMERID" into the dimension column, "AMOUNT", "rank" and "total_customer" into the indicator column, and select the icon type as the group table, as shown in the figure below:
2) Click the "rank" drop-down to cancel the second calculation. This operation is for the subsequent filtering operation, the system will not re-rank the filtered results. As shown below:
3) Select "drop-down>filter" for the "CUSTOMERID" field, as shown in the figure below:
Set filter conditions: rank(Aggregation)<=total_customer(Aggregation)*0.3, as shown in the figure below:
There are a total of 21 stores, and the top 30% are the top 6 stores in terms of sales. The filtered effect is shown in the figure below:
Enter the dashboard editing interface and select "Filter component>Text drop-down", as shown in the figure below:
Select "CUSTOMERID" under "FRDemo_ORDERS" into the field column, as shown in the figure below:
The text drop-down filter 10 stores, the ranking will display the top 3, as shown in the figure below:
For details, please refer to section 1.1 of this article.
The ROUND function returns the nearest integer after calculation. The formula is: rank(Aggregation)<=ROUND(total_customer(Aggregation)*0.5,0), and the filter conditions are set as what is shown in the figure below:
The preview area automatically filters out the top 50% "CUSTOMERID" of "AMOUNT", and the filtered effect is shown in the figure below:
We set filter conditions, and the formula is: rank <= 3, as shown in the figure below:
The filtered effect is shown in the figure below:
售前咨询电话
400-811-8890转1
在线技术支持
在线QQ:800049425
热线电话:400-811-8890转2
总裁办24H投诉
热线电话:173-1278-1526
文 档反 馈
鼠标选中内容,快速反馈问题
鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。
不再提示
10s后关闭