Hi All,
I have a main report and two subreports using one parameter which works fine. My client wants to have a percentage drawing from these two subreports:
May Jun Total
No. of received items 10 15 25
May Jun Total
No. of allocated Items 6 10 16
a third subreport would be:
May Jun Total
Percentage of fullfilled items 0.6% 0.66% 0.64%
My problems are:
the previous subreports are based on different date table in the systems although they are passed in with a same date when report is run.
The SQL query from CR ( show SQL query from database Design menu) shows -
For all received items:
SELECT "RVP"."DTE", "RVP"."IRN", "RVP"."BIBISS"
FROM "XXXXXX"."dbo"."RVP" "RVP"
WHERE "RVP"."BIBISS" IS NOT NULL AND ("RVP"."DTE">={ts '2012-05-01 00:00:00'} AND "RVP"."DTE"<{ts '2012-08-01 00:00:00'})
for allocated items:
SELECT "RVP"."DTE", "RVP"."IRN", "RVC"."CFLG", "RVC"."ADTE", "RVP"."BIBISS"
FROM "XXXXXX"."dbo"."RVC" "RVC" INNER JOIN XXXXXX"."dbo"."RVP" "RVP" ON "RVC"."IRN"="RVP"."IRN"
WHERE "RVP"."BIBISS" IS NOT NULL AND ("RVC"."ADTE">={ts '2012-05-01 00:00:00'} AND "RVC"."ADTE"<{ts '2012-08-01 00:00:00'}) AND "RVC"."CFLG"=1
Note: My current main report and two subreports are all crosstab reports - just collecting statistics (count) monthly activities.
Could anyone advise how to build an SQL or other ways to combine (to display in another subreport to show the percentage of the existing subreports)
Thanks in advance.
JS
Edited by johnwsun - 20 Aug 2012 at 2:06am