In Excel:
"Condition count (COUNTIF/COUNTIFS)": count the number of data pieces that meet a certain condition.
Conditional summation (SUMIF/SUMIFS): used to sum the values of specified conditions.
In BI, you can also use combinatorial functions to realize conditional summation and counting.
Note: cross data table calculation cannot be realized in BI, you can only calculate in one data table.
Note: if you don't need de duplication statistics and only need to record the times, use COUNT_AGG count is enough.
Example: calculate the number of users logged in on the activation date (de count the contact information of users logged in on the current day)
Sample data:
412.User retention analysis.xlsx
After uploading data, create a component, select the "User retention analysis" data set and enter the component editing interface.
Create a calculation field and enter the field name and formula: COUNTD_AGG(IF(DATEDIF(${Earliest activation date},${Login time},"D")=0,${TEL},null)), then click "OK", as shown in the following figure:
Formula description:
Drag the "Earliest activation time" into the horizontal axis and set it as "Year Month". Drag the "Number of logged in users on the activation day" field into the vertical axis to see the number of logged in users on the activation day, as shown in the following figure:
Example: calculate the total amount of "profit" with "area" as "Beijing", and "sales channel" as "supermarket".
316.AC-sales.xlsx
Create a dashboard, select the "AC-sales" dataset, create a "calculation indicator", and enter the field name and formula: SUM_AGG(IF(${area}="Beijing"&&${sales channel}="supermarket",${profit},0)), as shown in the following figure:
After saving the indicator, drag the "Beijing Supermarket Profit" indicator into the "indicator" field to see the total collection amount under the specified conditions, as shown in the figure below:
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy