File tree Expand file tree Collapse file tree 1 file changed +22
-0
lines changed
docs/pages/reference/data-model Expand file tree Collapse file tree 1 file changed +22
-0
lines changed Original file line number Diff line number Diff line change @@ -310,6 +310,28 @@ type conversions in this case.
310310
311311</InfoBox >
312312
313+ In the example above, the filter on a time dimension accepts two values: the
314+ lower and the upper bounds of a date range. If a filter accepts multiple values,
315+ they are passed to the function as individual parameters:
316+
317+ ``` javascript
318+ cube (` multi_filter` , {
319+ sql: `
320+ SELECT 123 AS value
321+ -- Multiple values: ${ FILTER_PARAMS .multi_filter .dummy .filter (
322+ (... args ) => JSON .stringify (args)
323+ )}
324+ ` ,
325+
326+ dimensions: {
327+ dummy: {
328+ sql: ` 1` ,
329+ type: ` number`
330+ }
331+ }
332+ })
333+ ```
334+
313335## ` FILTER_GROUP `
314336
315337If you use ` FILTER_PARAMS ` in your query more than once, you must wrap them
You can’t perform that action at this time.
0 commit comments