Skip to Content
1
Dec 08, 2020 at 07:49 AM

CopyDimenstionFilter doesn't work when source chart is filtered by FilterLine in Mode "Group Filter"

250 Views Last edit Dec 09, 2020 at 10:08 AM 2 rev

Hi,

I tried the FilterLine mode "group filter" after the Q4.2020 update.

I have 2 queries, Data Source 1 and 2. Both are the datasource of many charts. I allow user to filter directly on the chart and use copyDimenstionFilter() in the onResultChange() of each chart to let the charts synchronise the dimension filters between each other.

I also have a filter line. Previously, the filter line was an individual widget filter based on Chart 1 of Data Source 1, the copyDimenstionFilter() among the charts works fine when I filter Chart 1 using the filter line. However, when I switch the filter line to group filter and then apply a filter using it, all the charts that are based on one Data Source 1 (chart 1 and 2) are filtered, but the chart that is based on the other Data Source (Chart 3 of Data source 2) is not filtered, although the following script in onResultChange of Chart 1 of DS1 should have triggered Chart 3 of DS2 to copy any dimension filter from Chart 1.

Chart_3_DS2.getDataSource().copyDimensionFilterFrom(Chart_1_DS1.getDataSource());

Below is the configuration:

Here is after I apply a filter. Notice that Chart 1 and Chart 2 of DS1 both have the Filter, but Chart 3 of DS2 has no filter, as if the copyDimensionFilter does not work anymore.

Attachments

unbenannt.png (34.6 kB)
unbenannt2.png (21.3 kB)