#1 Ranking: Read how InetSoft was rated #1 for user adoption in G2's user survey-based index | Read More |
The test values of a filtering condition can be a SQL or a JavaScript expression. To filter a field in a data block based on an expression, follow these steps:
For example, to retrieve orders placed before today, you can use one of the following conditions:
// SQL:
[Order Date] [is] [less than] [CURRENT_TIMESTAMP]// JavaScript:
[Order Date] [is] [less than] [CALC.today()]Expressions that use SQL syntax are processed by the database, while expressions that use JavaScript syntax are post-processed by the Worksheet. Because post-processing is CPU-intensive for the query engine, and may additionally cause retrieval of a large amounts of raw data, it is preferable to use SQL syntax when possible. Note, however, that SQL functions are database-specific and vary from one database to another.
![]() |
Read the top 10 reasons for selecting InetSoft as your BI partner. |
Previous: Dashboard Data Parameters |
Next: Dashboard Subquery
|