In OBIEE Report Grand Total instead of Average(Average) use Sum(Avg)?
Hi All,
In OBIEE Report Grand Total average always shows Average of average (Default) "avg(avg)" , can i overwrite this functionality to sum of average "sum(avg)".
Thanks in advance
Regards
Kandasamy
Hello,
You can try the following:
Remove the calculate result as setting for the three KFs.
In exception aggregation set property to average with ref char as leave start date.
Check if it works.
If the above dosent work, set reference char to emplyee ID and check.
Either one of them has to work
REgards,
Shashank
Edited by: Shashank Dighe on Apr 2, 2009 9:03 AM
Similar Messages
-
Hello,
I have one requirement where I want to show the data as follows
Type Metric Values
Type1 units 100
Days 50
% Calc 10%
Type2 units 100
Days 50
% Calc 10%
Type3 units 100
Days 50
% Calc 10%
Total units 300
Total Days 150
Total % Calc 30%
If I take grand total of row in pivot table, I am not able to show Total units, Total Days and Total % Calc values in Grand Total because by default, same grand total name appears.
I want to give different grand total names and percentage sign should appear in grand total.
Please let me know if u need any more information.
Thanks.Try to recreate the report. Just in case make sure that you dont have null values in that metric or try with ifnull(col,0)
Check this bug too BUG:9871470
Keep update -
Crystal Reports Grand Totals and int not working
I am new to Crystal Reports, I am using the Visual Studios version. I have a couple of different questions. My report is a cross tabs report. In one of the cells I want to include a name and the total number of records for the person. To make it visually appear how I want it, I have chosen the Cross-Tab Group Options - Use a Formula. This is what I have entered:
{SP_GET_QATPADJ.AJNAME} + ChrW(13) + ToText(Int({SP_GET_QATPADJ.CNT})) + " Claims", the problem is the .CNT field still shows the .00 after the number. I want it to be a whole number. I have tried several different functions in place of the Int, but it still shows the .00.
My second question, is there any way to modify just one grand total? Within each person of the report there are three rows, number correct, number possible and percent (all of these are returned in the stored procedure). The total column on the right totals the correct & possible okay, but for the percent I would like it to be the percent of the total correct & total possible. LIke the total correct is 13 and total possible is 20, I would like the percent to be 65 (it is showing 234 the sum of the percents for all the columns).Inorder to remove .00 for an integer try this
ToText(Int({SP_GET_QATPADJ.CNT}),"##")
For the other question
Right click on Total Correct value and go to format field and write the suppress condition by clicking on X+2 corresponds to suppress like this
whileprintingrecords;
numbervar TC:=currentfieldvalue;
false;
Now again Right click on Total Possible value and go to format field and write the suppress condition by clicking on X+2 corresponds to suppress like this
whileprintingrecords;
numbervar TP:=currentfieldvalue;
false;
Now right click on percent value and go to format field and click on X+2 corresponding to DisplayString
and write the formula like this
whileprintingrecords;
numbervar TC;
numbervar TP;
totext((TC/TP)*100)+"%"
Hope this would deffinetly help you!!!!
Raghavendra.G -
Combined Analysis Report - Grand Total
Is it possible to have a grand total on a "Combined Analysis" report?
I think you can use the Pivot Table view and show the sum of rows. If no digits appear in the metrics, set the Aggregation Rule to Sum.
-
Interactive Report grand totals
Dear,
how can i show show report grand/final totals at the end of interactive report while using control breakup option.
Regards,
Muhammad UsmanTony Miller
Thanks for the reply.
Through Actions-->Format--->Aggregate, we can display the totals in the end of report. But my question/Problem is about control break.
after using control brake option total of all the breakups are not displayed in the end of report. How can i get the final/grand/total of all the breakups at the end of report.
Hope u understand my query
Regards,
Muhammad Usman -
OBIEE - Answers - Grand total of a fact column
I need to determine if a fact column (lets say X) is within a certain range of the total of X. I want to know how we can get the total of X in each record of the answers resultset. The column X has been defined as an aggregated column in the repository.
The answers request is : Dim A, Dim B, Fact X and I need to calculate whether Fact X is less than the average of Total of X.
Any help in this regard is highly apreciated
Thanks
Shiva
[email protected]avg = 1.00 * sum(x)/max(rsum(1))
then use case statement -
Grand total values are not matching with Detail report
Report has grand totals and when I drill to the detail report, grand total values are NOT matching with parent report totals, I did some analysis but I'm clueless on this issue.
Please provide your thoughts and insight on this issue..
Thanksis your summary and detail reports hitting different facts, like summary hitting aggregate and detail report hitting it's corresponding detail level fact..?
if then,
From Front-end:
Fix the filter values in detail report that are passing from master report then try delete each columns then check the grand total. If you found your values is matching by deleting particular column then you need to investigate what is the issue around with that dimension table..
From Database side:
1. check first aggregate table has proper aggregate data of it's detail..
2. Take the detail report obiee generated query and try to comment each dimension table and it's corresponding joins to the facts, (before, this delete all the dimensional columns and other measures from select statement and put only that measure where you are getting wrong value, so that you need not to comment all the select and group by columns which saves your time.. ). Need to check by commenting each dimensional wid and it's table from clause, if you found that values is matching then there is some problem with wid columns data population in your ETL.
Is that BI-Apps project?
btw, whtz ur name? -
OBIEE 11g - How to display Grand Total in graphs
hi ,
I am using obiee 11.1.1.6 version . In a report I have a requirement to display the grand total (present in the table) to be shown in the graph also . Kindly help.
Regards,
NivHi Niv,
One quick question here.How are you creating Grand Total?
I have created using grand total by row summing and inserting that value in the Group By Function.
Attached the screen shot for your reference.
GT - Download - 4shared
Mark if helps
Thanks, -
Grand totals are not displaying...
hi guys
for cross tab reports grand totals (rows and columns) are not displaying.
is there any fix to resolve.I have faced a similar issue in Cross tab reports.
Try using Cell Sum/Cell Sum distinct function instead
of the usual Sum function while calculating the grand total that function is working for Grand Total at bottom but not working for Grand Total on right [i] -
Need Help with the Total and Grand Total
Hi All,
I have posted a question couple of days ago regarding the COUNT and AVERAGES, for a minute i thought i got the work around, but the problem still exists. I'm trying to find the average work done and average revenue generated. I have to do this by the location,
employee id , date and the number of hours. Below is a sample for february 2014. I have two averages for the work done AvgWorkDone=(sum of work done/count of workingdays in month), the second one is AverageWorkDone1... which i skewed by multiplying by 16 (since
there are 16 hours in my data per day) Please need help
Year Name
Calendar 2014
Month Of Year Name
Month 2
Row Labels
workdone
STG WORKDONE VW Count
AvgRev
AvgWorkdone
AvgWorkdone1
1
2433.333333
368
1.591304348
6.612318841
105.7971014
1368
2433.333333
368
1.591304348
6.612318841
105.7971014
10AM
0
23
0
0
0
11AM
23.33333333
23
0
1.014492754
16.23188406
12PM
91.66666667
23
0
3.985507246
63.76811594
1PM
58.33333333
23
0
2.536231884
40.57971014
2PM
41.66666667
23
0
1.811594203
28.98550725
3PM
161.6666667
23
0
7.028985507
112.4637681
4PM
176.6666667
23
0
7.68115942
122.8985507
5AM
0
23
25.46086957
0
0
5PM
191.6666667
23
0
8.333333333
133.3333333
6AM
0
23
0
0
0
6PM
450
23
0
19.56521739
313.0434783
7AM
0
23
0
0
0
7PM
618.3333333
23
0
26.88405797
430.1449275
8AM
0
23
0
0
0
8PM
620
23
0
26.95652174
431.3043478
9AM
0
23
0
0
0
Grand Total
2433.333333
368
1.591304348
6.612318841
105.7971014
If you see the above report the number of days are adding upto 368, this causes the Individual Averages to be fine but the GrandToatl of the Average is messed up. If i multiply by 16 the Individual Averages are messed up, but the GrandAverage is coming RIGHT.
Please need help where i can get both the individual and the grand averages right.
SVHi All,
Finally i found a solution. a) I have a time dim from the ware house and its joined to the fact table based on the dateid, since the fact table is getting only the data for the working days , the ware house time dim is showing only those days as count.
b) I created a new time dim in SSAS TIMEDIMSSAS
c) I joined the new TIMEDIMSSAS to the warehouse time dimension and the fact table and created new measure AvgWorkDone over time and Avg Rev over time.
I'm getting what i wanted. BUT here is a new problem , when i select multiple months the grand total (which should be Average is showing wrong average and i'm not sure why), can anyone please help ?
Row Labels
AvgRevenue
AvgWorkDone
1
$4.17
277.6801802
1368
$4.17
277.6801802
February 2014
$1.59
105.7971014
January 2014
$0.97
64.66666667
March 2014
$9.52
634.5512821
Grand Total
$4.17
277.6801802
The values were supposed to be (1.59+.97+9.52)/3=4.02 and NOT 4.17 for Revenue. Similarly for WorkDone (105.79+64.66+634.55)/3=268.33 and NOT 277.68
Please can some one suggest what is going wrong here?
Thanks
SV -
Hi Gurus,
In My RPD we are using "Count Distinct" Aggregate rule for Facts and in Reports I am using Table level "Grand Total" Enable with "Report Based Total(When applicable)"option also checked...It is working fine for some days..but suddenly it is showing Different Grand totals..and as work around for this I changed Aggregation rule at report level to "Sum"...now it is showing correct values..so my question is Is my work around is correct or not because we used "Count Distinct" as aggregation Rule in RPD and in report level we changed it as "sum"...and also I observed Physical sql when using Grand totals it is summing the values like...sum(Count(distinct fact1))....and when i changed aggregation to "sum" at report level also it is summing the values like..sum(count(distinct fact1)..so please suggest, Is my work around is correct or am I doing any mistake like changing aggregation at report level to get grand total correct?
I am using 10.1.3.4.1...
I also studied in Release notes as it is a bug in this version for this they suggested work around to use<ReportAggregateEnabled>true</ReportAggregateEnabled> in <serverInstance>tag of instanceconfig file this also not working in my environment...Hi,
I dont' think this is possible for the same measure in a pivot table. Maybe you can use this workaround:
- create an extra column for the measure with a calculation like:
CASE WHEN "Base Facts"."1- Revenue" = MAX("Base Facts"."1- Revenue" BY "Products"."P3 LOB") THEN MAX("Base Facts"."1- Revenue" BY "Products"."P3 LOB") ELSE 0 END
In this example I use the Revenue as the measure. I use the MAX BY function to calculate the MAX value per Product Lob (subtotals per Product Lob in my example). If the max value per product lob is equal to the revenue then the Max value is displayed and otherwise o.
Add this extra measure to the pivot table and add the grand total with aggregate rule = SUM. If you don't want to see the grand total for the original measure select None instead.
Hope this helps. I have a screenshot as well but then I need your emailadress.
Kind regards,
Quinten -
Grand Total Text is not printing in ALV
Hi all,
I am not able to print Grand Total text in my report
I am not doing subtotal, i am using only grand totals.
So i have used in the following way
WA_FIELDCAT-DO_SUM = GC_X.
GS_LAYOUT-TOTALS_ONLY = GC_X.
GS_LAYOUT-TOTALS_TEXT = 'Totals'(049).
i am using using ALV GRID DISPLAY FM...its displaying the total amount, buts text is missing...
Can any one tell me what else i have to pass in the layout or fieldcatlog or FMHi AMR,
If you use REUSE_ALV_GRID_DISPLAY function module, i think Total text does not come .but if u use REUSE_ALV_LIST_DISPLAY function module Total text comes .
Check this sample program it let u know ..
"Types
TYPES:
BEGIN OF t_pa0008,
pernr TYPE pa0008-pernr,
lga01 TYPE pa0008-lga01,
bet01 TYPE pa0008-bet01,
END OF t_pa0008.
"Work areas
DATA:
w_pa0008 TYPE t_pa0008.
"Internal tables
DATA:
i_pa0008 TYPE STANDARD TABLE OF t_pa0008.
PARAMETERS:
list TYPE c RADIOBUTTON GROUP gr1,
grid TYPE c RADIOBUTTON GROUP gr1.
" ALV Declarations
" Types Pools
TYPE-POOLS:
slis.
" Types
TYPES:
t_fieldcat TYPE slis_fieldcat_alv,
t_events TYPE slis_alv_event,
t_layout TYPE slis_layout_alv,
t_sort TYPE slis_sortinfo_alv,
t_keyinfo TYPE slis_keyinfo_alv.
" Workareas
DATA:
w_fieldcat TYPE t_fieldcat,
w_events TYPE t_events,
w_sort TYPE t_sort,
w_layout TYPE t_layout,
w_keyinfo TYPE t_keyinfo.
" Internal Tables
DATA:
i_fieldcat TYPE STANDARD TABLE OF t_fieldcat,
i_events TYPE STANDARD TABLE OF t_events,
i_sort TYPE STANDARD TABLE OF t_sort.
START-OF-SELECTION.
PERFORM get_data.
END-OF-SELECTION.
PERFORM build_fieldcatalog. "Fieldcatalog
PERFORM build_events. "Events table
PERFORM buid_layout. "Layout structure.
PERFORM build_sort_tab. "To sort table and get subtotal
PERFORM display_data.
*& Form get_data
FORM get_data.
DATA:l_0008 TYPE pa0008 OCCURS 0 WITH HEADER LINE.
SELECT pernr lga01 bet01
FROM pa0008
INTO CORRESPONDING FIELDS OF l_0008
WHERE begda LE sy-datum
AND endda GE sy-datum.
w_pa0008-pernr = l_0008-pernr.
w_pa0008-lga01 = l_0008-lga01.
w_pa0008-bet01 = l_0008-bet01.
APPEND w_pa0008 TO i_pa0008.
CLEAR w_pa0008.
w_pa0008-pernr = l_0008-pernr.
w_pa0008-lga01 = l_0008-lga02.
w_pa0008-bet01 = l_0008-bet02.
APPEND w_pa0008 TO i_pa0008.
CLEAR w_pa0008.
w_pa0008-pernr = l_0008-pernr.
w_pa0008-lga01 = l_0008-lga03.
w_pa0008-bet01 = l_0008-bet03.
APPEND w_pa0008 TO i_pa0008.
CLEAR w_pa0008.
w_pa0008-pernr = l_0008-pernr.
w_pa0008-lga01 = l_0008-lga04.
w_pa0008-bet01 = l_0008-bet04.
APPEND w_pa0008 TO i_pa0008.
CLEAR w_pa0008.
ENDSELECT.
ENDFORM. "get_data
*& Form build_fieldcatalog
FORM build_fieldcatalog.
PERFORM build_fcat USING:
"Field Int.Table Text
'PERNR' 'I_PA0008' 'PERNR', "Remove this if u dont want in the item table as well as it is there in the header table
'LGA01' 'I_PA0008' 'LGA01',
'BET01' 'I_PA0008' 'BET01'.
ENDFORM. "build_fieldcatalog
*& Form build_events
* text
FORM build_events.
CLEAR:
w_events, i_events[].
w_events-name = 'TOP_OF_PAGE'.
w_events-form = 'TOP_OF_PAGE'.
APPEND w_events TO i_events.
CLEAR w_events.
ENDFORM. "build_events
*& Form display_data
* text
FORM display_data.
DATA:
l_program TYPE sy-repid VALUE sy-repid,
l_fm TYPE RS38L_FNAM.
IF list = 'X'.
l_fm = 'REUSE_ALV_LIST_DISPLAY'.
ELSEIF grid ='X'.
l_fm = 'REUSE_ALV_GRID_DISPLAY'.
ENDIF.
CALL FUNCTION l_fm
EXPORTING
i_callback_program = l_program
is_layout = w_layout
it_fieldcat = i_fieldcat
it_events = i_events
it_sort = i_sort
TABLES
t_outtab = i_pa0008.
IF sy-subrc <> 0.
MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
ENDIF.
ENDFORM. "display_data
*& Form build_fcat
FORM build_fcat USING l_field l_tab l_text.
w_fieldcat-fieldname = l_field.
w_fieldcat-tabname = l_tab.
w_fieldcat-seltext_m = l_text.
IF l_field = 'BET01'.
w_fieldcat-do_sum = 'X'.
ENDIF.
APPEND w_fieldcat TO i_fieldcat.
CLEAR w_fieldcat.
ENDFORM. " build_fcat
*& Form top_of_page
* text
FORM top_of_page.
DATA :
i_header TYPE slis_t_listheader,
w_header LIKE LINE OF i_header.
DATA:l_date1 TYPE datum,
l_date2 TYPE datum.
w_header-typ = 'S'.
w_header-info = sy-title.
APPEND w_header TO i_header.
CLEAR w_header.
w_header-typ = 'H'.
w_header-info = sy-repid.
APPEND w_header TO i_header.
CLEAR w_header.
CALL FUNCTION 'REUSE_ALV_COMMENTARY_WRITE'
EXPORTING
it_list_commentary = i_header
i_logo = 'ENJOYSAP_LOGO'.
ENDFORM. "top_of_page
*& Form BUILD_sort_tab
FORM build_sort_tab .
CLEAR :i_sort[],w_sort.
w_sort-spos = 1.
w_sort-fieldname = 'PERNR'.
w_sort-tabname = 'I_PA0008'. "header table
w_sort-up = 'X'.
w_sort-subtot = 'X'.
APPEND w_sort TO i_sort.
CLEAR w_sort.
ENDFORM. " BUILD_sort_tab
*& Form buid_layout
FORM buid_layout .
w_layout-totals_text = 'Total'.
w_layout-subtotals_text = 'S.Total'.
ENDFORM. " buid_layout
Regards,
Venkat.O -
How to show grand total at bottom in Pivot view?
Hi All,
How to show the report Grand total at bottom in pivot table?Plz help.
Regards,
VaishnaviHi ,
Thanks for the reply but My report structure is like below:
AAA,BBB,CCC,DDD,EEE,FFF,GGG,HHH & III my report columns.I have arranged those columns in measure & i have to calculate the variance against each column like below structure.As per the report here I have lto calculate variance for 4 columns like AAA,BBB,CCC,DDD & after that total of each..then again variance for EEE,FFF & their total.After that i have to show grand total of all from AAAA to FFF likewise for rest of fields.
Measures variance
AAA(db column) 1
BBB(db column) 2
CCC(db column) 3
DDD(db column
Total 6
EEE(db column) 4
FFF(db column) 5
Total 9
Grand Total(AAA TO FFF) 15
GGG(db column) 6
Total 6
Grand Total(AAA TO GGG) 21
III(db column)
Grand Total(AAA TO III)
How to do that?
Regards,
Sonal
Edited by: Sonal on Jan 11, 2012 9:06 AM
Edited by: Sonal on Jan 11, 2012 9:15 AM
Edited by: Sonal on Jan 11, 2012 9:17 AM -
Interactive Report Need total of aggregate (sums) where break format used
I have an interactive report that uses break formatting. When I do an aggregate (sum) for the Quantity Column I get the sums for each campaign_id (used for the break format column). This is great. However, at the bottom of the report I need a grand total for all campaign ids (a sum of the sums) in a new row at the bottom of the report. Is this possible?
I can't paste a screenshot here to show but her is a simple one column example - I can't make the columns stay lined up but I think you can see what I need.
{code
Campaign Hand Addressed (break format column)
Quantity
100
200
Sum:300
Campaign Travel Check
Quantity
100
500
Sum:600
Sum:900 This is row I need to add
Oracle 11GR2
APEX 3.2.1This works when I run it in SQL Developer. Now I enter this for my report query in APEX and I get the "not a GROUP BY expression.
{code
SELECT *
FROM t3_mail_piece t
WHERE t.week_id = 11
GROUP BY ROLLUP(t.campaign_id, t.market_id)
ORDER BY t.campaign_id
, SUM(t.quantity);
What is different? -
Advanced Table with Grand Total
I have an advanced table created at the design time with property "Records Displayed" is set to 10. That means, i can able to see 10 records at a time. i have click on Next "Next 10" link to see the next 10 records. i have created a footer with Total. it is showing the sum of the column for the 10 records at a time. Every time i click on "Next 10" , it shows the next 10 records and give me total for current 10 records.
My requirement is show the grand total in the footer. is there any simple setup to show the grand total instead of current page total ? Can i replace the current page total with grand total ? if so, how can i get the handler for the total ?We have not implemented this functionality but OAF Dev guide [11.5.10.2] has this info.
Control Total Value Generation
To bypass OA Framework's mechanism to control the value generation for a table column footer so you can
provide your own value such as a percentage, set the
oracle.apps.fnd.framework.webui.OAWebBeanConstants TABULAR_FUNCTION_VALUE_ATTR on the
appropriate table column. This overrides OA Framework's internal behavior of footer value generation. Like all
web bean attributes, you can data bound this attribute if required.
Sample usage:
OAAdvancedTableBean advtableBean = ...;
OAMessageStyledTextBean salaryBean = advtableBean.findChildRecursive(...);
String formattedTotal = ...;
*// compute the total*
salaryBean.setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR,formattedTotal);
or:
salaryBean.setAttributeValue(TABULAR_FUNCTION_VALUE_ATTR,
new OADataBoundValueViewObject(...));
Grand Totals
Declarative or programmatic support for Grand Totals is currently not available in advanced tables. To
implement grand totals, you must build your own layout below the advanced table in accordance with the
Oracle Browser Look-and-Feel (BLAF) Guidelines: Tables: Grand Totals [OTN version]. Use the
messageComponentLayout region style to build this layout. In addition, you must programmatically provide the
values for the grand total fields. Since these fields are like any other form fields, you can first calculate the
grand total value in your controller code by looping through the entire view instance row range, and then call
setText() for the grand total field to set it with the calculated grand total value.
Hope this helps.
--- Thanks
Maybe you are looking for
-
How do you get Openoffice to look more Gnome-like?
When you install OOo (version 2.2.1-3), some of the output in the termial says use "export OOO_FORCE_DESKTOP=kde" or use "export OOO_FORCE_DESKTOP=gnome" to preset your desired look, or put it in /etc/profile, rc.local, or ~/.bashrc. I have tried cop
-
Soundmax - lenovo 6483 cto - xp 64 bit
hello i have a problem with xp 64 bit installed on lenovo 6483 CTO. (sp2 and all the updates from windows update are installed) it doesn`t recognizing the integrated souandmax sound card that came on board (driver page - ADI SoundMAX audio driver for
-
Cost price differences in subcontracting PO's invoicing
Hello, Which transaction key (of automatic postings) will be used by the system if I create an invoice for a subcontacting PO for a bigger value (in price) than the receipted? Is it allways the PRD (Cost (Price) differences)? If not, on what does it
-
I want create Idoc CONF21 for Production Order ConfirmationIdoc (In bound)
Dear All, My Requirement is to confirm the Production Orders though Idoc in executable program.
-
Classification system, new object
Hello, I would like to create a new object by using the classification system; for this I created the relevant entries in the customizing (<b><i>SPRO -> Cross application components -> classification system</i></b>). I created a new Z-table as well n