Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Split row data to multiple rows in BIRT4.5 Design
nassjs
<p>Hi,</p>
<p>i have requirement of split the comma separated column data to separate rows in BIRT.i am using oracle DB.my select query returns multiple columns out of few columns data has "," .(eg: A,B,C,D)</p>
<p>want to display in a report </p>
<p> </p>
<p>ID</p>
<p>Name</p>
<p>Subject</p>
<p>marks</p>
<p>1</p>
<p>Abc</p>
<p>Science,Maths,English</p>
<p>50,70</p>
<p>2</p>
<p>Def</p>
<p>English,French,Social</p>
<p>90,80,69,99</p>
<p> </p>
<p>Output should be like:</p>
<p>ID</p>
<p>Name</p>
<p>Subject</p>
<p>marks</p>
<p>1</p>
<p>Abc</p>
<p>Science</p>
<p>50</p>
<p> </p>
<p> </p>
<p>Maths</p>
<p>70</p>
<p> </p>
<p> </p>
<p>English</p>
<p> </p>
<p>2</p>
<p>Def</p>
<p>English</p>
<p>90</p>
<p> </p>
<p> </p>
<p>French</p>
<p>80</p>
<p> </p>
<p> </p>
<p>Social</p>
<p>69</p>
<p> </p>
<p> </p>
<p> </p>
<p>99</p>
<p> </p>
<p>i replaced the "," with <br> and displayed in text box. When i preview in viewer works fine. But when i export to PDF format the data is truncated and shows only text box size in report.</p>
<p>please advise me.</p>
<p> </p>
Find more posts tagged with
Comments
nassjs
<p>Sorry Attached Sample in image format</p>
pricher
<p>Hi,</p>
<p> </p>
<p>I have been able to reproduce the expected output in a web viewer and PDF using a Dynamic Text Item that displays the Subject and Mark fields where the commas have been replaced by a <BR> tag. I have tested it in Open Source and Commercial BIRT.</p>
<p> </p>
<p>Please see attached report. The report uses a CSV file as its data source.</p>
<p> </p>
<p>Hope this helps,</p>
<p> </p>
<p>P.</p>
micajblock
<p>The other choice would be to transpose the data similar to this example: <a data-ipb='nomediaparse' href='
http://developer.actuate.com/community/forum/index.php?/files/file/2-transposing-data/'>http://developer.actuate.com/community/forum/index.php?/files/file/2-transposing-data/</a></p>
;
nassjs
<p>Thanks Pricher,</p>
<p> </p>
<p>It helped me to fix my issue but the user wants an line between rows(means separate them with line).Science line Maths line English.</p>
nassjs
<p><span style="color:rgb(40,40,40);font-family:'Source Sans Pro', sans-serif;">Hi Pricher,</span></p>
<p><span>As i said earlier when i export to PDF data is truncated. When i run your report it worked fine but when i changed the Type to custom in Masterpage Properties(General) changed width to 12. After the change it didn't work and i added a group. Attached the all files here with result of PDF. Please help me on this.</span></p>
<p> </p>
<p><span>Thanks,</span></p>
<p><span>Selvamani</span></p>
pricher
<p>Hi,</p>
<p> </p>
<p>You would be better off trying to transpose the data using the example provided by mblock earlier in this thread.</p>
<p> </p>
<p>P.</p>