OBIEE calculation betn 2 tables
I have 2 tables one above another in obiee dashboard.in that thre are 3 columns cl 1. col2 for 2 tables respectively. I want third column to be comman in 2 tables with their seprate total tablewise and grand total altogether like balance sheet
Thanks in advance
Edited by: [email protected] on Jun 3, 2010 5:33 AM
Edited by: [email protected] on Jun 3, 2010 5:34 AM
two tables means two requests joining by union request?
if so ref here
how to Make a report from two cubes
Similar Messages
-
Hi All- I've the following table "Count"
Year Period Pd Start Dt Pd End Dt Count1 Count2 Count 3
2012 Period 05, 2012 25-APR-12 29-MAY-12 10779455 7557757 0
2012 Period 06, 2012 30-MAY-12 26-JUN-12 11056981 7750255 0
2012 Period 07, 2012 27-JUN-12 24-JUL-12 11328596 7940012 0
2012 Period 08, 2012 25-JUL-12 28-AUG-12 11678538 8182974 0
2012 Period 09, 2012 29-AUG-12 25-SEP-12 11951574 8372835 0
2012 Period 10, 2012 26-SEP-12 23-OCT-12 12228481 8567254 0
2012 Period 11, 2012 24-OCT-12 27-NOV-12 12543681 8789947 0
2012 Period 12, 2012 28-NOV-12 25-DEC-12 12791420 8964870 0
Now I want to do the following calculation on the table Count3= (Count1/Count2)*100. Can someone please help me with the SQL of this? I know this is pretty straight forward but any help is greatly appreciated. Thanks again.Hi,
It sounds like you want this:
UPDATE cnt -- COUNT is not a good table name
SET count3 = (count1 / count2) * 100
or, if you don't want to actually change the table:
SELECT year, period, pd_start_dt, pd_end_dt, count1, count2
, (count1 / count2) * 100 AS count3
FROM cnt -- COUNT is not a good table name
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.
If you're asking about a DML statement, such as UPDATE, the sample data will be the contents of the table(s) before the DML, and the results will be state of the changed table(s) when everything is finished.
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#9362002 -
Write Back from OBIEE 11g to multiple tables in DB
Hi All,
We have requirement to write-back from OBIEE 11g to multiple tables in DB.
1) Inserting a new row in report. Inserting record into multiple tables through OBIEE?
2) In report we have fields like Region Id, Product Id, Date, Quantity. Region Id, Product Id, Date are dimension fields and Quantity is Fact measure while inserting row in report does OBIEE checks Refrential Integrity Constraint during Write Back on DB.
Let me know if you need more details on this. Thanks in Advance.
Regards,
Rajkumar.Hi,
1) With regard to inserts into multiple tables, try using multiple insert tags (I haven't tried it) but I think it should work.
2) I don't think OBIEE would check referential integrity , but DB would and give you appropriate response.
Let us know how you got on...
Thanks & Regards -
OBIEE 11G - Usage Tracking - Table S_NQ_DB_ACCT
Hi
I successfully set up usage tracking in Obiee 11 and the table S_NQ_ACCT gets a lot of new records. Basically it's working.
In the nqserver.log I get some errors concerning a new table S_NQ_DB_ACCT:
[nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist
at OCI call OCIStmtExecute: INSERT INTO S_NQ_DB_ACCT (ID,LOGICAL_QUERY_ID,QUERY_TEXT,QUERY_BLOB,TIME_SEC,ROW_COUNT,START_TS,START_DT,START_HOUR_MIN,END_TS,END_DT,END_HOUR_MIN) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12).
This is an additional Usage Tracking Table which didn't exist in OBIEE 10G.
I configured the table as S_NQ_ACCT in the same place in the repositry/connection pool. Writing to this table should be possible.
Does anybody has an idea what could be wrong? Does another user fill data to this table than the user which fills data to S_NQ_ACCT?
Thank youHi
Thank you.
I use the table within the default RCU created schema. What I don't understand ist why the table S_NQ_ACCT gets a lot of records (because I set the loglevel) but S_NQ_DB_ACCT keeps empty with the error in the nqserver.log. I mean if one table works then the other should be working too? I checked also the permissions which are the same for both tables.
[2012-06-04T15:14:39.000+00:00] [OracleBIServerComponent] [ERROR:1] [] [] [ecid: 7d4f9e9d968c0bfe:-39c197c9:13773b9d89f:-8000-000000000005c768] [tid: 18e0] [nQSError: 17011] SQL statement execution failed. [[
[nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist
at OCI call OCIStmtExecute: INSERT INTO S_NQ_DB_ACCT (ID,LOGICAL_QUERY_ID,QUERY_TEXT,QUERY_BLOB,TIME_SEC,ROW_COUNT,START_TS,START_DT,START_HOUR_MIN,END_TS,END_DT,END_HOUR_MIN) VALUES (:1,:2,:3,:4,:5,:6,:7,:8,:9,:10,:11,:12).
]] -
OBIEE bypasses smaller aggregate table and queries largest aggregate table
Hello,
Currently we are experiencing something strange regarding queries that are generated.
Scenario:
We have 1 detail table and 3 aggregate tables in the RPD. For this scenario I will only refer to 2 of the Aggregates.
Aggregate 1 (1 million rows):
Contains data - Division, Sales Rep, Month, Sales
Aggregate 2 (13 milliion rows):
Contains data - Division, Product, Month, Sales
Both tables are set at the appropriate dimension levels in the Business Model. Row counts have been updated in the physical layer in the RPD.
When we create an answers query that contains Division, Month and Sales, one would think that OBIEE would query the smaller and faster of the two tables. However, obiee wants to query the table with 13 million records completely bypassing the smaller table. If we make the larger aggregate inactive, then OBIEE queries the smaller table. We can't figure out why OBIEE wants to immediately go to the larger table.
Has anyone experienced something such as this? Any help would be greatly appreciated.
Edited by: gwb on Aug 19, 2009 7:45 AMHave you try to change the sort order of the logical table source in your logical table ?
!http://gerardnico.com/wiki/_media/temp/obiee_logical_table_sources_sort.jpg!
Set the Aggregate 1 first.
Cheers
Nico -
OBIEE - Calculated Measure and Row values.
Date Dimension = Dim Date
Location Dimension = Dim Unit
Fact Table = Fact Unit Svc Capacity
The image linked below illustrates my problem.
Combined screenshots
The top screenshot is from MS Excel and shows the expected data for May 2012. Columns: Civic Campus, Nursing Units(A1, A2 and A3), Average Daily Bed Quota and Monthly Bed Quota. Average Daily Bed Quota is derived from two columns: Bed Quota / Days of the Month. Monthly Bed Quota is derived from Bed Quota(with SUM aggregation). The calculated values shown are correct.
The second, third and fourth screenshots are from OBIEE Analytics for the same time index. Columns: Year(2012), Month(May), Campus(C), Nursing Unit(A1, A2 and A3), Average Daily Bed Quota and Monthly Bed Quota. The calculated values here should match the values in the Excel screenshot. Only the A1 Nursing Unit values match.
The fifth and final screenshot is from OBIEE Analytics for the same time index. The Days of Month column was added to the Compound Layout. In this screenshot, the Average Daily Bed Quota is being calculated correctly for each unit.
The Average Daily Bed Quota expression is only calculating Nursing Unit A1 correctly. I tried modifying the expression for my Days of Month logical column. In the alternate view, with Days of Month column, I can see the desired, calculated values. I'm not certain what is causing the error.
Edited by: 968521 on Oct 31, 2012 7:44 AM
Edited by: 968521 on Oct 31, 2012 7:46 AMYou need to have 'Is Prompted' for that specific measure. I would suggest to use action links on other columns instead of metrics.
Pls mark as correct/helpful if helps -
OBIEE- Calculating Min and Max Values
Hi Friends,
I have an Issue with regards to calculating Min/Max Values.
In my Data base we dont have Message Count. So we created a Logical column in BMM Layer called "Message Count" based on the column "Out/In No" i.e by creating count of it i.e (Count(out/in no)) in BMM
To calculate Inbound Messages we writing -- filter(Message count using messagetype ='i') at report level
To calculate Outbound Messages we writing -- filter(Message count using messagetype ='o') at report Level
To calculate Total Messages we writing----- "Message Count".
But Now we had an issue to calculate "Min Inbound/Max Inbound/Min Outbound/Max Outbound/Avg In/Avg Out" types of Messages.
To make it clear definition for MIN and MAx is Like This.
Say Ravi received(Inbound) messages 2
Say Roy received(Inbound) messages 5
Say Kiran received(Inbound) messages 11 on a particular date.
So for that particular date Min Inbound is 2
So for that particular date Max Inbound is 11
and Avg Inbound will be (2+5+11)/3
On this basis we have to implement it in OBIEE. For any more clarifications please reply to my thread.
Please reply to my Issue ASAP as it is critical and I am out of time.
Thanks in Advance.
RegardsHi,
Do you mean to ask minimum stock in a plant and maximum stock in a plant over a period of time?
Due to receipts stocks flows in to the storage location of a plant. May be in one period there will be less stock or in one period there will be maximum stock.
May be history tables like MBEWH or MARDH or the report MC.9 ( you need to provide the period as input) etc for your case.If this is not your requirement please reply back.
Regards -
OBIEE Error while importing table from database
Hi
I am getting the following error when i am trying to import table from database.
[nQSError: 16001]ODBC error state: IM004 code:0 message:
[Microsoft][ODBC Driver Manager] Driver`s SQLAllocHandle on SQL_HANDLE_ENV failed.
Any idea y such error.
Thanks and Regards,
AndyLooks like an error in the ODBC driver, not OBIEE as such.
Have you tried googling it?
Can you post details about your OS and DB. -
Calculation operations on table
Hi all,
Is there any way to identify calculation operation on column of table in CREATE TABLE statment. the arguments of operation it will take it from other table columns using SQL.
e.g: x=y+z where y in table A and z in table B
please help.
regards,
MonaAs William was noting, you can do a calculation form more than one table at the time you create the table. But, those values in your new tbale will not change if the values in table_A and table_B (which were used in the calculation) change later.
Maybe you were asking about another feature, new for 11g, whch allows you to create a virtual column. It permits you to create a column in a table which is entirely dependent on one or more other columns in the same table. When the values in those dependent coloumn(s) change, the virtual column changes, too. But: a virtual column can be based only on fields in the same table - you cannot reference other tables in the calculation. -
Percentage calculation in pivot table per row
Hello all,
I do calculate two fields in a pivot table. First calculated field is the # of activities per user (standard SoD reporting field). Second calculated field is the # of activities per user with a certain classification (customized pick list field that is converted in a from a text value to a integer value ==> CASE WHEN Activity.Type = 'Call' THEN 1 ELSE 0 END).
In the pivot table I do show both vlaues as a sum. I would like to calculate the percentage per row per user.
Example:
User - # activities - # calls - percentage
User XY - 80 - 40 - 50%
Thanxs for your help
Elmarhave you # Call column look like
sum(CASE WHEN Activity.Type = 'Call' THEN 1 ELSE 0 END) -- column2
create the percentage column with # activities / column2
under the column property of the percentage column --> Data Format -->Treat Numbers As --> percentage.
leave the Aggregation Role as default on all columns.
Hopefully, I didn't miss anything.
Shilei -
F.47 Interest calculation on which table these values will be store
Hi Team,
I have query regarding Vendor arrear interest calculation after executing the f.47 it will save in sessions but before executing the session i want the print the form. For this purpose i want information after executing the f.47 these values are stoerd in which table kindly help me on this.
Thanks and Regards,
Nauma.Hi,
For every tranasaction code there will be different tables related to that ,so the valuse will be stored in different tables.
These are the tables releated to This tcode are
t056, t056d, t056u, kna1, knb1, bsid, bkpf, bseg, bsega, blntab, lfa1, lfb1, bsik, tcurx, *bseg, *bkpf, itcpo, t033e, ikofi, t005, ttxd, b0sg, t056a, t056b, "T056K, t056p, t056l, t056t, t047i,
If you want in detail what are the field inserted in this table and check run this program RFKUZI00 and check here all the tables and fields
regards,
Santoshkumar -
OBIEE to properly query tables in target schema using "Mixed_Case" names
We encounter the following error when using the BI Administration tool (to update a row count of a physical table) or the Analysis tool (to run a query) 11g against our target schema:
View Display Error
Odbc driver returned an error (SQLExecDirectW).
Error Details
Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 17001] Oracle Error code: 942, message: ORA-00942: table or view does not exist at OCI call OCIStmtExecute. [nQSError: 17010] SQL statement preparation failed. (HY000)
SQL Issued: SELECT 0 s_0, "OTM"."Cheese"."Cheese" s_1 FROM "OTM" FETCH FIRST 65001 ROWS ONLY
The reason for this error seems to be that our target schema contains tables that have quotes in the name when the table is created, which I understands enforces the preservation of letter case-- in this case Mixed_Case names. Since this is not "our own" application, we don't really have any control over how the schema is created or the table/views named. Interestingly enough, the table appears in the BI Administration with the expected columns though the querying for rows count and data fails.
One way we've worked around this is to manually create a VIEW of the table of interest in the target schema using all capitals. This works, but seems unnecessarily messy, especially if we are interested in using a VIEW that is already created as part of the schema.
I have found the following various discussions about setting the NQSConfig.ini file on line, but changing the value and restarting the OBIEE server doesn't seem to make a difference.
# Case sensitivity should be set to match the remote
# target database.
CASE_SENSITIVE_CHARACTER_COMPARISON = ON;
Are there other ways to get OBIEE to recognize mixed-case table names?BI Admin: Physical / Database / Features tab / (scroll to bottom or use Find) IDENTIFIER_QUOTE_CHAR: set this to a double quote: "
-
BYTES calculation on Internal table
Hi Experts,
How to find out the BYTES on internal table.
EG: itab having the single filed as a string and total character is = 9020370.
Please provide me any functional module or calculation formula.
Thanks in Advance.
RajuHi,
To findout how much memory internal table occupy choose
1,Goto 2. Display Condition 3,Memory Usage
Choose change setting to display a window,in which you can use the inernal table button.
I hope this information is useful to you .
Thanks and Regards
Akhilesh Singh -
I am creating a new timesheet Which uses a table with a add time/remove time buttons.
The basic table has a Time In row and a Time Out row. In the footer row Itotal each day. That is no problem as i am using the same script I use in other forms.
The problem occurs is when you click the Add Time button and now another instance of the Time In and Time Out rows are added.
How do I now calculate that time and add the 2 together. I can add up to an additional 2 instances. Below is my script for just calculating the basic time for Sunday.
Thanks,
Craig
var vTime1 = Times.TimeIn.in1Sun1.rawValue;
if (vTime1.length == 4 && vTime2.length == 4) {
var vTime1Minutes = parseInt(vTime1.substring(0, 1))*600 + parseInt(vTime1.substring(1, 2))*60 + parseInt(vTime1.substring(2, 4));
var vTime2Minutes = parseInt(vTime2.substring(0, 1))*600 + parseInt(vTime2.substring(1, 2))*60 + parseInt(vTime2.substring(2, 4));
this.rawValue = (vTime2Minutes - vTime1Minutes)/60;
var vTime2= Times.TimeIn.out1Sun1.rawValue;Hi,
This is the forum to discuss questions and feedback for Microsoft Office, I'll move your question to the Power Pivot forum
http://social.technet.microsoft.com/Forums/sqlserver/en-US/home?forum=sqlkjpowerpivotforexcel
The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share their knowledge or learn from your interaction with us. Thank you for your understanding.
George Zhao
TechNet Community Support -
Calculated non-base table field in a tabular form
I am struggling with creating a non-base table calculated field in a tabular form in ApEx 3.1
Can you point me in the right direction
I thought this would be fairly easy to do, but I cant work out how to do it
Requirements
1) Tabular Form based on a table with QTY and PRICE columns
2) TOTAL is a non-base table field, based on QTY * PRICE
3) If the Qty or Price changes, the TOTAL should be re-calculated
Example
QTY PRICE TOTAL
=== ===== =====
3 5 15
10 50 500
20 3 60
Environment
ApEx 3.1, Oracle 10 and Oracle 11 databases
I recommended to upgrade to a newer version of ApEx but the request was rejected so Im stuck with 3.1Thanks, but its not the solution that I am after
I am looking for a solution that will ...
1) not require the calculated value TOTAL to be stored in the table
and 2) re-calculate the TOTAL when I modify the dependent values (QTY and PRICE) before I save the changes to the database
I am still looking for a solution if anyone can help
Maybe you are looking for
-
LogMiner Viewer in the Enterprise Manager 10g ??
Does somebody know if there is LogMiner Viewer in the Enterprise Manager 10g? How could I do to work with this tool ? Thanks
-
Qosmio X305 will only boot in safe mode or when the graphics card disabled
Hi All I am having a very concerning issue with my laptop (Toshiba Qosmio X305). It will only boot in safe mode or if I disable the graphics card. Awhile back I upgraded the drivers for the nVidia 9800M GTX from the nVidia website, it worked fine for
-
Creating a MaxLStatement to call a report script
I created a MAxl statement to call a report script to create a text file ouput. here's the syntax I am using export database appname.databasename using report file '\\\\servername\\dir\\Reportsc.rep' to data_file 'D:\\Hyperion\Essbase\\report.txt' Wh
-
Option for Creating Photshop File in Premiere Pro CS6 is grayed out
Inside of Premiere Pro CS6 (Windows version), when I try to select File > New > Photoshop File... the option is grayed out. I have the Project panel selected and have Photoshop CS6 running when I attempt this. Anyone have any ideas?
-
Hi I have 2 questions to check with you on MRBR. Q1 - why there are invoice shown in this transaction screen as blocked? even though these invoices have been paid in FI side? Q2 - how to make these invoice to disappear on the list in MRBR coz it have