How to avoid column/row nesting in crosstab
I am using Cross Tab to get out put in following format. But every time i insert new column/row in cross tab it gets nested. I am trying to get following format. Could you please help or any pointer
Total Col1+Col2 Col1 Col2 Col3+Col4 Col3 Col4 Group Total 0.00 0.00 0.00 0.00 0.00 0.00 0.00 Sub Group1 0.00 0.00 0.00 0.00 0.00 0.00 0.00 Sub Group 2 0.00 0.00 0.00 0.00 0.00 0.00 0.00
Edited by: Kuldeep Chitrakar on Apr 9, 2009 7:24 AM
Edited by: Kuldeep Chitrakar on Apr 9, 2009 7:31 AM
Pratik Basapure replied
If you try to take one Dimension and one measure like Year and sales revenue using e-fashion demo universe then new column inserted will be nested when using cross tab where the measure values will be spread across multiple columns.
In this case you have to use condition to refer individual column names like
=[Sales revenue] Where([Year]="2001" )+ [Sales revenue] Where([Year]="2002")
and calculate the sum.
Select the measure column in the cross tab then click the u201CInsert Sumu201D button it will display the sum in the last column of the cross tab then you can modify the formula generated to specify the condition which columnu2019s sum you want o display in that column.
Ex: Use e-Fashion universe and take Year and sales Revenue turn it to cross tab and follow the process I mentioned.
However if you use one dimension and multiple measure like the one you are using where you are trying to calculate sum of col1+col2 and so on. In this case you can directly insert the column and calculate the sum of column referring their names.
Ex: Use e-Fashion universe and take objects Year, Sales revenue. Quantity sold, Discount, margin here you can directly sum individual column values like sales revenue, quantity sold and discount +margin by inserting the column in between the columns using u201Cinsert Columnu201D
I Hope this helpsu2026