Obiee 11G - Show grand total in chart
I have three measures in my table.
Measure 1 - Rolling balance from the current and previous month.
Measure 2 - PeriodRolling revenue for the last three months including current month
Measure 3 - Calculation using measure 1 and measure 2 and the number of days.
I have created all three measures in the RPD.
The table is by state. So it could be Texas, New York, Illinois and so on.
Month
State
Measure 1
Measure 2
Measure 3
1
Texas
17565
9898989
45
1
New York
97848
8748575
43
2
Texas
85768
8734874
33
2
New york
94855
3234442
23
The chart shows the trend of Measure 3 by time for each state. I need a line on the chart to show the total by month. Do I have to create a sum() formula in the RPD? Appreciate any ideas that you can throw at me.
I created a new group in the selection step and included all the states in it. That seemed to work. The Graph shows a line for grand total. Thank you for your help.
The requirement is to create a line chart. I don't think a bar would work as well here.
Similar Messages
-
How to show Grand total values in Chart view....
Hi,
I have a crazy req. like i need to show grand totals values also on the chart view along with the normal metrics.
column Metric1 Metric2
AAA 10 20
BBB 30 15
CCC 20 15
TOTAL 60 50
so here i need the values 60 and 50 also also to be displayed in a line graph
cheersPretty simple to achieve :)
In your Pivot view, under Rows section where you have column dimensions like AAA,BBB etc...create a new calculated item say Grand Total with function as 'formula' and formula as sum(*). This will give you a new row with totals. Now Chart Pivoted Results and you are done.
Hope answered -
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 -
Obiee 11g show title along with no results.
I have a requirment to show no data when there are no results along with the report title at the top.In obiee 11g when i get the no results the title view is dissapearing.Is there any way were i can get both the title along with no results without going to CSS .
852873 wrote:
I have a requirment to show no data when there are no results along with the report title at the top.In obiee 11g when i get the no results the title view is dissapearing.Is there any way were i can get both the title along with no results without going to CSS .Check this out:
http://docs.oracle.com/cd/E14571_01/bi.1111/e10544/analyses.htm#i1010759
Click on the "Displaying the Results of Analyses" section and then scroll down to "Alerting Users to No Data in the Results of Analyses."
In the Header field, you can enter the title of your report, then customize your message in the Message field. -
Display the total number of rows for the report in OBIEE 11g
Hi, In obiee 11g, the pagination will be 1-25. Is there any possiblity in obiee to show the total rows count next to pagination. Ex: if the result contains 120 rows. it should display after the pagination
Records 1-25. Total of Records : 120
Is there any way we can display the total number of rows for the report.
Kindly help me.. Its very urgent requirement.
MAny Thank in advacneCheck this http://obiee100.blogspot.com/2011/07/display-total-number-of-records-in.html
and
http://docs.oracle.com/cd/E28280_01/bi.1111/e10544/appsql.htm#CHDCDIDA
You have to go something like as suggested in previous link.
Mark as correct/helpful -
How to color Grand total column
Hi,
We got one requirement from our customer to show Grand Total column with RED color based on some condition.
Could you please let me know is it possible to make it color. we are using obiee 11.1.1.6.0
Thanks
AnirbanHi,
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 -
Running Aggregate on grand totals
Hi,
We have requirement where user wants to view running aggregate only on the grand total,when we use running aggregate in OBIEE 11g it calculates running totals each row, however we want the running totals on grand totals.
Another issue is can we show grand total row and running total on the grand total in the same report like the following report.
This is how the report should look however when we apply running aggregate it is calculating the totals for all the cells in OBIEE, Could any one let us know how we can achieve this.
Current report
Branch W1 w2 w3 w4
Abc 10 1 10 11
MNC 20 2 5 10
XYZ 30 3 1 20
QCW 40 5 0 10
Grand Total 100 11 16 51
Expected report with Running aggregate on grand total
Branch W1 w2 w3 w4
Abc 10 1 10 11
MNC 20 2 5 10
XYZ 30 3 1 20
QCW 40 5 0 10
Grand Total 100 11 16 51
Running Total 100 111 127 178
---------------------------------------------------------So having this:
Branch W1 w2 w3 w4
Abc 10 1 10 11
MNC 20 2 5 10
XYZ 30 3 1 20
QCW 40 5 0 10
To achieve what you want you should add a union on the analysis where you set the Branch Column to 'Running Total'.
In the metric you just have to do a RSUM(facts) and they will be aggregated as an RSUM by Week.
Let me know if it works. -
OBIEE 11g best practice - when to use the new "presentation hierarchies"
Hi, maybe a dumb question, but what are the rules of thumb for when to expose a presentation hierarchy to end users. Obviously this must be done when using a parent / child hierarchy, as there is no level info that would allow drilling the "10g" way. However, I'm not so sure what the bonuses / drawbacks are when using level based hierarchies.
I have noticed that the SQL seems more complex and less performant when using the hierarchy. As an example, I have a simple dimension (business unit) that has a hierarchy with a total level, and 3 members in the detail level.
If I create this as a 10g style report, I add business unit column, dollar amounts, and a table total (so I can see grand total amounts), the SQL launched looks like this:
WITH
SAWITH0 AS (select sum(1) as c1,
sum(T45393.SPEND_AMOUNT) as c2,
T45273.BUSINESS_UNIT_CODE as c3
from
DIM_BUSINESS_UNIT T45273,
FACT_SPEND_ANALYTICS T45393
where ( T45273.BUSINESS_UNIT_KEY = T45393.BUSINESS_UNIT_KEY )
group by T45273.BUSINESS_UNIT_CODE)
select distinct 0 as c1,
D1.c3 as c2,
D1.c2 as c3,
D1.c1 as c4,
0 as c5,
0 as c6
from
SAWITH0 D1
This is simple and efficient, and OBIEE "knows" the grand total can be calculated by simply summing the business unit totals together.
But if I create this as an 11g style report using the presentation hierarchy, with all members selected (so I can get the detailed business units plus the grand total), the SQL is much less efficient, it actually fires two queries - one for the detail level, another for the total level:
WITH
SAWITH0 AS (select distinct sum(1) as c1,
sum(T45393.SPEND_AMOUNT) as c2
from
FACT_SPEND_ANALYTICS T45393)
select distinct 0 as c1,
NULL as c2,
'All Business Units' as c3,
1 as c4,
NULL as c5,
D1.c2 as c6,
D1.c1 as c7
from
SAWITH0 D1
AND
WITH
SAWITH0 AS (select sum(1) as c1,
sum(T45393.SPEND_AMOUNT) as c2,
T45273.BUSINESS_UNIT_CODE as c3
from
DIM_BUSINESS_UNIT T45273,
FACT_SPEND_ANALYTICS T45393
where ( T45273.BUSINESS_UNIT_KEY = T45393.BUSINESS_UNIT_KEY )
group by T45273.BUSINESS_UNIT_CODE)
select distinct 1 as c1,
D1.c3 as c2,
'All Business Units' as c3,
1 as c4,
D1.c3 as c5,
D1.c2 as c6,
D1.c1 as c7
from
SAWITH0 D1
Not only does this fire off two queries - but it doesn't use the existing cache for the "detail" level generated by the "non-hierarchy" query.
So I'm trying to figure out pros and cons of exposing hierarchies for end users. I've come up with the following:
Pros:
- Users can click on the + and - signs to drill / collapse individual members while still keeping all other members on the report
Cons:
- Queries fired at all levels, doesn't seem like it's smart enough to figure out it doesn't need to send a level query to database if all children were already queried
- In 10g if I want to expand all children (i.e. drill down all quarters to the month level) I could just click on the column header. Doesn't appear to be any way to do that using the hierarchical drills, I have to click each and every one to see all the months.
Any insights would be appreciated!
Thanks,
ScottHi, no, I haven't tried setting options such as "report based totals" - simply because I wouldn't want an option that requires users to tweak settings on each and every report they create to get stuff working efficiently.
Thanks,
Scott -
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 -
Grand total in Pivot Tables with Paging
I could help with this issue please
when we apply paging PivotTables there a way to show Grand total all pages, and I've noticed that the Grand total vee only when the last page or show all results at once.
For me it is important to see the Grand total on every page.
Thanks in advance for your cooperationIf you're not talking about printing, then you can do this:
1) Instead of using the same pivot table that you created for details to also display the Grand Total, first paginate the pivot table. Look here:
Re: Pivot table
In your pagination, break your pivot table in groups such that you can see a small enough chunk without having to scroll too much.
2) Now that you have a manageable size pivot table, create the Grand Total as another pivot table. Take out all the attributes that break the total in detail and leave only what will give you the Grand Total.
3) Add this pivot table to the bottom of your detail pivot table in step 1. This will give you the grand total right underneath each page of your detail pivot table without having to go all the way to the end of the report. -
Grand Totals functionality under Group and Sort
Hello community,
Does anyone know if there is a solution for rolling up text fields in the summary line item (under the Show Grand Totals functionality under Group and Sort)? I can only find that date fields and formula fields summarize. I would like to be able to summarize all the data in one line items so I wont have a really long schedule and I can present to my end users accordingly.
Thanks,
P6GURUYOUHope I understand, if you have the groups setup, you should be able to (CRXI instructions) right click on the item in the Details line, insert a summary, you can select sum, add the sum to the group. For the locations, insert a summary count, and add that to the groups.
What I do sometimes, is select the option to add summary to all groups, Perhaps change the font to red, I can see the totals
I want, and just suppress the other groups. Just a quick and dirty way to do the totals. -
Matrix row grand total, column grand total
matrix report layout in sql 2008
report shows column a column b column c total
row 1 4 5
8 17
row 2 3 5
2 10
row 3 2 7
6 15
total 9 17
16 grand total column 42
grand total row 42
How do I define the grand total cells to use column totals or row totals? Not just the sum of field in dataset?
Accounting wants justification that column totals add up to row totals.Hi JimHoopsDSC,
Based on my understanding, you want to show grand total columns and grand total rows in the report.
For your requirement, you can create a matrix and add total for row groups and column groups. Then you can add an additional row and populate the total value. Please refer to screenshots below:
If you have any question, please feel free to ask.
Best regards,
Qiuyun Yu
Qiuyun Yu
TechNet Community Support -
Change background Grand Total color
Hi,
Is it possible to change background color of Grand Total. It is too dark and users are unable to view data.
Please help me to resolve this issue.
Thanks,
Poojakhi,
http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
The link is totaly not relevant to you but it contains solution for you.
in this link you can find how venkat is showing grand total in a separate color. add a dummy column and add a value and finalyy sort the result using that column.
hope it helps.
thanks,
karthick -
My query works fine. I am just wondering if I could add another row to create a grand total for all rows returned running this query. please help
SELECT DISTINCT 'Q'||(TRUNC (TO_CHAR (B.DATELET, 'Q')))||' - ' || :year QuarterYear ,TRUNC (TO_CHAR (B.DATELET, 'Q')) Quarter,
to_char (sum(l.contamt) OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))) , '$999,999,999.99') AwardedDollarAmount ,
count(P.CPROJNUM) OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))) ProjectAwarded,
--- to_char( SUM (MIN (c.calcbtot)) OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '$999,999,999.99') AwardedDollarAmount,
SUM (COUNT (C.VENDOR))OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))) NumberOfBidders,
to_char(SUM (COUNT (C.VENDOR))OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))) / count(P.CPROJNUM) OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '999.99') AverageNumberOfBidder
FROM BIDDERS C,
BIDLET B,
LETPROP L,
PROPOSAL P
WHERE C.LETTING = B.LETTING
AND P.CONTID = L.LCONTID
AND C.LETTING = L.LETTING
AND C.CALL = L.CALL
AND l.lcontid IN
(SELECT lcontid
FROM letprop c, PROPOSAL d
WHERE datestat IS NOT NULL
AND UPPER (letstat) <> 'R'
AND UPPER (letstat) <> 'B'
AND TRIM (UPPER (TIMELET)) = TRIM ('9:30 A.M.')
AND c.LCONTID = d.CONTID)
AND B.DATELET >=
ADD_MONTHS (TRUNC (TO_DATE (:year, 'YYYY'), 'YYYY'),
(:from_quarter - 1) * 3)
AND B.DATELET <
ADD_MONTHS (TRUNC (TO_DATE (:year, 'YYYY'), 'YYYY'),
:to_quarter * 3)
GROUP BY TRUNC (TO_CHAR (B.DATELET, 'Q')), P.CPROJNUM, l.contamt
order by TRUNC (TO_CHAR (B.DATELET, 'Q'));
Q1 - 2011 1 $174,950,864.40 71 278 3.92
Q2 - 2011 2 $196,470,118.71 96 329 3.43
Q3 - 2011 3 $56,552,583.92 30 116 3.87
Q4 - 2011 4 $25,497,261.10 17 84 4.94
Total Amount: 35000047800.00 214 807******************************Here is what I would like to create a new row to show grand total.Edited by: 893601 on Dec 30, 2011 12:07 PMHi,
Can you please try this.. check this before you execute.. may be u need to change the datatype of the second half of union all statement
WITH tmp AS
(SELECT DISTINCT 'Q'
|| (TRUNC (TO_CHAR (b.datelet, 'Q')))
|| ' - '
|| &year quarteryear,
TRUNC (TO_CHAR (b.datelet, 'Q')) quarter,
TO_CHAR
(SUM (l.contamt) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
'$999,999,999.99'
) awardeddollaramount,
COUNT (p.cprojnum) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
)) projectawarded,
--- to_char( SUM (MIN (c.calcbtot)) OVER (PARTITION BY (TRUNC (TO_CHAR (B.DATELET, 'Q')))), '$999,999,999.99') AwardedDollarAmount,
SUM (COUNT (c.vendor)) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
numberofbidders,
TO_CHAR
( SUM (COUNT (c.vendor)) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
/ COUNT (p.cprojnum) OVER (PARTITION BY (TRUNC
(TO_CHAR
(b.datelet,
'Q'
'999.99'
) averagenumberofbidder
FROM bidders c, bidlet b, letprop l, proposal p
WHERE c.letting = b.letting
AND p.contid = l.lcontid
AND c.letting = l.letting
AND c.CALL = l.CALL
AND l.lcontid IN (
SELECT lcontid
FROM letprop c, proposal d
WHERE datestat IS NOT NULL
AND UPPER (letstat) = 'R'
AND UPPER (letstat) = 'B'
AND TRIM (UPPER (timelet)) = TRIM ('9&30 A.M.')
AND c.lcontid = d.contid)
AND b.datelet >=
ADD_MONTHS (TRUNC (TO_DATE (&year, 'YYYY'), 'YYYY'),
(&from_quarter - 1
) * 3
AND b.datelet <
ADD_MONTHS (TRUNC (TO_DATE (&year, 'YYYY'), 'YYYY'),
&to_quarter * 3
GROUP BY TRUNC (TO_CHAR (b.datelet, 'Q')), p.cprojnum, l.contamt
ORDER BY TRUNC (TO_CHAR (b.datelet, 'Q')))
SELECT *
FROM tmp
UNION ALL
SELECT 'Total Amount: '
|| SUM (awardeddollaramount)
|| ' '
|| SUM (projectawarded)
|| ' '
|| SUM (numberofbidders)
|| ' '
|| SUM (averagenumberofbidder)
FROM tmp;
-------------------------------------------------- -
OBIEE 11g pie chart showing the slices by different measures
Hi,
We are using OBIEE 11g. We have a requirement to show PO Met Count , PO Under Count, PO Over Count as a slices in a pie chart. However Pie graph in 11 g is slicing only by a dimension and not by the above measures. This was possible in 10g. I want to know if this a limitation in 11g or is there a way around this.
Regards
Purvi
Edited by: user13054333 on Dec 1, 2010 11:20 PMHI,
I tried to slice by measure by dragging the column to slice size section. I have 3 metrics PO Under Count and PO Over Count which add up to total PO count. So I want my pie to ahve 2 slices one for PO Under Count and other for PO Over count. However when I drag the 2 metrics, it shows me 2 pies, one for Over and the other for Under count.
Regards'
Purvi
Maybe you are looking for
-
Mail and IMAP driving me mad! Is there a setup guide anywhere???
I am attempting to move over to using Apple's 'Mail' as an e-mail client instead of Microsoft Entourage, this is to start using the iCal and Address book apps as much as anything else, also starting to sync my Palm to these apps as well, perhapps to
-
Behavior of append in sql loader control file
I've been searching for the exact behavior of the append option on the control file for sql loader and believe the following is the case using append means that new records will be written to the table what happens with records in the file that alrea
-
Dynamic select list: link to another page
Hi Have following dynamic select list at the bottom in "product.php" page (www.dolls.com.sg) <div id="selectcat"> <select name="Categories"> <?php do { ?> <option value="<?php echo $row_rsCategories['categoryName']?>"<?php if (!(strcmp($ro
-
Once I correct one, another one cuts off, no matter how many times I try to fix it one is always cut off. I have windows 8 and this has never happened before, it just started happening.
-
How do activate my itunes card ? to be able to redeem my code
how do activate my itunes card ? to be able to redeem my code