Categories
- All Categories
- 75 Oracle Analytics News
- 7 Oracle Analytics Videos
- 14K Oracle Analytics Forums
- 5.2K Oracle Analytics Idea Labs
- Oracle Analytics User Groups
- 40 Oracle Analytics Trainings
- 59 Oracle Analytics Data Visualizations
- 2 Oracle Analytics Data Visualizations Challenge
- 3 Oracle Analytics Career
- 4 Oracle Analytics Industry
- Find Partners
- For Partners
Running Balance for UNION report
Dears,
I have a requirement to calculate running balances based on the open balance for UNION report.
The first UNION report is displaying the open balance and the second union is displaying transaction details, below is the sample format
Kindly advise how can I derive the running balance?
I really appreciate your help.
Answers
-
Are you familiar with the "Add Result Column" link on the combined analysis window? It allows you to create columns calculated outside the union.
If your union looks like your example table, I would add a result column that looks like MAX(saw_1)+RSUM(ifnull(saw_2,0)).0 -
Yes, I've tried this option getting group by error.
NQS Error 59111 - The SQL statement must include group by clause.in Advanced tab, group by clause is available but that is enable for UNION report.
is there any way for this??
0 -
Try adding "by 1" to the Max clause: MAX(saw_1 by 1)+RSUM(ifnull(saw_2,0)). I know it's a workaround, but the addition of a constant eliminates that error in most cases.
0