Question

I have a main report with a cross tab that shows Income of regions Similarly a sub report is called in the main report that shows Expense of the same regions

Now I have to show the Deficit/surplus b/w the income and expense of each region.

How do I go about it? Any suggestions? I am trying shared variable but that just gives me the total difference between the two reports.

----------
     Income              Expense           Surplus/Def 

 - Region1--  1000         Region1 -- 500    --  500
 - Region2 -- 2000         Region2--  2000   --  0
 - Region3--  3000         Region3 -- 2000    -- 1000
 - Total  --  6000         Total ---   4500    - 1500

p.s I can't seem to indent my columns for ease of reading above.

Was it helpful?

Solution

It is difficult to manuplate these kind of calculations in cross tab.. but one way around would be.

Approach 1:

  1. As I see your cross tabs are simple hence instead of sub report use both corss tabs in main report it self.

  2. For difference (Surpless or deficit) use 3rd cross tab and create the same hierarchy as of the first two and write difference formula.

Approach 2:

See the post below where I gave the answer to get the cross tab functionality without using the cross tab. Check the answer part in below link

How to filter information within a Cross Tab in Crystal Reports

Let me know how it goes.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top