Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8122

moveDimensionToRows Issue with crosstab

$
0
0

Hi All,

I have a crosstab like the below

 

CALMONTHCOUNTRYREVENUE
01.2014IN66
02.2014US88

 

Now I require a radio button toggle to switch axis from country to Business

 

CALMONTHCOMP_CODEREVENUE
01.2014A166
02.2014A288

 

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

BUSINESSREVENUE
A166
A288

 

or

COUNTRYREVENUE
IN66
US88

 

This doesnt happen if I change my crosstab initial view to

COUNTRYCALMONTHREVENUE
IN01.201466
US02.201488

 

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


Viewing all articles
Browse latest Browse all 8122

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>