...
The right drawer tag will open the filter panel for every embed mode available.
...
Using
...
filters to filter a chart via JavaScript while embedded
With Category Filters (whole category)
Adding filters
To add category-level filters to all the charts in the category, you must have something with the following pattern:
Code Block |
---|
scheme://host:port/pi/#PA-CA###category/id/c-o-p=FILTERS |
For example:
Filtering the category with Department = Dev
:
Code Block |
---|
https://localhost:8224/pi/#PA-CA###category/141/c-o-p=eq__[[Department]]{{dev}} |
Filtering the chart with Department = Dev
and Number > 100
:
Code Block |
---|
https://localhost:8224/pi/#PA-CA###category/141/c-o-p=eq__[[Department]]{{dev}}/*$*gt__[[Number]]{{100}} |
With Temporary Filters (per chart)
Adding filters
To add temporary filters to the charts, you must have something with the following pattern:
Code Block |
---|
scheme://host:port/pi/chart#chart-filter/id/t-f-p=filtersFILTERS |
For example:
Filtering the chart with Department = Dev
:
Code Block |
---|
httphttps://localhost:8224/pi/chart#chart-filter/330__1/t-f-p=eq__[[Department]]{{dev}} |
Filtering the chart with Department = Dev
and Number > 100
:
Code Block |
---|
httphttps://localhost:8224/pi/chart#chart-filter/330__1/t-f-p=eq__[[Department]]{{dev}}/*$*gt__[[Number]]{{100}} |
Types of filters
Filter Name | Pattern | Object Types | Examples |
---|---|---|---|
Equals |
| Dimension |
|
Measure |
| ||
Greater than |
| Dimension |
|
Measure |
| ||
Lower than |
| Dimension |
|
Measure |
| ||
Greater or equals |
| Dimension |
|
Measure |
| ||
Lower or equals |
| Dimension |
|
Measure |
| ||
Not equals |
| Dimension |
|
Measure |
| ||
Like |
| Dimension |
|
| Measure* |
| |
Not Like |
| Dimension |
|
| Measure* |
| |
Top |
| Dimension |
|
Measure |
| ||
Bottom |
| Dimension |
|
Measure |
| ||
In |
| Dimension |
|
Not In |
| Dimension |
|
Between |
| Measure |
|
Not Between |
| Measure |
|
*May not work for some databases
...