Rank the profits of last year, for example, according to the "Last year profits" of each province in ascending order from small to large, as shown in the following figure:
Use the RANK_ANLS 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 "DESC" and "ASC", and is not case sensitive.
rank_anls(sum_agg(amount),0,"asc"): If the user drags the "province" on the horizontal axis, the calculation result of this indicator is that the sales are grouped and summarized according to the province, and then the ranking based on last year profits of each province is calculated in the ascending order among all provinces.
Sample data: "package>FRDemo_MAPDemo".
Add a new calculation indicator, named as "rankiing" field, and enter the formula:RANK_ANLS(SUM_AGG(AMOUNT),0,"asc"), as shown in the figure below:
For function writing, see Function calculation format.
Drag "province", "Last year profits" and "ranking" into the analysis area, and set the "Last year profits" in ascending order, as shown in the figure below:
See section 1.2 of this article for details.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy