on 01-27-2014 6:39 AM
Hi Experts,
I am trying to use single data source to show chart for selective measures. I have tried the steps here: . Here we can create multiple charts with selective measures using single data source.
But, is it possible to re-use the same chart component ? I mean, selecting a measure name from a drop down, I want to change the measure in the same chart component - using one chart component and one data source. Is it possible using some script ?
I tried but could not find an option for a chart component to change the dimension/measure. I do not want to have one chart for each measure and show/hide based on the selection. I want a single chart and want to change the objects dynamically using some script.
Regards,
Arijit
Hi Arijit,
Hope this helps.
Regards,
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Arijit,
Say, if your chart is CHART_1, and you have linked DS_1 with this chart as data source
1. CHART_1.setDataSelection({"KeyFigure Structure" : "measure1"});
Use Enterprise ID of elements as available Query Properties in Bex Query Designer, the DS however will provide you the value help anyway.
In case of multiple measures required in the Chart , you can use an array for restricting measures
CHART_1.setDataSelection({"KeyFigure Structure" : [ "measure1", "measure2"]});
2. If you would like to change the Axis- dimensions in your chart,
DS_1.moveDimensionToRows("new characteristic", 0)
This will replace the existing dimension in your chart and replace with new one.
Hope this helps.
Regards,
Thank You Anil,
Its really helped
Regards
Arjun KT
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
94 | |
11 | |
11 | |
10 | |
9 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.