You are right Mustafa, initial view could be very helpfull.
I've played with changing initial view and noticed that in case then Load in script = true for Data Sources it doesn't suit.
For example:
1. In BEx query i remove 0Calmonth from the columns and add 0Copm_code:
2. Reload Design Studio (just in case) and recreated Data Sources:
3. Change initial view for DS_1
Change initial view for second DS (named DS_3)
4. That what i see in Design Studio.
As you can see there are 0Calmonth and Companies in column Chart
5. Fixing script
// Fiilter for Pie works only with Key Display type
DS_1.setMemberDisplay("0COMP_CODE", MemberDisplay.KEY);
// In Pies i need only Person_groups:
DS_3.removeDimension("0COMP_CODE");
DS_3.moveDimensionToColumns("ZPERSGRP");
// Set filters for Pies
DS_3.setFilter("0CALMONTH", CHART_1.getSelectedMembers("0CALMONTH"));
DS_3.setFilter("0COMP_CODE", CHART_1.getSelectedMembers("0COMP_CODE"));6. Run application in local mode
As you can see 0Calmonth is gone from column chart.
I tried different variation of BEx query with and without scripting and every time final view didn't matched with preview in Design Studio.





