Adding a grand total to the columns
Hi
I need to add a total to one of the columns in my report. I have set Aggregation rule as "Sum" but it is not displaying Grand Total.
Am I missing any thing or setting the rule incorrectly?
Please advise.
Thanks in Advance.
Jas
Hi Arvindh
Thanks for your response. I am not using a pivot table I just tried to add total to the table which is created by just selecting columns required in the Define Criteria section.
We can add a total w/o creating the pivot table also. By the way, I have found the solution. The key lies in the second step. If u want me to explain in detail. Just let me know.
-Jas
Similar Messages
-
Grand total of calculated column and case function in the same calcultd col
Hi Gurus,
In 9.0.4, the Grand total of the calculated column is not working as per the CASE function. It is taking the ELSE formula for all records. Is there a way to correct it.
Thanks,
PoojaHi Pooja,
In the totals ,which u mentioned try using cell sum function instead of sum function.
Manikandan
GKB Consulting Inc., -
Grand Total on the Header page
Post Author: RogerR
CA Forum: General
Say I'm created a multiple page estimate report. As all the labor and material costs are being created and added up.
Is it possible to put that Grand Total on the first page?
Can you process the report first to get the numbers then print the report? I guess this is what would need to happen.Post Author: SKodidine
CA Forum: General
If you summarize a field (not a running total) then you should be able to create the summary field and move it to the Report Header without any problems. This cannot be done if you use running totals for obvious reasons. -
Hi,
My question is: Can I exclude grand total on some measure column in pivot view?
For example I have 3 columns.On columns Account1 and Accounts, aggregation is SUM, and on column Max(something), aggregation is MAX.
I have next situation.
Account1 Account 2 Max(something)
100 200 23
200 250 13
150 300 42
450 750 42 - GRAND TOTAL
But I want grand total only on columns Account1 and Accounts. For column Max(something) I don't want total at all.
Thank you for your replies.Hi,
Thanks for your reply,
According to the link Below
http://gerardnico.com/wiki/dat/obiee/answer_xml,
We can able to change color for Grand total through XML, but the example is in 10g, there is nothing call saw:totalValues in 11g Currently, may be it is replaced with saw:displayGrandTotal, I tried that option also but it is not working.
Is there anything which we can do through xml, to achieve the above requirement?
Thanks
Anirban -
Need to Achieve Grand Total in the Data Template
Hi Team
As per the requirements i need to achieve the grand total form the various level of Total. To achieve the Total i have used the SUM function and it works fine. Could you please suggest me how can i achieve the Grand Total. For your reference i am attaching the data template here that i am using.
<group name="G_ITEM" dataType="varchar2" source="Q_ITEMQuery" groupFilter="">
<element name="ITEM_ID" dataType="varchar2" value="item_id" function=""/>
<element name="DESCRIPTION" dataType="varchar2" value="description" function=""/>
<element name="DIVISION" dataType="varchar2" value="division" function=""/>
<element name="UNITS_APPTD" dataType="varchar2" value="apptd_unit_qty" function=""/>
<element name="UNITS_RCVD" dataType="varchar2" value="unit_rcvd" function=""/>
<element name="WEIGHT_APPTD" dataType="varchar2" value="apptd_weight" function=""/>
<element name="WEIGHT_RCVD" dataType="varchar2" value="receipt_weight" function=""/>
<element name="SUM_UNITS_APPTD" value="G_ITEM.UNITS_APPTD" function="SUM()"/>
<element name="SUM_UNITS_RCVD" value="G_ITEM.UNITS_RCVD" function="SUM()"/>
<element name="SUM_WEIGHT_APPTD" value="G_ITEM.WEIGHT_APPTD" function="SUM()"/>
<element name="SUM_WEIGHT_RCVD" value="G_ITEM.WEIGHT_RCVD" function="SUM()"/>
<group name="G_TROUBLE" dataType="varchar2" source="Q_TROUBLEQuery" groupFilter="">
<element name="T_CODE" dataType="varchar2" value="trouble_code" function=""/>
</group>
</group>
<group name="G_DEPOSIT" dataType="varchar2" source="Q_DEPOSITQuery" groupFilter="">
<element name="ITEM_ID1" dataType="varchar2" value="ITEM_ID1" function=""/>
<element name="DESCRIPTION1" dataType="varchar2" value="DESCRIPTION1" function=""/>
<element name="UNIT_QTY1" dataType="varchar2" value="Unit_Qty1" function=""/>
<element name="SUM_UNIT_QTY1" value="G_DEPOSIT.UNIT_QTY1" function="SUM()"/>
</group>
<group name="G_TRANSPORT" dataType="varchar2" source="Q_TRANSPORTQuery" groupFilter="">
<element name="ITEM_ID2" dataType="varchar2" value="ITEM_ID2" function=""/>
<element name="DESCRIPTION2" dataType="varchar2" value="DESCRIPTION2" function=""/>
<element name="UNIT_QTY2" dataType="varchar2" value="Unit_Qty2" function=""/>
<element name="SUM_UNIT_QTY2" value="G_TRANSPORT.UNIT_QTY2" function="SUM()"/>
</group>
I need SUM_UNITS_APPTD, SUM_UNIT_QTY1 and SUM_UNIT_QTY2 of 3 different group to be added to generate the Grand Total. PLEASE ADVISE
Regards
SrikantHi Domnic
Thanks for the reply.
I am not much aware of the XDO. Could you please let me know can i pass the field name in place of 2 and 3 as in your example.
For example if i have field A and B and i need to add it then should it be
<?xdofx:A+B?> in RTF.
Else please give me the complete syntax.
Thanks in advance for your reply.
Regards
Srikant -
Grand Totals for GOURL columns
We are having an issue showing Grand Totals for GOURL enabled columns
We have enabled GOURL on the amount columns, To enable hyperlink we had to convert the the number column to character. Enabling the Grand total in the Table View is thorwing error "Function Report_Sum does not support non-numeric types".
Any input on the above would be of great help.
We are using OBIEE version 10.1.3.4
Thanks
KranthiYou can try the following..
1) Keep the same name for all the amount fields in each column. (for example, first amount column field name is "Amount1" and second column field name is "Amount2").
2) Then write the code in the Calculate event of the Total field. (Use FormCalc)
Total1.rawValue = Sum(Table1.Row1[*].Amount1);
3) Similarly for Second column
Total2.rawValue = Sum(Table1.Row1[*].Amount2);
4) For the total of Amount1 and Amount2.
LoanTotal = Sum(Total1.rawValue + Total2.rawValue);
Hope this helps.
Thanks
Srini -
(Smartform) Print grand total on the last page
Hi everyone,
I'm trying to print the Grand Totals on the last page of my Smartform. I have two pages - FIRST and SECOND.
What I did was I created a Text to display the grand total, and I specified that this text should be printed 'Only After End of Main Window'. However, the total is not being printed out.
I can't change the condition to 'Not on First Page', because my form has more than two pages, and I only want the grand totals on the last page.
Any help would be appreciated.hi,
we have a window type called final window if u define this type window in second page . create a table in the window and go to calculations tab and define an internal table. i think u can get the grand totals.
if u want maore clearly go throuh this link
https://www.sdn.sap.com/irj/sdn/forums
hope this will help you.
REWARD ME IF USEFUL.
thanks,
gupta
Edited by: gupta pullipudi on Apr 9, 2008 9:23 PM -
How to display subtotals in every page and the grand total in the last page
Hello Abapers,
I am working with Smartforms. I am not able to print the subtotal in every page ie the Price for that particular page alone should be summed and in the final page I want the grand total also to be displayed. I tried the Total option in the Calculations tab but the value is just getting incremented on every page..How can I achieve this..
With Regards,
Bennet.Hi,
Declare two different variables for subtotal and total
Use them in the calculation tab of the table node.
After displaying the subtotal create a program lines node to clear the value of the subtotal. And dont forget to mention the condition in the condition tab of the text node of your subtotal as only before end of main window.
display the grand total in the text another text node with condition... only after end of main window.
regards
padma -
Grand Totals on a column of a calculation
I’m trying to sum up a column that is a calculation. When the grand total appears ,it just does the calculation for the line and does not sum up the actual numbers in the column. Any way to fix this
ThanksPr. Ea Qty Value LDP Ttl LDP Landed Ttl Sell
18.45 1056 19483.2 $18.5 19536 35 36960
22.8 613 13976. $22.15 13577.95 44.75 27431.75
20.625 1669 33459.6 $20.32 33922.425 39.875 66551.375
Thanks for your quick reply
the example above shows that the lines calculate correctly , however, discoverer is taking the total line and making a calculation instead of adding the numbers up in the column.
I tried to look for Cell sum , but do not have it . I am working with Discoverer 4
thanks -
Average of the Grand Total in the Pivot Table
all,
I have calculated a Grand Total of sum 3 days trade in the pivot table using the Totals after in the Pivot table. I wanted to obtain the average of this Grand total. How can i achecive this in OBIEE 10g.? Please help urgentI did not understand your scenario exactly. Did you try using the 'newly calculated column' option from 'More options' of the particular column for which you want the average?.
for example
segment brand 1 value
brand 2 value
brand 3 value
brand 4 value
Avg brand per segment <value>
notice that the 'Avg brand per segment' is a 'newly calculated item' where the average brand has been calculated. hope this helps. -
Get Grand total of the subtotals
Hi,
I am devoloping a report which pulls the expense lines for each project.I am displaying the fte count at each line.As it'll be same for a particular project,all the lines for that particular project will show the same FTE count.I am grouping the
lines by Project No in Desktop edition.Now I want the total fte count which is the sum of the fte counts at each grouped level.So I cant use the total as it'll give the grand total of all the line entries.But I am not finding any option for this kind of total.(Total of the subtotals)
Pls give me a solution ASAPHi,
I am devoloping a report which pulls the expense lines for each project.I am displaying the fte count at each line.As it'll be same for a particular project,all the lines for that particular project will show the same FTE count.I am grouping the
lines by Project No in Desktop edition.Now I want the total fte count which is the sum of the fte counts at each grouped level.So I cant use the total as it'll give the grand total of all the line entries.But I am not finding any option for this kind of total.(Total of the subtotals)
Pls give me a solution ASAP -
Grand total (of all columns) in ALV grid
Hi Experts,
I have developed one custom ALV report in GRID format. Now Report output is displaying like below.
COL1 | COL2 | COL3 | COL4 |
TYPE1 | 10 | 44 | 05 |
TYPE2 | 01 | 20 | 35 |
TYPE3 | 05 | 10 | 20 |
=============================
sum | 16 | 74 | 50 |
But I need Grand Total for COL2 and COL3 and COL4 (i.e 16 + 74 + 50 )
This grand total line should be at the end of the internal table -- 140 .
The report output should be like below.....
COL1 | COL2 | COL3 | COL4 |
TYPE1 | 10 | 44 | 05 |
TYPE2 | 01 | 20 | 35 |
TYPE3 | 05 | 10 | 20 |
=============================
sum | 16 | 74 | 50 | ====> this sum will displayed when user select sum button on the Grid toolbar.
=============================
Grand Total 140 |
Suppose when I press sum button on the COL2. it should not change grand total. I mean Grand total should be like footer always.
Please advise
Thanks in advance.
RaghuHi
For your requirment ,you have to fill the field catalog for each field for which
you have to create the the grand total and check the option DO_SUM.
If you neeed the sub total ,in the sort table you can check the option- fs_sort-subtot = 'X'.
Just try the belo code .
It will solve your problem.
REPORT ztest.
* INTERNAL TABLE DECLARATION.
DATA:
t_sflight TYPE TABLE OF sflight,
fs_sflight TYPE sflight.
*OBJECTS FOR CONTAINER AND GRID.
DATA:
r_container1 TYPE REF TO cl_gui_custom_container,
r_grid1 TYPE REF TO cl_gui_alv_grid.
*FIELD CATALOG
DATA:
t_fcat TYPE lvc_t_fcat,
fs_fcat TYPE lvc_s_fcat.
fs_fcat-fieldname = 'SEATSMAX'.
fs_fcat-do_sum = 'X'.
APPEND fs_fcat TO t_fcat.
CLEAR fs_fcat.
fs_fcat-fieldname = 'PRICE'.
fs_fcat-do_sum = 'X'.
APPEND fs_fcat TO t_fcat.
CLEAR fs_fcat.
* SORT TABLE
DATA:
t_sort TYPE lvc_t_sort,
fs_sort TYPE lvc_s_sort.
* LAYOUT TABLE
DATA:
fs_layo TYPE lvc_s_layo.
*FS_LAYO-SGL_CLK_HD = 'X'.
fs_layo-zebra = 'X'.
fs_sort-spos ='1'.
fs_sort-fieldname = 'CARRID'.
fs_sort-down = 'X'.
fs_sort-group = '*'.
*fs_sort-subtot = 'X'.
APPEND fs_sort TO t_sort.
SELECT * FROM sflight INTO TABLE t_sflight.
CALL SCREEN 100.
*& Module STATUS_0100 OUTPUT
* text
MODULE status_0100 OUTPUT.
SET PF-STATUS 'SCREEN1'.
SET TITLEBAR 'TITLE1'.
ENDMODULE. " STATUS_0100 OUTPUT
*& Module USER_COMMAND_0100 INPUT
* text
MODULE user_command_0100 INPUT.
CASE sy-ucomm.
WHEN 'BACK'.
LEAVE TO SCREEN 0.
ENDCASE.
ENDMODULE. "user_command_0100 INPUT
**& Module HANDLER OUTPUT
** text
MODULE header OUTPUT.
CREATE OBJECT r_container1
EXPORTING
container_name = 'CONTAINER'.
CREATE OBJECT r_grid1
EXPORTING
i_parent = r_container1.
CALL METHOD r_grid1->set_table_for_first_display
EXPORTING
is_layout = fs_layo
i_structure_name = 'SFLIGHT'
CHANGING
it_fieldcatalog = t_fcat
it_outtab = t_sflight
it_sort = t_sort.
ENDMODULE. "Header OUTPUT
Regards
Hareesh. -
Hiding Total of the Columns in the Class CL_SALV_TABLE
Hi ,
I am using the class CL_SALV_TABLE for displaying ALV outputs. The client is adamant on using this class only for ALV o/p.
In on o/p there are some subtotals and totals calculation. I cannot remove the totals calculation. Only way is to hide it.
I need to hide the Totals for the fields .
I know how it is done in the CL_GUI_ALVGRID by setting layout-no_totline = 'X' .
Is there any similar way in CL_SALV_TABLE class to hide the totals.Hi,
U can make column invisble as set_visible (' ').
For example,
data: w_column TYPE REF TO cl_salv_column,
w_columns TYPE REF TO cl_salv_columns_table,
w_column ?= w_columns->get_column( 'M' ).
w_column->set_medium_text( 'Material' ).
w_column->set_long_text( 'Material' ).
w_column->set_output_length( 20 ).
w_column->set_visible( ' ' ).
For class cl_gui_alv_grid, u have to build catlog as
data:wa_fieldcat TYPE lvc_s_fcat,
it_fieldcat TYPE TABLE OF lvc_s_fcat,
CLEAR wa_fieldcat.
wa_fieldcat-fieldname = 'M'.
wa_fieldcat-coltext = 'Material.
wa_fieldcat-NO_OUT = 'X'.
APPEND wa_fieldcat TO it_fieldcat.
or u can do like this
Retrieve the columns that u want, creat a new table and passed this table as a parameter for the creation of cl_salv_table object
Regards
Hiren K.Chitalia -
Hi, is possible to get a total of a column that have a date ('HH24:MI:SS') format, in a REPORT?
Because I try with the option SUM of the attributes of the region but doesn't work.
Thank!I think you have to do this manually. See my post from today talking on the leading total:
How to display TOTAL before the rows ?
Denes Kubicek -
How to get the summed up total of the column?
Hi BW gurus,
i created a restricted keyfigure for amount,account#,0metype and for the corresponding 0metype and account# i am getting the amount for the fiscal period(12 months in column).
i need to get the total for the amount for each fiscal period(columnwise total).
If any more details needed plz reply me.
Help is highly appreciated.
Thanks in advance,
Sam MathewHello Sam,
You can try displaying the results row of 0metype or account#. Hope this helps.
Maybe you are looking for
-
Skype on Mac OS X 10.5.8 suddenly stopped working ...
Hello everyone, I'm in a bit of trouble, I'm aware that support for my OS is very limited now, I managed to fix the problem last year by redownloading 6.3.0.604 and it worked (sort of) like a dream, then suddenly last night it logged me out and refu
-
How to identify the component is an assebly and Phantom component
Hi , I am working on BOM. If You see the transaction cs03 (go with any bom ) inside we can see the componenets...... These componenet having the check boxes for Assembly and Phantom componenet. If the check box is cheked we will consider as that com
-
Proble after logon to US Cellular, Blank page. Internet explore works fine.
I like using Firefox, but When I try logging onto my US Cellular my account page I get nothing. This is after I logon. It comes up with a blank page. The link below is before I would log on.
-
My iphone is frozen, when I plug it in to itunes to restore, it says Restore and then extracts information, but then it says: Iphone could not be restored. The device cannot be found.
-
In which order does the query's where clause condition is checked
Hi All, can anyone tell me in which order does oracle evaluate the where clause condition? for ex: select * from users where user_type='Admin' and stauts='Enabled'