Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Dynamic columns againts the group in BIRT 2.2.1 - Ext
NirajN
Hi Williams ,<br />
<br />
I apologise for starting the topic all over again but while trying to reply to the post I was getting error 500 - internal server error.<br />
<br />
<br />
As you have replied to me , I have exactly done the same.<br />
<br />
I have grouped on #Ledger (leac)<br />
Added a crosstab on group header row<br />
Created a datacube with dimensions #project (dimx) and #Ledger (leac) and summary as (debit - credit)<br />
But the report output is wierd , The ledger displays on every header but under the group all the ledgers are displayed again, and no projects are displayed, i.e. no columns other than one balance column appear<br />
<br />
I am attaching the rptdesign file please correct me If I have missed something<pre class='_prettyXprint _lang-auto _linenums:0'><?xml version="1.0" encoding="UTF-8"?>
<report xmlns="http://www.eclipse.org/birt/2005/design" version="3.2.15" id="1">
<property name="createdBy">Eclipse BIRT Designer Version 2.2.1.r221_v20070924 Build <2.2.0.v20070924-1550></property>
<property name="units">in</property>
<property name="comments">Copyright (c) 2007 <<Your Company Name here>></property>
<html-property name="description">Creates a blank report with no predefined content.</html-property>
<list-property name="userProperties">
<structure>
<property name="name">Data Cube.InforLN.x</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
<structure>
<property name="name">Data Cube.InforLN.y</property>
<property name="type">integer</property>
<property name="isVisible">false</property>
</structure>
</list-property>
<property name="Data Cube.InforLN.x">135</property>
<property name="Data Cube.InforLN.y">80</property>
<text-property name="displayName">Blank Report</text-property>
<property name="iconFile">/templates/blank_report.gif</property>
<data-sources>
<oda-data-source extensionID="com.infor.reporting.bdb" name="LNDS" id="6">
<list-property name="privateDriverProperties">
<ex-property>
<name>odaJndiName</name>
</ex-property>
</list-property>
<property name="odaDriverClass">com.infor.erp.jdbc.JDBCDriver</property>
<property name="odaURL">jdbc:infor://localprocess</property>
</oda-data-source>
</data-sources>
<data-sets>
<oda-data-set extensionID="org.eclipse.birt.report.data.oda.jdbc.JdbcSelectDataSet" name="InforLN" id="7">
<list-property name="columnHints">
<structure>
<property name="columnName">leac</property>
<property name="displayName">leac</property>
</structure>
<structure>
<property name="columnName">dimx</property>
<property name="displayName">dimx</property>
</structure>
<structure>
<property name="columnName">debit</property>
<property name="displayName">debit</property>
</structure>
<structure>
<property name="columnName">credit</property>
<property name="displayName">credit</property>
</structure>
</list-property>
<structure name="cachedMetaData">
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">leac</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">dimx</property>
<property name="dataType">string</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">debit</property>
<property name="dataType">float</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">credit</property>
<property name="dataType">float</property>
</structure>
</list-property>
</structure>
<property name="dataSource">LNDS</property>
<list-property name="resultSet">
<structure>
<property name="position">1</property>
<property name="name">leac</property>
<property name="nativeName">leac</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">2</property>
<property name="name">dimx</property>
<property name="nativeName">dimx</property>
<property name="dataType">string</property>
<property name="nativeDataType">12</property>
</structure>
<structure>
<property name="position">3</property>
<property name="name">debit</property>
<property name="nativeName">debit</property>
<property name="dataType">float</property>
<property name="nativeDataType">8</property>
</structure>
<structure>
<property name="position">4</property>
<property name="name">credit</property>
<property name="nativeName">credit</property>
<property name="dataType">float</property>
<property name="nativeDataType">8</property>
</structure>
</list-property>
<property name="queryText">select tfgld202.leac,
tfgld202.dimx,
sum(tfgld202.fdah(1)) as debit,
sum(tfgld202.fcah(1)) as credit
from tfgld202
where tfgld202.dtyp = 3
group by tfgld202.leac, tfgld202.dimx
order by tfgld202.leac, tfgld202.dimx </property>
</oda-data-set>
</data-sets>
<cubes>
<tabular-cube name="Data Cube" id="251">
<property name="defaultMeasureGroup">Balance</property>
<property name="dimensions">
<tabular-dimension name="Group" id="252">
<property name="defaultHierarchy">NewTabularHierarchy</property>
<property name="hierarchies">
<tabular-hierarchy name="NewTabularHierarchy" id="253">
<property name="levels">
<tabular-level name="dimx" id="254">
<property name="dataType">string</property>
<property name="columnName">dimx</property>
</tabular-level>
</property>
</tabular-hierarchy>
</property>
</tabular-dimension>
<tabular-dimension name="Group1" id="255">
<property name="defaultHierarchy">NewTabularHierarchy1</property>
<property name="hierarchies">
<tabular-hierarchy name="NewTabularHierarchy1" id="256">
<property name="levels">
<tabular-level name="leac" id="257">
<property name="dataType">string</property>
<property name="columnName">leac</property>
</tabular-level>
<tabular-level name="debit" id="258">
<property name="dataType">float</property>
<property name="columnName">debit</property>
</tabular-level>
<tabular-level name="credit" id="259">
<property name="dataType">float</property>
<property name="columnName">credit</property>
</tabular-level>
</property>
</tabular-hierarchy>
</property>
</tabular-dimension>
</property>
<property name="measureGroups">
<tabular-measure-group name="Balance" id="260">
<property name="measures">
<tabular-measure name="debit" id="261">
<property name="function">sum</property>
<expression name="measureExpression">dataSetRow["debit"]-dataSetRow["credit"]</expression>
<property name="dataType">float</property>
</tabular-measure>
</property>
</tabular-measure-group>
</property>
<property name="dataSet">InforLN</property>
</tabular-cube>
</cubes>
<styles>
<style name="crosstab-cell" id="4">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
<style name="crosstab" id="5">
<property name="borderBottomColor">#CCCCCC</property>
<property name="borderBottomStyle">solid</property>
<property name="borderBottomWidth">1pt</property>
<property name="borderLeftColor">#CCCCCC</property>
<property name="borderLeftStyle">solid</property>
<property name="borderLeftWidth">1pt</property>
<property name="borderRightColor">#CCCCCC</property>
<property name="borderRightStyle">solid</property>
<property name="borderRightWidth">1pt</property>
<property name="borderTopColor">#CCCCCC</property>
<property name="borderTopStyle">solid</property>
<property name="borderTopWidth">1pt</property>
</style>
</styles>
<page-setup>
<simple-master-page name="Simple MasterPage" id="2">
<page-footer>
<text id="3">
<property name="contentType">html</property>
<text-property name="content"><![CDATA[<value-of>new Date()</value-of>]]></text-property>
</text>
</page-footer>
</simple-master-page>
</page-setup>
<body>
<table id="8">
<property name="width">100%</property>
<property name="dataSet">InforLN</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">leac</property>
<expression name="expression">dataSetRow["leac"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">dimx</property>
<expression name="expression">dataSetRow["dimx"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">debit</property>
<expression name="expression">dataSetRow["debit"]</expression>
<property name="dataType">float</property>
</structure>
<structure>
<property name="name">credit</property>
<expression name="expression">dataSetRow["credit"]</expression>
<property name="dataType">float</property>
</structure>
</list-property>
<column id="21"/>
<column id="22"/>
<column id="23"/>
<column id="103"/>
<column id="97"/>
<header>
<row id="9">
<cell id="10">
<label id="249">
<text-property name="text">leac</text-property>
</label>
</cell>
<cell id="11"/>
<cell id="12"/>
<cell id="98"/>
<cell id="92"/>
</row>
</header>
<group id="33">
<property name="groupName">Ledger</property>
<property name="interval">none</property>
<property name="sortDirection">asc</property>
<expression name="keyExpr">row["leac"]</expression>
<structure name="toc">
<expression name="expressionValue">row["leac"]</expression>
</structure>
<property name="repeatHeader">true</property>
<property name="hideDetail">false</property>
<property name="pageBreakAfter">auto</property>
<property name="pageBreakBefore">auto</property>
<property name="pageBreakInside">auto</property>
<header>
<row id="34">
<cell id="35">
<data id="250">
<property name="resultSetColumn">leac</property>
</data>
</cell>
<cell id="36"/>
<cell id="37"/>
<cell id="99"/>
<cell id="93"/>
</row>
<row id="104">
<cell id="105">
<property name="colSpan">5</property>
<property name="rowSpan">1</property>
<extended-item extensionName="Crosstab" id="262">
<property name="measures">
<extended-item extensionName="MeasureView" id="273">
<property name="measure">debit</property>
<property name="detail">
<extended-item extensionName="CrosstabCell" id="274">
<property name="content">
<data name="debit" id="276">
<property name="resultSetColumn">debit</property>
</data>
</property>
</extended-item>
</property>
<property name="aggregations">
<extended-item extensionName="AggregationCell" id="285">
<property name="aggregationOnColumn">Group/dimx</property>
<property name="content">
<data id="286">
<property name="resultSetColumn">debit_Group/dimx</property>
</data>
</property>
</extended-item>
</property>
<property name="header">
<extended-item extensionName="CrosstabCell" id="275">
<property name="content">
<label id="277">
<text-property name="text">Balance</text-property>
</label>
</property>
</extended-item>
</property>
</extended-item>
</property>
<property name="rows">
<extended-item extensionName="CrosstabView" id="268">
<property name="grandTotal">
<extended-item extensionName="CrosstabCell" id="284">
<property name="content">
<label id="287">
<text-property name="text">Grand Total</text-property>
</label>
</property>
</extended-item>
</property>
<property name="views">
<extended-item extensionName="DimensionView" id="269">
<property name="dimension">Group1</property>
<property name="levels">
<extended-item extensionName="LevelView" name="NewLevel View1" id="270">
<property name="level">Group1/leac</property>
<property name="member">
<extended-item extensionName="CrosstabCell" id="271">
<property name="content">
<data name="leac" id="272">
<property name="resultSetColumn">leac</property>
</data>
</property>
</extended-item>
</property>
</extended-item>
<extended-item extensionName="LevelView" name="NewLevel View2" id="278">
<property name="level">Group1/debit</property>
<property name="member">
<extended-item extensionName="CrosstabCell" id="279">
<property name="content">
<data name="debit1" id="280">
<property name="resultSetColumn">debit_1</property>
</data>
</property>
</extended-item>
</property>
</extended-item>
<extended-item extensionName="LevelView" name="NewLevel View3" id="281">
<property name="level">Group1/credit</property>
<property name="member">
<extended-item extensionName="CrosstabCell" id="282">
<property name="content">
<data name="credit" id="283">
<property name="resultSetColumn">credit</property>
</data>
</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>
</property>
<property name="columns">
<extended-item extensionName="CrosstabView" id="263">
<property name="views">
<extended-item extensionName="DimensionView" id="264">
<property name="dimension">Group</property>
<property name="levels">
<extended-item extensionName="LevelView" name="NewLevel View" id="265">
<property name="level">Group/dimx</property>
<property name="member">
<extended-item extensionName="CrosstabCell" id="266">
<property name="content">
<data name="dimx" id="267">
<property name="resultSetColumn">dimx_1</property>
</data>
</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>
</property>
</extended-item>
</property>
<property name="cube">Data Cube</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">dimx_1</property>
<expression name="expression">dimension["Group"]["dimx"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">leac</property>
<expression name="expression">dimension["Group1"]["leac"]</expression>
<property name="dataType">string</property>
</structure>
<structure>
<property name="name">debit</property>
<expression name="expression">measure["debit"]</expression>
<property name="dataType">float</property>
</structure>
<structure>
<property name="name">debit_1</property>
<expression name="expression">dimension["Group1"]["debit"]</expression>
<property name="dataType">float</property>
</structure>
<structure>
<property name="name">credit</property>
<expression name="expression">dimension["Group1"]["credit"]</expression>
<property name="dataType">float</property>
</structure>
<structure>
<property name="name">debit_Group/dimx</property>
<expression name="expression">measure["debit"]</expression>
<property name="dataType">float</property>
<simple-property-list name="aggregateOn">
<value>Group/dimx</value>
</simple-property-list>
<property name="aggregateFunction">sum</property>
</structure>
</list-property>
</extended-item>
</cell>
</row>
</header>
<footer>
<row id="38">
<cell id="39"/>
<cell id="40"/>
<cell id="41"/>
<cell id="101"/>
<cell id="95"/>
</row>
</footer>
</group>
<footer>
<row id="17">
<cell id="18"/>
<cell id="19"/>
<cell id="20"/>
<cell id="102"/>
<cell id="96"/>
</row>
</footer>
</table>
</body>
</report>
</pre>
Find more posts tagged with
Comments
mwilliams
Hi NirajN,
Can you reproduce what you're doing with the sample database and then attach the report to the post. You can use the attachment lookup rather than just posting the XML Source code. I'll take a look at what you're trying to get and try to help from there.
NirajN
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="73275" data-time="1297654918" data-date="13 February 2011 - 08:41 PM"><p>
Hi NirajN,<br />
<br />
Can you reproduce what you're doing with the sample database and then attach the report to the post. You can use the attachment lookup rather than just posting the XML Source code. I'll take a look at what you're trying to get and try to help from there.<br /></p></blockquote>
<br />
Hello Williams,<br />
<br />
I have a requirement as described in the document attached (req.docx)<br />
and The rptdesign file is also as attached.
mwilliams
I don't see the .rptdesign file in the post. Can you attach it? .rptdesign is an attachable file in the forums. If it doesn't work, you can zip it up in a zip file. That will work for sure.
NirajN
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="73328" data-time="1297724512" data-date="14 February 2011 - 04:01 PM"><p>
I don't see the .rptdesign file in the post. Can you attach it? .rptdesign is an attachable file in the forums. If it doesn't work, you can zip it up in a zip file. That will work for sure.
<br /></p></blockquote>
<br />
Hi Williams,<br />
<br />
Please find the rptdesign file.<br />
<br />
Regards,<br />
Niraj
mwilliams
Niraj,
Take a look at the attached report. I used your data from your doc file and made a CSV file out of it and created a sample report with it. You'll need to unzip these two files to your workspace and then in your dataSource, you'll need to change the location of the flat file to point at your workspace.
Let me know if this does what you're wanting.
NirajN
<blockquote class='ipsBlockquote' data-author="'mwilliams'" data-cid="73365" data-time="1297783670" data-date="15 February 2011 - 08:27 AM"><p>
Niraj,<br />
<br />
Take a look at the attached report. I used your data from your doc file and made a CSV file out of it and created a sample report with it. You'll need to unzip these two files to your workspace and then in your dataSource, you'll need to change the location of the flat file to point at your workspace.<br />
<br />
Let me know if this does what you're wanting.<br /></p></blockquote>
<br />
<br />
Hello Williams,<br />
<br />
This is what I wanted, It worked for me.<br />
But the Report requirement changed when they saw the report , the requirement was changed to Matrix format with Ledger on Y aaxis and all the projects on X axis and balance to be displayed on corresponding X,Y position.<br />
<br />
So I slightly modified it and placed the crosstab in the report footer, and removed the grouping on Ledger.<br />
It worked for me.<br />
<br />
Thanks a ton.<br />
<br />
Regards,<br />
Niraj
mwilliams
Not a problem at all. Let us know whenever you have BIRT related questions!