Hi All,
I have a crosstab like the below
CALMONTH | COUNTRY | REVENUE |
01.2014 | IN | 66 |
02.2014 | US | 88 |
Now I require a radio button toggle to switch axis from country to Business
CALMONTH | COMP_CODE | REVENUE |
01.2014 | A1 | 66 |
02.2014 | A2 | 88 |
I made a radio button to toggle this
var sel = RDO_DIM.getSelectedValue();
if ( sel == '2' ){
TAB.moveDimensionToRows("COMP_CODE",0);
} else {
TAB.moveDimensionToRows("0COUNTRY",0);
}
but when i press the radio buttons, it removes the CALMONTH field from cross tabs too..
and results are
BUSINESS | REVENUE |
A1 | 66 |
A2 | 88 |
or
COUNTRY | REVENUE |
IN | 66 |
US | 88 |
This doesnt happen if I change my crosstab initial view to
COUNTRY | CALMONTH | REVENUE |
IN | 01.2014 | 66 |
US | 02.2014 | 88 |
In this case Calmonth stays alive..
But I want calmonth to be there before country.. and hence need a resolution to this problem.
Please help.
Thanks,
Shyam