Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » "constitutive" sum at crosstab
"constitutive" sum at crosstab [message #1255793] Mon, 24 February 2014 20:42
pkwien 93 is currently offline pkwien 93Friend
Messages: 1
Registered: February 2014
Junior Member
Hello,

currently I stuck at generating a report which displays the account balance group by account and month.

The Report should display the account per row and the Month per Col.

I have a table which contains following information:
- ID
- account
- postingDate
- amount

I created a data set with an computed column for the Month.

Then I started to create a cross tab with following configuration:
- Month-Group (containing the computed column)
- Account-Group (containing the account)
- SummaryField (amount "SUM")

With that setup I get the sum of amount of account postings per Month and account, but not the account balance.

Using SQL I can calculate the account balance on day X using a filter in where:
SELECT account,SUM(amount) FROM accPostings2014 WHERE postingDate < '2014-03-01';

I found out that I can change the Aggregation for the SummaryField to only one group, but I don't have access to the postingDate field to set the filter.

An other solution would be to calculate the balance using the previous value (SUM of January + SUM of February, ...). But is there a way to access the previous col/row?


Many thanks in advance,
pkwien 93

Hint: The table contains only accountPostings per year and for each account there is a "balance per 01.01.2014" entry, so there are no turn of years possible.
Previous Topic:about:blank window on print
Next Topic:Help, don't know how to use a procedure, which is stored on an jdbc server.
Goto Forum:
  


Current Time: Wed Sep 11 16:16:54 GMT 2024

Powered by FUDForum. Page generated in 0.03602 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top