Home
Analytics
BIRT Cross Tab - Having details in each line (no group row)
Louis Paret
<p>Hello, </p>
<p> </p>
<p>I use the latest version of BIRT and i have a problem with a crosstab created for Excel.</p>
<p> </p>
<p>I explain my problem : </p>
<p> </p>
<p>I have that : </p>
<p> </p>
<p>Cat1 Act1 Them1 Sub1</p>
<p> Sub2</p>
<p> Them2 Sub1</p>
<p> Act2 Them1 Sub1</p>
<p> Act3 Them1 Sub1</p>
<p>Cat2 Act1 Them1 Sub1</p>
<p> </p>
<p> </p>
<p> </p>
<p>And i want : </p>
<p> </p>
<p>Cat1 Act1 Them1 Sub1</p>
<p>Cat1 Act1 Them1 Sub2</p>
<p>Cat1 Act2 Them2 Sub1</p>
<p>Cat1 Act3 Them1 Sub1</p>
<p>Cat2 Act1 Them1 Sub1</p>
<p> </p>
<p>In fact, i want all details by line. I don't find this option in the crossTab or in dimensions of my crosstab.</p>
<p> </p>
<p>I can't use a simple table because i need to use totals.</p>
<p> </p>
<p>If you have any questions, i'm here.</p>
<p> </p>
<p>Thank you very much and sorry for my english.</p>
Find more posts tagged with
Comments
pricher
<p>Hi,</p>
<p> </p>
<p>What you can do is concatenate the grouping columns into one computed column, use that column to group in the crosstab, then split the computed column to display the grouping columns separately. I have attached an example based on fields Country, City and CustomerName in Classic Models. Here's how it goes:</p>
<p> </p>
<p>1. Create the computed column in the data set:</p>
<p>
Louis Paret
<p>Hello pricher,</p>
<p> </p>
<p>thank you for you complete response. But i have a problem with your result.</p>
<p> </p>
<p>In fact, i want this for using "Autofilter" in Excel. And for that, it's necessary to have 1 data in 1 cell... </p>
<p> </p>
<p>I don't know if you have already used Autofilter in Excel but with dimensions like my exemple, it doesn't work because the text in only in the first cell of the groupement of cell. </p>
<p> </p>
<p>Moreover, when i have tested you manipulation, my Eclipse crashed at the moment where i created the Data Cube with the concatenation, i don't know why...</p>
<p> </p>
<p>So, if somebody have any idea for have the same result than pricher but in different cell... Or any other idea.</p>
<p> </p>
<p>Sorry for my english.</p>
<p> </p>
<p>Thank you yet pricher ! </p>
pricher
<p>Hi,</p>
<p> </p>
<p>I am not sure you can get away from using a grid to flatten the groups for export into Excel. However, after second thought, you don't need the concatenation technique. Here's a revised version of the sample report.</p>
<p> </p>
<p>1. In the data cube, create groups for each level you need, not just one group with sub-levels:</p>
<p> </p>
<p>
Louis Paret
<p>Hello pricher, </p>
<p> </p>
<p>Thank you for your responce ! It's very complete and explicated.</p>
<p> </p>
<p>But I have a problem, your solution is the best way to do i think but the result is not the same on my computer. When I run your design, i have only one column with all the text.</p>
<p> </p>
<p>Have you got other details ? (Advanced, ...)</p>
<p> </p>
<p>I test with my design and the result is the same. And i test on Libre Office and Microsift Office... </p>
<p> </p>
<p>Filters and Cross Tab are not compatible
</p>
<p> </p>
<p>Thank you yet ! </p>
Louis Paret
<p>I attach a screenshot of the result of your design on my computer</p>
pricher
<p>Hi,</p>
<p> </p>
<p>I forgot to mention that you have to use the Excel emitter, not the XLSX emitter to get the correct results.</p>
<p>