Finebi supports the use of a variety of formula and functions. These formula or functions are different from commonly used Excel functions. This file provides comparison to help users with the foundation of Excel to quickly use the formula and functions in BI. The file is continuously updating.
Sum a set of data.
Average a set of data.
MAX()
Find the maximum value of a set of data.
MIN()
Find the minimum value of a set of data.
COUNT()
The COUNT function calculates the number of cells containing numbers and the number of numbers in the parameter list.
Attentions
1)SUM_AGG is generally used for summation after Detail filtering and division. If you want to sum only one value, you can drag the field directly to the indicator to sum automatically.
2) Use COUNT_AGG to calculate the number of cell rows with sales profit, that is, calculate the number of cells with non empty amount, as shown in the following figure:
You can also directly use"Counter", as shown in the following figure:
SUM_AGG and IF are used together. See file Conditional summation and counting
Attetions:
The detail filtering in BI is the filtering of the number of data details before calculation. It can be written in combination with the aggregation function, and the effect is the same as SUM_AGG combining with IF.
Nested use of IF functions
Nesting with IF and other functions
IFERROR returns the value specified when the formula calculation result is error. Otherwise, it returns the result of the formula.
IFERROR function is an example of the application in BI. For example, if the sales volume and sales amount are known, the sales unit price of the corresponding product
needs to be calculated.
Sample data: Sales status.xlsx
Upload data to FineBI, as shown in the figure below:
After creating a dashboard using a dataset, add a calculation field and enter a formula: IF(SUM_AGG(sales amount)=0,"Calculation error",SUM_AGG(sales volume)/SUM_AGG(sales amount)).
Since the sales unit price needs to be calculated, the aggregate function needs to be used: SUM_AGG(sales volume)/SUM_AGG(sales amount). At the same time, in order to ensure the correctness of the calculation results, it is necessary to use the IF function to judge whether the sales volume is 0. Since the IF function cannot use aggregate and non aggregate functions at the same time, the judgment SUM_AGG(sales amount)=0should also be used, as shown in the figure below:
Drag "product" and new fields into the analysis column, and the results are as follows:
0
333.333333333
Find the number of location rows equal to / close to the query value
Example of MATCH function application in BI:
For example, if you need to calculate the sales revenue ranked first in ascending order, you can first rank it using the self-service dataset, and then use the function to return the specified data, as shown in the following figure:
The results are shown in the figure below:
Function description
LEFT
Does not support LEFTB
LEFT、LEFTB
RIGHT
Does not support RIGHTB
MID
Does not support midb
MID returns a specific number of characters in a text string starting at a specified position
Trim
FIND
Does not support Findb
Find、Findb
Does not support
Use FIND to look up the character position
search,searchb
Find character position
1)CONCATENATE
2)Self service dataset > group summary > string splicing
Note: the CONCATENATE function returns the text type field by default when splicing.
Combine several strings into one string
1) Add a calculation indicator and use the IF function to convert the value to the specified text
2) The default returned after CONCATENATE splicing is the text type, and text conversion is not required.
ROUND
round
The ROUND function rounds a number to the specified number of digits.
MOD
mod
Returns the remainder of the division of two numbers. The sign of the result is the same as the divisor.
Not supported, can be converted by adding calculation fields.
Measure conversion.
Add a calculation indicator and multiply the two fields directly.
sumproduct
rank
Returns the numerical ranking of a column of numbers.
Summary mode
SUBTOTAL
Returns a subtotal in a list or database.
FineBI formula/function
WEEKDAY
Note: the default return value is an integer between 0 and 6, representing a day of the week (from Sunday to Saturday).
DATEDIF(start_date,end_date,unit)
DATEDIF
TODAY
Note: from version 5.1.12, the date field numeric writing method is supported. For example, today()-1 is equivalent to returning the date of yesterday.
YEAR
year
滑鼠選中內容,快速回饋問題
滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。
不再提示
10s後關閉
Submitted successfully
Network busy