Using Summary Columns in Reports 9I
Hi
I am using Oracle 9i Reports
I want to use Summary cols in the report
I have a table with the flwg data:
TRANS_ID ACC_ID DEL AMT
LEL0002045 SLEND RECEIVE 1200
LEL0002053 SLEND DELIVER 1000
LEL0002100 SLEND DELIVER 500The Report format is
TRANS_ID ACC_ID DEL AMT
LEL0002045 SLEND RECEIVE 1200
LEL0002053 SLEND DELIVER 1000
LEL0002100 SLEND DELIVER 500
RECIEVE 2200
DELIVER 500
GRAND 2700I have defined a summmary column in the Data Model(C_S1)
and have defined a text field in the paper layout and setting
this to C_S1.
I get the total of 2700 in the report for this.
I want to define 2 summary cols - one for 2200 and other for 500
and then a grand total of 2700.
How shud i define this please?
Table :
TRANS_ID ACC_ID DEL CCY AMT TRADE_DAT LENDER
LEL0002045 SLEND RECEIVE GBP 1200 02-AUG-05 LENDERA
LEL0002053 SLEND DELIVER GBP 1000 02-AUG-05 LENDERA
LEL0002100 SLEND DELIVER USD 500 02-AUG-05 LENDERB
LEL0002000 SLEND DELIVER KRN 1000 03-AUG-05 LENDERCREPORT OUTPUT
LENDER A
LEL0002045 SLEND RECEIVE GBP 1200 02-AUG-05
LEL0002053 SLEND DELIVER GBP 1000 02-AUG-05
Total 2200
LENDER B
LEL0002100 SLEND DELIVER USD 500 02-AUG-05
Total 500I want to break LENDER A total in 1000 for RECEIVE and 1200 for DELIVER
I have used the SQL as mentioned is yr mail
decode(DEL,'RECEIVE',AMT,0) as REC_AMT
, decode(DEL,'DELIVER',AMT,0) as DEL_AMTcreated 2 summary columns : CS_1 --> REC_AMT
CS_2 --> DEL_AMT
but i get this result :
A
LEL0002045 SLEND RECEIVE GBP 1200 02-AUG-05
LEL0002053 SLEND DELIVER GBP 1000 02-AUG-05
1000 ????
Total 2200
LENDER B
LEL0002100 SLEND DELIVER USD 500 02-AUG-05
1000 ????
Total 500
Similar Messages
-
Using Page Level Summary Column in Report 6i
Hi Folks,
I'm trying to create a report in which I want a Page level Summary column i.e., the Summary column should reset at each page and should display the sum of a particular field on each page depending upon how many records are displayed on each page. But whenever I choose the Reset Property to Page the following error is displayed" Page level summaries are not supported in the defaulting" and in certain case the summary column displays the sum only on the last page of the report and the rest of the pages do not display the summary column. The database has three tables i.e., master-detail-detail.
Do I need to make some changes in the Data Model or what?
TIA
HassanHi Hassan,
it only works onceWell, this is definitely not expected. Maybe you can try to see after running the report once whether all the values you set in your report (from my last post) remain the the same, or somehow they revert back to their default values.
if I do some formatting of the report... summary also disapperasYou could try placing the page level summary in another frame, below your group repeating frame, with enough gap between them. Also, try setting the value for "max no of records" to some lower value, which makes sure there is space for the summary column on every page.
Another idea for making a page level summary is - you can place the summary BEFORE your group repeating frame, which means the summary will print on top of every page. In this case, you won't even have to worry about setting "max no of records per page" to some particular value. See if this suits your needs.
Navneet. -
Hi,
We are using Oracle PL/SQL procedure to dynamically generate SQL to generate a report using HTMLDB.
Could any one give me an idea about how to indirectly instruct HTMLDB to display 'sum' value if some of the fields are selected to be part of report? It is not possible to use report attribute 'sum' function, as we don't know what fields are on the report.
Thanks,
NeelamEven if you dont know what specific fields are on the report, you need to know their column positions at least. This way, you can use the Generic Columns on the report definition go to Report Attributes and select the Sum checkbox for column Cnn.
If neither column positions, nor number of columns nor column names are known, well then, you are out of luck. Dynamic SQL is one thing, reading your mind is another! :) -
Typically, this sort of thing is easily achieved in Excel where you can calculate the values in an output column based on input values. I need to do this in Reports. I am using Reports 6i (Report Builder 6.0.8.27.0)
I have a relatively simple query where I am outputting values (Counts) and then I need to display the summation on the next line. Let me explain using an example:
ID Start Date End Date Column 1 Column 2
=============================================
1 01-JAN-2010 30-JUN-2010 120 0
2 01-JUL-2010 31-DEC-2010 200 120
3 01-JAN-2011 30-JUN-2011 115 320
4 01-JUL-2011 31-DEC-2012 300 435
5 01-JAN-2013 30-JUN-2013 100 735
As you can see that Column 2 is derived by adding the previous values in Column 1 and outputting it on the next line.
So, for ID = 4, Column 2 = 120 + 200 + 115 = 435 and ID = 5, Column 2 = 120 + 200 + 115 + 300 = 735.
When I use summary columns, I don't get the desired result.
I could technically create a Formula column and have a place holder column and re-query the results but I was hoping to avoid another SQL when the data has already been fetched. Any ideas or pointers would be greatly appreciated!
Thankshi,
i think i can satisfy u
download the rdf (6i)
https://www.zeta-uploader.com/1236837069
This URL is valid until Tuesday, June 25, 2013
thanks
mostafiz mitul -
Adding a balance column in report
I want to create to create a balance column in ledger report.
Please guide me how to create a balance column in oracle
reports 6.0.
Thanks.
nullHello Sajid.
How are u . I have same problem with me but it is
nearly to solve.There is a clue to solve your problem.If you
need just sum of any numeric column then u can use summary
column out side the repeating frame, and if u need current
balance for each row use summary column in data modal in related
group.It will display in this form of column
100 100
20 120
30 150 ....
If it fullfil your requirment and if you get more out of it
please tell me at [email protected] for my convenience.
Thanks
Amjad ali
Sajid Mirza (guest) wrote:
: I want to create to create a balance column in ledger report.
: Please guide me how to create a balance column in oracle
: reports 6.0.
: Thanks.
null -
Summary columns in delimited output
Is it possible to do summary columns in csv format?
Please share your ideas and get arounds.
thanksHello Srikanth,
You can use summary columns when generating to both delimited and delimiteddata output formats. You would just need to add the summary column to your data model, and add a field based on this column to your layout. You can also use Reports Wizard to do this.
If you are generating to delimitedata, then just adding the summary column to the data model is sufficient.
Thanks,
The Oracle Reports Team. -
Matrix report data with summary column in excel format
Hi ,
I want to display output of matrix report with summary column in excel format.
I have tried using spreadsheet but column header and actual data is displaying in proper order.
Please tell me the way how to do this ASAP.
Thanks in advance.Hi ,
I want to display output of matrix report with summary column in excel format.
I have tried using spreadsheet but column header and actual data is displaying in proper order.
Please tell me the way how to do this ASAP.
Thanks in advance. -
How to use the procedure column in reports
Hi all
How to call the procedure in reports as source.. If possible how to use columns of procedure in the layout column of report????Hi,
Your query is not clear.
1. In subject are you asking total column.
A. Edit pivot view and go to Rows and click Total BY option here you can find option like (none,before,after) the you can select after it will display total all culms.
2. I want use the columnC in columnD ? -- Am not understand.
A. What my understand is you want to see the report only C and D values only.
If it is correct we can apply filter in report level click column filed and apply not equal to A then it will show only C and D only.
If it is wrong pleas post me correct one with example. Will try to help out this.
I am not sure this is what your looking so far.
Award points it is useful.
Thanks,
Satya -
: HIDING SUMMARY COLUMNS IN MATRIX REPORT , URGENT
Hi,
Can any one please tell me how to hide a column in oralce matrix report. Its a summary column for the matrix report which appears next to the cell values. For example
Manufacturer
Brand
SubBrand1 SubBrand2 Brand Total Manufacturer Total
Week $ Sales $ Sales Total $ Sales Total $ Sales
This is a case where,the cell value is the $ sales for the SubBrand for the week. And it gets total at each brand level and each Manufacturer level. The requrement is if there is only one SubBrand for a Brand then the Brand total should not appear on the report. Similarly if there is one Brand for a Manufacturer, then the total at Manufacturer level should not appear . The point is not only it should dissapear but the frame should srink to make it fell that there is no totaling going on at those two levels. If the fileds just remains blank then the report looks odd. So the gap should be srinked as well. How to do it . This is very urgent . Please help me out.
Thanks
Ferozuse a formst trigeer on the field that returns false when you don't want to display the field.
-
How to use Value Variable in Report Painter Column defined as Formula
Hi Gurus,
In report painter, how can I add one field (exchange rate) in selection screen, so that user can provide the exchange rate to be used, then execute the report, the exchange rate will used to multiple local currency amount.
The reason for this is we want use provided exchange rate to convert the amount from once currency to the other currency.
Alternatively I am studying the functionality of "Value Variable" and found that I can perform the task from this. I have created the value variable but when I am using the variable in Report Painter columns as "&ZVALVAR", system is giving me error. I read the help and it states that use the variable with "&" and do it as it is mentioned.
Can anybody suggest what I need to do to make it workable.
ThanksI did try using the presentation variable, but that does not work too. I am setting session variable in the dashboard prompt (select 'request variable'). When I use presentation variable, it hard codes the value of the variable name.
sql is
select date from work_order where facility = @{p_facility}
the physical log sql is
select date from work_order where facility = 'p_facility' -
Hoe top create summary and detail report using ABAP QUERY
Hi ,
Can any one suggest me how to create summary and detailed report using ABAP Quey.
Regards,
Raghu.Hi,
Table Declaration
tables:mara,mast.
*Declaring the internal table
data: begin of itab_new occurs 0,
matnr like mara-matnr, "Material No
ernam like mara-ernam, "Material Created by
mtart like mara-mtart, "Material Type
matkl like mara-matkl, "Material Desc
werks like mast-werks, "Plant
aenam like mast-aenam, "BOM created
stlal like mast-stlal, "Alternative BOM
end of itab_new.
select-options: p_matnr for mara-matnr.
CODE A : Retrieving the data from the database
select f~matnr f~ernam f~mtart f~matkl m~werks m~aenam m~stlal
into table itab_new
from mara as f inner join mast as m
on f~matnr = m~matnr
where f~matnr in p_matnr.
CODE B : Retrieving the data from the database.
SELECT FMATNR FERNAM FMTART FMATKL MWERKS MAENAM M~STLAL
INTO TABLE ITAB_NEW
FROM MARA AS F INNER JOIN MAST AS M
ON FMATNR = MMATNR
WHERE F~MATNR = P_MATNR.
SORT ITAB_NEW BY ERNAM.
loop at itab_new.
write:/5 itab_new-matnr,itab_new-ernam,itab_new-mtart,itab_new-matkl,itab_new-werks,itab_new-aenam,itab_new-stlal.
endloop.
*TABLES: MARA , MAST.
*DATA:BEGIN OF ITAB_NEW OCCURS 0,
MATNR LIKE MARA-MATNR,
ERNAM LIKE MARA-ERNAM,
MTART LIKE MARA-MTART,
MATKL LIKE MARA-MATKL,
END OF ITAB_NEW.
SELECT MATNR ERNAM MTART MATKL
INTO TABLE ITAB_NEW
FROM MARA
WHERE MTART = 'T'
ORDER BY MATNR ERNAM MTART MATKL.
*DATA: BEGIN OF ITAB OCCURS 0,
MATNR LIKE MARA-MATNR,
END OF ITAB.
Thank U,
Jay.... -
More than one summary column in cross tab reports
Hi,
I have a cross tab report. The summary column is SUM. I want to add another summary column next to SUM which will be AVG(Average) column.
Any ideas?
Please see the attached image.
Thanks,hi Anurag,
my fault...i should have looked closer at your data.
here's the easy way of showing two sets of summaries at the end of a crosstab, without having duplicate columns.
1) copy your existing cross-tab and paste it to the right of your current cross-tab.
2) now go to the cross-tab expert of the new cross-tab and remove the fields from the Column dialogue
3) change the summary to an Average
4) exit the cross-tab expert and go to the Section Expert for the section where both cross-tabs are...ensure that you check Relative Positions
preview the report. now you'll have to move the 2nd cross-tab a bit so that it aligns properly with the first one.
as a sample, see the attached report. extract the contents and change the .txt extension to .rpt.
-jamie -
Using the column selector in Union Based Report
Hi All,
I have created a report using the Union (Combine with Similar Request Option). Now I want to introduce a column selector which need to be changed combinedly for both the union portion (considering them as one request).
Is it not possible? I am getting the following error message, when I use the column selector:
Assertion failure: !sCurFormula.empty() at line 566 of ./project/webviews/columnselectorview.cpp
Error Details
Error Codes: OQ78YWIW
If it is not possible directly, is there any workaround that I can use.
Awaiting your reply.
Thanks in advance.hi,
Just tried out something which might be useful.
In one of the union request add one more column and in fx Case when 1=1 then 'Table.Column1' end and similar in second request write same formula Case when 1=1 then 'Table.Column2' end and run the report in pivot table. Place the added coulmn which has case statement in Pages but here the problem is in drop list u will see as "Table.Column";.
hope this might help out to some extent. -
How to get summary columns in delimited text file
How to get summary columns in delimited text file
I am trying to generate a delimited text file output with delimited_hdr = no.The report is a Group above report with summary columns at the bottom.In the text file the headers are not getting repeated & thats ok.The problem is the summary data is getting repeated for each row of data.Is there a way where i will get all the data & summary data will get displayed only once.I have to import the delimited text file in excel spreadsheet.Sorry there were a typos :
When I used desformat=DELIMITEDDATA with desttype=FILE, I get error "unknown printer driver DELIMITEDDATA". When you look for help, DELIMITED is not even listed as one of the values for DESTFORMAT. But if you scroll down and look for DELIMITER it says , this works only in conjuction with DESTFORMAT=DELIMITED !!!!!!??!! This is in 9i.
Has this thing worked for anybody ? Can anyone please tell if they were able to suppress the sumary columns or the parent columns of a master-detail data for that matter ? -
Can I reference a Summary Column in my sql query?
Basically the subject asks it all. I have a very complex report that has many data linked queries from the "main" query. One of these data linked queries has a sub-query within it that references the primary key of the main query. I can't data link (I can, but it's useless) using this field as it's a sub-query that needs the link, and that link specifically. I've tried to create a Summary Column that gives me the "First" (and only, so it's safe) in order to reference it in the SQL block, but no go. I'm thinking this isn't even possible? Anyone have any ideas? Right now I'm referencing it as I would in a PL/SQL block (:CS_PK), but it's just treated as a parameter that's never passed. Doesn't read the summary column. Hmmm... I'm stuck.
Hi all... this report is still not completed. I've tried the summary column, and created a formula column that sets the user parameter to the primary key that's needed elsewhere. The report runs, no errors, but my best guess is that it's simply not reading that formula column. Here's my formula column:
function CF_1FORMULA0024 return Number is
begin
if :tblassessmentinst is null then
:tblassessmentinst := :CA_ASSESS_INST;
elsif :tblassessmentinst is NOT null then
:tblassessmentinst := :CA_ASSESS_INST; -- this WAS :tblassessmentinst but not working with prod ver, so delay
else
:tblassessmentinst :=0;
end if;
return(:tblassessmentinst);
end;
For testing, I display both the :tblassessmentinst on the report, as well as this formula column. The formula column always displays the correct number, but the :tblassessment only displays 1 (of many) records that need to be displayed. It's like it's not refreshing the formula column for each record? Again, still super stumped, so throw any ideas my way please.
Thanks again,
TL
Maybe you are looking for
-
Audio Box on Monitor won't go away
I have a Hp w19b which I use as an external display off of my dell laptop. In the past couple months, this audio box started popping up every so often but would go away. However, it has been 2-3 weeks since the audio box has come up, and I can't do a
-
SUN ONE Studio : How do I develop CMP2.0 from scratch
I am trying to develop a CMP 2.0 bean from scratch i.e I do not want EJB Builder to construct CMP bean based on an existing table. Can somebody tell me, once I have specified the persistent fields etc, where and how do I define the mappings in Forte
-
How to use J2SE using JSR-82????
I need to develop a code that can access the Bluetooth device... I need to know how to use J2SE with JSR-82 API.... -Or do you guys know some Bluetooth Protocol Stack in which I can download for FREE? -It should be FREE? it should run on Windows 98/2
-
Updating a plugin on an old version of acrobat pro (9)
Hello all, My users need to open Adobe files in a browser window using the adobe plugin. We continue to be prompted to update the plugin, but checking for updates does not allow any downloads. Where can I manually get the most recent plugin for Chr
-
Hello experts, I am facing a very strange issue with tree view. I have created a custom component with a tree view. All data are coming in the tree view. But the strange thing is that the data is not getting displayed on the screen. I am sure about t