Division of two columns in pivot table_OBIEE
Hi,
Can you please let me know if there is a way to divide 2 fact columns in pivot table in OBIEE?
Consider a pivot table like this
Year No of customers purchase volume No of customers/purchase volume
1983 30 17000
1985 23 8900
1986 42 21000
I need to calculate No of customers/purchase volume
I did this calculation in criteria and the results are fine but when i tried to bring this to pivot i have no luck.I tried all aggregation rules like sum,average,server complex aggregation but no luck.Is there any option to calculate this column in pivot section?
Note: 'Year' is in row section and other columns are measures in pivot.
Thanks,
Kalai
Thanks,
our issue is that we want to do our calculations at the summary level (region level of the company) and not at the detail level. However we cannot do this at the aggregate level because this is a moving total for the last 7 days worth of data.
Also, Answers (even in Criteria) does not seem to be doing division properly. We are just not getting the results when we do col A/ Col C. We are in 10.1.3.4 on windows xp against SQL Server
Any ideas?
Edited by: Mid Atlantic on Jul 22, 2011 5:33 AM
Similar Messages
-
Division between two columns in pivot table in Answers
Hi all
In answers
if I have two columns in my pivot table say column A and Column B, how can I use a division of Column B by Column A to derive Column C. I am unable to do that using the "New Calculated column feature" or in the criteria section. I keep getting either 0 or 1. I even tried changing the format to show two decimal places and am still unable to get the result.
Thanks
BThanks,
our issue is that we want to do our calculations at the summary level (region level of the company) and not at the detail level. However we cannot do this at the aggregate level because this is a moving total for the last 7 days worth of data.
Also, Answers (even in Criteria) does not seem to be doing division properly. We are just not getting the results when we do col A/ Col C. We are in 10.1.3.4 on windows xp against SQL Server
Any ideas?
Edited by: Mid Atlantic on Jul 22, 2011 5:33 AM -
Common Label for two columns in pivot view??
Hi Guys,
PLs help me..
i want common label or heading columns in pivot view..
Example:
Under label1 (i should have two columns like 'A','B'), under label2(shud have colums like 'C','D','E')..
i tried with dummy column, i placed it in measures section..but its not worked)..Hi Bhargav,
f you are using 11g, goto Pivot Table Properties->Display Column & Folder Headings option.
In 10g try this, http://obiee1000.blogspot.in/2012/03/header-on-measures.html
Regards,
Dpka -
Calculation on two columns in pivot table
Hello all,
I have a view:
Dept Year Amount
Accounting $500 2010
Accounting $700 2011
Engineering $100 2010
Engineering $600 2011
and etc
pivot table:(data displayed side by side)
Dept: 2010 2011
Accounting $500 $700
Engineering $100 $600
Is there a way in pivot table to create additional column and do a calculation on that column? New column called 'Change' (actual calculation amount of 2010 minus amount of 2011 per each department). I see the feature which allows to duplicate the columns in pivot table. But this is it... no additional calculations.
Thank you in advance,
SonyaDeepak,
My "YEAR_NO' is already in the column area. Once I created 'calculated column' and entered formula '2011'-'2010' I got what I needed.
Thank you very much for the solution.
Sonya
In my view I also have column called EXPENSE. When, I added the 'calculated column' to 'YEAR_NO' with formula '2011'-'2010'. It created two calculated columns 1) after the EXPENSES and the other one after YEAR_NO. Is there a way to be specify to display the DIFFERENCE only once after the YEAR_NO??
Edited by: user8461308 on Dec 20, 2011 7:44 AM -
OBIEE - Division of two columns that contain count formulas
I am trying to define a column in a report which divides a column entitled Difference (Target counts - Actual counts)by the column in the report which stores the Target counts. The Target and Difference columns contain formulas which provide the Target counts and calculates the difference between the Target counts and the Actual counts. The functions subtract and add seem to work fine, but when I use the division function I receive an incorrect result. What could I be missing here?
When you mean "incorrect results" is that associated with only Grand Totals or entire result set?
Also check if <ReportAggregateEnabled>true</ReportAggregateEnabled> is in instanceconfig.xml
If none of the options above helped you,
can you provide a sample extract containing 5 rows?
-bifacts :-)
http://www.obinotes.com -
Merge Two Rows of a table to One row but into two columns
Hi
I Am struck in writing a query to merge two rows into two columns of one row.
Here is the Sample data i am working with,
Col 1 Col 2 Col3 Col4 Col Col6
5000 573-3000 2 0 Phone
5000 573-3036 1 0 Fax
5000 893-5703 3 0 WOrk
3000 232-5656 1 0 Phone
3000 353-5656 2 0 FAx
Here Col,Col3,Col4 form the Key.
now wht i am trying to do is to Merge these type of rows put them into Columns P,F,W,E respectively to achive a Structure as below
Col1 P F W
5000 573-3000 573-3036 893-5703
3000 232-5656 353-5656
Can you please help me how could i do this.
I am pretty ordinary at writing SQL's.
Thanks a Lot in Advance
Message was edited by:
SreebhushanSearch the forum for PIVOT and you'll find plenty of examples.
-
Add Two Column in report ,Download and Delete
Hi Friends,
i have one item File Browser to use browse :P1_file_browser and i have create a Report
My Table Is
CREATE TABLE "ARM_DOC_CER"
( "ID" NUMBER,
"NAME" VARCHAR2(500),
"MIME_TYPE" CLOB,
"BLOB_CONTENT" BLOB,
"SUBJECT" VARCHAR2(500)
i jus want to add two column in my report
1--Download
2--Delete
When i click on download then download file and when i click on delete then delete corresponding file.
How can i do this.
ThanksHi,
You can use concat function or also '||' to combine two columns.
1. with concat-
concat("D4 Product"."P01 Product","D4 Product"."P02 Product Type")
2. With '||' operator
"D4 Product"."P01 Product" || '-'||"D4 Product"."P02 Product Type"
(Remove '-' if not required)
This should resolve. Hope this helps
Regards
MuRam -
How do I compare two columns of data in Numbers to find the unique results?
Hello all,
I'm looking for a way to compare the data from two columns so I can find the unique results and display that data in a third column. To be specific, here's what I'm doing.
Column A is a list of email addresses for people I have already written. Column B is a list of email addresses for people I would like to contact. I am not sure if there are email address from Column A in Column B, but there may be and if there are, I must find out so that I don't send a second email to these recipients. How can I have Numbers look at both columns and tell me which email addresses in Column B are not in Column A?
Thanks for the help!!!gfmp123,
Here's an alternate use of MATCH to find duplicates. I hope you find one of the two solutions, Wayne's or this one, useful for your case.
The expression in Column C is:
=IFERROR("Dup in Row "&MATCH(B, A,0), "")
Regards,
Jerry -
From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?
Hi,
Use NVL or COALESCE:
NVL (col_a, col_b)
Returns col_a if col_a is not NULL; otherwise, it returns col_b.
Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
I hope this answers your question.
If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
Explain, using specific examples, how you get those results from that data.
Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
See the forum FAQ: https://forums.oracle.com/message/9362002 -
Hello,
I have a count requirement that i havent been able to solve by searching sdn. Maybe someone can help.
I have a query built on a multiprovider that points to two basic cubes. The basic cubes do not contain a count key figure. The first two columns of my query are characteristics. My requirement is to count the occurences of the combination of the first two column (characteristics). I am looking for a way to do this in the query so i do not have to reload the cubes as they have large volumes of data. All the suggestions i have been able to find on sdn seem to be only for counting a single characteristic. Is there a way to count the combination of two?
Regards,
TMSHi Create a count using the formula or calculated ket figure for the count unique id like client id for your infocube.
so you will have a count for each row now. place this count object in your column.
now select the two char or the group whatever you want a count in your row.
select query properties and select the display tab and make sure the option - hide repeated key values is selected (normally by default it is selected). Then select each of the char in rows and in free char and set the option under display tab result rows - always suppress.
Execute the query now. you will get the list of char and their count. sort the count by descending to get the most duplicate entries by their highest number on top in the count coulmn.
you can also ignore the rows which donot have a duplicate i.e count more than 1 by creating a new condintion on the count key figure > 1 and restricting the condition by only the group of char you have given in the column. so that you can also do a drill down by free char in your query and it will only show the duplicates group.
Hope it helps.
regards,
Siva -
Export option in ALV report downloades first two columns blank
Hi ,
Before posting this query I searched the solution in SDN but I did't find the solution.
My problem is After displaying report in ALV format ,if I press Export --> Local file --->spreadsheet ; file will downloaded to excel sheet but first two columns(only heading no data ) will be blank and next two columns with proper data.
I checked field catalog defination it seems to be ok, any other mistake ?
Please suggest.
NarayanHi
It's the option you have in the path System->List->Save->Local file
I means it's the standard option to export an abap list into a local file, so you should try this path too and check if the resul it's the same
I think you should choose Export --->spreadsheet: here before saving the file an excel document will be open
Max -
How to extend No. of columns for PIVOT table in BI Publisher Desktop
Hello Everyone,
I am using the Oracle BI Publisher Desktop to design the TEMPLATE for Oracle Reports.
I need to create the PIVOT table .In my PIVOT table I need to display 9 columns but when I tried to create PIVOT table by dragging 9 columns only first 4 columns are displaying in report.
Can anyone suggest me how can I increase the number of columns in PIVOT table?
Thank You.
Regards,
Guru.hi jim
if you carefully look inside the form field's you will find the logic of sort . if you remove that you will get the data without any sorting order.
else send me your template and xml to my email id i can look into that .
email : [email protected] -
How to add two columns in criteria(OBIEE 11g)
Hi,
I am trying to add two columns in a criteria in obiee
*"Fact - OLB Processed Invoices"."Invoice Amount - Functional Currency"__"Fact - OLB Processed Invoices"."AR Tax Amount - Invoice Currency"
but the problem is :-
The first column have 500000000 and the second column contains NULL values the actual table. I think this might be the problem when I am trying to add them it is giving no output.
just a blank box.
Can any one tell me how can we add columns in this condition.
Thank to one and all.Try IFNULL(expr, value)
for other column
"Fact - OLB Processed Invoices"."Invoice Amount - Functional Currency"+IFNULL("Fact - OLB Processed Invoices"."AR Tax Amount - Invoice Currency",0)
Edited by: Srini VEERAVALLI on Mar 20, 2013 10:02 AM -
How to add two columns in OBIEE report?
Hi to All,
Can anyone tell me how to add two columns in OBIEE report and get that result in a new column?
Thanks in Advance,
ThenmozhiAssume you already have two columns SalesAmt1 and SalesAmt2, and you want to derive 3rd column say SalesAmt3 which would be the sum of SalesAmt1 and SalesAmt2.
For this, as I mentioned above pull SalesAmt1 and SalesAmt2 columns in Report. Now pull another column (say SalesAmt1) and open the fx. Clear the contents of fx. Now locate the columns button in the bottom of the fx. From Here, first select SalesAmt1 and + sign and the select SalesAmt2.
Now in this new column, the fx should look like SalesAmt1 + SalesAmt2.
Let me know if you are looking for something else.
Thanks -
Retrieve of data from two columns into one column
For eg: i have a data in a table with columns A & B of same size
A B
1 2
2
3 1
4 2
5 3
6 5
7 1
8 4
9
10 8
Through a select i want the output of my data in one single
columns, Well I can do this by using union.
But my output should be like
if I select by condition where A=2
my output should be
2
1
3
7
4
because all these numbers are linked with 2 how do i do this
because it is like searching the number 2 in two columns and wherever this number 2 is linked i should get all the data relevant to it.
Hope u got my point what i exactly want
Can anyone help me it is quite urgent.
Regards
Vamsi Mohani do not a concatenated data
i have a data in a table with columns A & B of same size
A B
1 2
2
3 1
4 2
5 3
6 5
7 1
8 4
9
10 8
if my where condition is 'where A=2'
my output should be
1
2
3
4
5
6
8
10
i want my query to search as loop so that it keeps on searching
for related data as in my case it is
2 is linked to 1
1 is linked to 3
3 is linked to 4
my query should keep on seaching for linked numbers till
it does not find any mathing linked numbers
and the resulted output should come in one single column
Maybe you are looking for
-
Is it possible to watch a movie in iTunes on my HDTV and still use my MacBook Pro?
I have a Mid 2010 MBP 13" and want to use iTunes to play my movies. VLC and other programs give me the option to pick which display to use. My LCD monitor or my HDTV for full screen viewing. Is there an oprion for this in iTunes? I can drag the movie
-
New to CF, Need help on new site setup
Hello, I am new to working with CF. I have a client who had his site built with CF on another host. He has decided to change hosting companies so we transferred all files from the old host to the new host, we did not make any changes to any of the
-
Apple mail not showing PDFs - just a blue box with question mark
Hi all, For some weird reason my Mail is now showing PDFs as blue box with a "?" in it... not the PDF icon.. Only happened since the Mavericks upgrade. Anyone come across this or got an answer? Thanks Rob
-
When i am tring to insert the option Utilities- Insert Web Dynpro Script
When i am tring to insert the option Utilities->Insert Web Dynpro Script I am getting the error like Error when inserting webdynpro script thats it. Can you please help me in this.
-
Pop up menu into dreamweaver.
I have my hotspot with pop up menu etc, bvut how do i export it to dreamweaer so that it works. Please help.