Categories
- All Categories
- Oracle Analytics and AI Learning Hub
- 43 Oracle Analytics and AI Sharing Center
- 19 Oracle Analytics and AI Lounge
- 281 Oracle Analytics and AI News
- 57 Oracle Analytics and AI Videos
- 16.2K Oracle Analytics and AI Forums
- 6.4K Oracle Analytics and AI Labs
- Oracle Analytics and AI User Groups
- 105 Oracle Analytics and AI Trainings
- 20 Oracle Analytics and AI Challenge
- 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
