反馈已提交
网络繁忙
To eliminate the "Real-time Data" button, FineBI provides BI projects with both "Real-time Data" and "Extracted Data" calculation modes to avoid the problems caused by mixing real-time data and extracted data.
Fuzzy search support for finding parameters when filter component "binding parameters
Because the amount of data in the original table is too large, sometimes it may lead to a memory or disk full situation, so it is usually necessary to use where statement, plus filter conditions to control the amount of data. The where statement followed by a fixed value will make the fetching inflexible, so you can use parameters to dynamically control the amount of data fetched by BI, such as fetching all the data within a dynamic time period.
For example, if you select the data for 2015 in the "Year Month Interval" filter component, the data for 2015 will be displayed in the data table, as shown in the following figure.
1)Add the SQL data set and configure two parameters in the SQL statement: start time and end time.
2)Use the "Year Month Interval Filter Component" binding parameter in the dashboard to filter out the full year 2015 data.
Example data: "Internet_access_statistics_table" under the built-in DEMO
1)Login to FineBI, select "Data Preparation", go to Business Package, and click "Add Table > SQL Dataset", as shown in the following figure.
2)Name the data set "Internet Access Data", select the data connection, and enter the SQL statement with parameters.SELECT * FROM Internet_access_statistics_table WHERE 1=1 <parameter> and TO_CHAR("date",'yyyymm') >=concat('${begin year}',case when cast('${begin month}' as tinyint)>9 then '${begin month}' else concat('0','${begin month}') end ) and TO_CHAR("date",'yyyymm') <=concat('${cut-off year}',case when cast('${cut-off month}' as tinyint)>9 then '${cut-off month}' else concat('0','${cut-off month}') end )</parameter>,Click Refresh, select the parameter type as "Date" and choose the default value, and click OK. As shown in the figure below.
Note 1: The example is the SQL writing method of year-month interval filter component, different database writing method is different, this article only provides the reference example, other types of SQL parameter writing method details see: SQL data set parameter writing method example.
Note 2: The default value can be chosen arbitrarily, and the default is empty, that is, choose all.
Create a new dashboard, use "Internet Access Data" and add a grouped table as shown below.
Add the "Year Month Interval" filter component, edit the "Year Month Interval" filter component, select the binding parameters, and click the "Set" button to select the parameters, as shown in the following figure.
See Section 1.2 of this document for details.
售前咨询电话
400-811-8890转1
在线技术支持
在线QQ:800049425
热线电话:400-811-8890转2
总裁办24H投诉
热线电话:173-1278-1526
文 档反 馈
鼠标选中内容,快速反馈问题
鼠标选中存在疑惑的内容,即可快速反馈问题,我们将会跟进处理。
不再提示
10s后关闭