This document takes the Store Dimension table as an example to calculate the number of managed stores in each district, as shown in the following figure.
1. You can convert the dimension field Shop Number to an indicator field to obtain the distinct count of the number of stores.
2. You can add a filter condition to the indicator field Shop Number to obtain the number of managed stores. The filter condition is that the store nature is Managed.
3. However, since each district has a managed store that belongs to the headquarters, you need to add a calculation indicator and enter Shop Number+1 to obtain the number of managed stores that include the managed stores belonging to the headquarters.
4. Finally, you can add a group table to display the analysis result.
Sample data: Store Dimension.xlsx
Goal: to obtain the number of managed stores in different districts
Download the sample data Store Dimension.xlsx, create an analysis subject, and choose Local Excel > Upload Data, and upload the sample data, as shown in the following figure.
Click the Component icon in the lower left corner to add a component, as shown in the following figure.
Click the drop-down icon of Shop Number and select Convert to Indicator to obtain the distinct count of the number of stores, as shown in the following figure.
The number of managed stores needs to be calculated. Click the drop-down icon of the indicator field Shop Number, select Indicator Condition, and add a filter condition for Shop Number. The filter condition is that the store nature is Managed, as shown in the following figure.
Since each district has a managed store that belongs to the headquarters, you need to add one to the result of Shop Number obtained by the filter condition during the calculation of the number of stores in each district.
Add a calculation indicator, name the indicator Number of Managed Store, enter Shop Number+1, and click OK, as shown in the following figure.
Drag the fields from the to-be-analyzed area into the Dimension and Indicator bars, respectively, and deselect Total Summary Row in Component Style to obtain the number of managed stores in different districts. Click the Dashboard icon, and complete the operation, as shown in the following figure.
For details, see section "Expected Effect."
The following figure shows the effect on mobile terminals.
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy