Pivot Mismatch data
Hi
I am using 11g and 10g.When i matching 10g and 11g both not matching.
But both same prod db only.I have one pivot table report.In that report have the 4 dim and 2 measurs.
Dim1:"MAP - ACTIVITY LIST"."ORDERING ID"
Dim2:"MAP - ACTIVITY LIST"."ACTIVITY NAME"
Dim3:"MAP - ACTIVITY LIST"."VOLUME DEFINITION"
Dim4:"MAP - ACTIVITY LIST"."STANDARD ACTIVITY RATE (SAR)"
Mea1:SUM("FACT- AGENT FF VOLUME"."FF VOLUME") / COUNT(DISTINCT "FACT- AGENT FF VOLUME".BUSINESS_DATE BY "FACT- AGENT FF VOLUME"."COUNTRY CODE", "DIMENSION - LOCATION".DEPARTMENT)
Meas2:
SUM("FACT- AGENT FF VOLUME"."FF VOLUME" / CAST("FACT- AGENT FF VOLUME"."STANDARD ACTIVITY RATE (SAR)" AS DOUBLE)) / COUNT(DISTINCT "FACT- AGENT FF VOLUME".BUSINESS_DATE BY "FACT- AGENT FF VOLUME"."COUNTRY CODE", "DIMENSION - LOCATION".DEPARTMENT)
In that report 4 column in rows and 2 in measure and i set grand total.
1.When i remove pivot table grand total then my measure values showing correct values.
2.When i add grand total in pivot table it shows in incorrect values.
3.Similarrly when i add grand total but my measure value is single(i removed 2nd measures) then also fine.
4.When i add 2 measure and grand total then only data mismatching.
Dim1:"MAP - ACTIVITY LIST"."ORDERING ID"
Dim2:"MAP - ACTIVITY LIST"."ACTIVITY NAME"
Dim3:"MAP - ACTIVITY LIST"."VOLUME DEFINITION"
Dim4:"MAP - ACTIVITY LIST"."STANDARD ACTIVITY RATE (SAR)"
Mea1:SUM("FACT- AGENT FF VOLUME"."FF VOLUME") / COUNT(DISTINCT "FACT- AGENT FF VOLUME".BUSINESS_DATE BY "FACT- AGENT FF VOLUME"."COUNTRY CODE", "DIMENSION - LOCATION".DEPARTMENT)
Meas2:
SUM("FACT- AGENT FF VOLUME"."FF VOLUME" / CAST("FACT- AGENT FF VOLUME"."STANDARD ACTIVITY RATE (SAR)" AS DOUBLE)) / COUNT(DISTINCT "FACT- AGENT FF VOLUME".BUSINESS_DATE BY "FACT- AGENT FF VOLUME"."COUNTRY CODE", "DIMENSION - LOCATION".DEPARTMENT)
Could you please let me know how can i fix this issue.Where is the problem.I an not able to analysis where is the problem.(If required i can post 2 sql queries without gran total and after grand total)
Thanks
Gram
Can you try with out cast in the expression and with *1.0 as in the below
SUM(("FACT- AGENT FF VOLUME"."FF VOLUME"*1.0) / "FACT- AGENT FF VOLUME"."STANDARD ACTIVITY RATE (SAR)") / COUNT(DISTINCT "FACT- AGENT FF VOLUME".BUSINESS_DATE BY "FACT- AGENT FF VOLUME"."COUNTRY CODE", "DIMENSION - LOCATION".DEPARTMENT)
Similar Messages
-
Mismatched data for "Created By" in generated Purchase Requisitions
Hi,
Just wanted to ask question to all gurus that, I see some mismatched data for ‘created by’ for system generated Purchase requisitions. As if I do MRP run using MD40(MPS scheduling run) then system is showing PR created by 'MRP controller' but if I run MRP using MD41(single item multi level), then system is showing the user ids name(the person on whose id MRP run is executed) is showing in the PR.
As both the MRP runs being executed in the same user id, then there should not be such kind of diffrent data. Due to this mismathced data we are gettting some difficulties in the reporting.
Thanks in advance.
Regards
AmitHi!
It's solved. The mistake was on the connection of the tables:
BUT000 - BUT020 - ADRC
Thanks and regards,
Mon -
Hi.
I was trying to make a simple crosstable report with this structure:
----------Name
ID-------Description
Example:
---------Name1------------Name2-------------Name3
ID1---Description1
ID2----------------Description2
ID3--------------------------------- Description3
But i can't, because it only appears numeric functions for pivot table data
How can i configure pivot table? Why is defined the pivot table data as a numeric field with functions summation, count, ......? Can't i show plain text of the description?
Edited by: user3284194 on 18-abr-2013 4:48Hi,
Try increasing the rangeSize of the iterator to some value like 150?
-Arun -
Need help to pivot the data with hierarchy
Dear Team,
I have hierarchical data in the table as shown below
SQL> Create Table t As
2 (
3 Select 97250528 col1, 'TSD' col2, 97250528 col3, 'WAV' col4 From dual Union All
4 Select 75020160 , 'ASD' , 97250528 , 'TSD' From dual Union All
5 Select 69150832 , 'PA' , 75020160 , 'ASD' From dual Union All
6 Select 49150538 , 'DB' , 69150832 , 'PA' From dual Union All
7 Select 49150538 , 'WAV' , 49150538 , 'DB' From dual Union All
8 ------------
9 Select 97251520 col1, 'TSD' col2, 97251520 col3, 'WAV' col4 From dual Union All
10 Select 75020689 , 'ASD' , 97251520 , 'TSD' From dual Union All
11 Select 69151039 , 'PA' , 75020689 , 'ASD' From dual Union All
12 Select 49150672 , 'DB' , 69151039 , 'PA' From dual Union All
13 Select 49150672 , 'WAV' , 49150672 , 'DB' From dual
14 );
Table created
SQL> select *
2 from t;
COL1 COL2 COL3 COL4
97250528 TSD 97250528 WAV
75020160 ASD 97250528 TSD
69150832 PA 75020160 ASD
49150538 DB 69150832 PA
49150538 WAV 49150538 DB
97251520 TSD 97251520 WAV
75020689 ASD 97251520 TSD
69151039 PA 75020689 ASD
49150672 DB 69151039 PA
49150672 WAV 49150672 DB
10 rows selected
I am using connect by prior clause to get the data in correct order.
below is the SQL i am using..
SQL> Select Level lvl,
2 col3,
3 col4
4 From t
5 Start With col3 In ('97250528','97251520')
6 And col4 In ('WAV')
7 connect by Nocycle Prior col1 = col3
8 And Prior col2 = col4;
LVL COL3 COL4
1 97250528 WAV
2 97250528 TSD
3 75020160 ASD
4 69150832 PA
5 49150538 DB
1 97251520 WAV
2 97251520 TSD
3 75020689 ASD
4 69151039 PA
5 49150672 DB
10 rows selected
The data i am getting is correct one. However i want output in the following format..
WAV TSD ASD PA DB
1 97250528 97250528 75020160 69150832 49150538
2 97251520 97251520 75020689 69151039 49150672
When i use max + case statement i am getting in-correct results as there is no group by key
Kindly give me some hints or tips to pivot the data or should i go to PL/SQL to pivot the data.
Regards
nicHi Dbb,
Connect_by_root did the trick i guess
Select max(Case When col4 = 'WAV' Then col3 End) wav,
max(Case When col4 = 'TSD' Then col3 End) tsd,
max(Case When col4 = 'ASD' Then col3 End) ASD
From
Select CONNECT_BY_ROOT col1 col,
col3,
col4
From t
Start With col3 In ('97250528','97251520')
And col4 In ('WAV')
connect by Nocycle Prior col1 = col3
And Prior col2 = col4
Group By col;
WAV TSD ASD
97250528 97250528 75020160
97251520 97251520 75020689
Let me execute this over bulk-sets of data...
thanks for this pointer and hint.. -
Updating pie graph with the pivot table data.
Hi:
I have two components, the first is a pivot table and second
of them is the pie graph, the two components were created in JDeveloper 11g
on the same page through the same view object, this view object was created through
a query.
I need to update the pie graph through the pivot table data.
ie, according to the data containing on the pivot table, to update the pie graph.Hi,
BPM can be used to validate and update tables. You can have a transformation step in BPM to validate, and either a JDBC or RFC adapter to update XI table...depending on if the table is an ABAP table or table create outside of ABAP using the vendor's dba tools.
As for sending file based on counter or timestamp in the name, you can develop a simple adapter user-module using java which can retrieve the file name(s) being processed. If the name satisfy the rules you have, then proceed, or else terminate the processing in the adapter.
Regards,
Bill -
How to prevent Pivot Table Data Source from being changed automatically?
I have an excel file that contains a Pivot Table that references a table within the workbook (Data Source = "MyTable"). When I save the file and copy it, the copy contains a reference to the original file. Instead of displaying, "MyTable",
it shows "OldFilename!MyTable" where OldFilename is the name of the original file, not the current file.
How do I prevent this from occurring. It is only doing this on my current machine, if I perform these steps on a different machine, the problem does not occur and the Data Source property stays the same as it should.
What setting(s) do I change to fix this problem?
Thank you in advance for your help!
MichaelHi Michael,
How about the issue now, is it solved?For the 'data model' feature,please refer to:
http://blogs.office.com/2012/08/23/introduction-to-the-data-model-and-relationships-in-excel-2013/
let us know if you have any additional questions or concerns.
Best regards,
Wind -
Greetings. I have problem with data fetching in pivot table.
I can see only 25 rows in it. Any ideas with my problem.Hi,
Try increasing the rangeSize of the iterator to some value like 150?
-Arun -
Pivot table data source keeps referring to old file name
Hi,
I am using Excel 2013 on Windows 8
I create a table, and insert a pivot table that use this table as data source
I close the excel and rename the file from "myfile.xlsx" to "newfile.xlsx, and then open it again
When trying to refresh my Pivot Table, I get the following Error:
"We couldn't get the data from 'Table1' in the workbook 'C:\myfile.xlsx' Open this workbook in Excel and try again."
i.e. it is still looking for table using the old file name.
I need to update the file every week, so having to manually go back and change source file name for every pivot is very time consuming and painful for me :-(
Please investigate and advise how to fix this ?Hi,
Based on my tested in my environment (Window 8.1 & Excel 2013), the error message pop up when a pivot table using an external data source. If you use the table as external data source, pivot table uses OLEDB to connect it, it'll refresh failed after
you changed the file name. It's by design.
Then, we may try the two workaround to avoid it:
1) Keep the data source table and pivot table in the same file.
2) Add the table to a connection, steps:
Click Data tab>Connection> Add> Browse more> Choose the file.
Please try to change in new file in property before you refresh the Pivot table.
Regards,
George Zhao
TechNet Community Support
It's recommended to download and install
Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
programs. -
Filter Pivot table data based on custom calculated item in obiee 11g
Hi,
I have requirement as below. Please provide your valuable suggestions
Please note that "Diff" is the calculated item using the formula "$2-$1"
Pivot table View:
Sales ID 20120207 20120220 Diff
1 0 0 0
2 100 0 -100
3 100 200 100
4 100 100 0
5 200 300 100
6 0 0 0
Requirement:
1) Filter rows where measure for both Effective dates(20120207 & 20120220) is equal to 0
2) filter rows where measure for effective date 20120220 is equal to 0 & measure for effective date 20120207 is not equal to 0
3) filter rows where diff is equal to 0
expected Output:
Sales ID 20120207 20120220 Diff
3 100 200 100
5 200 300 100
Please provide an workaround to implement in OBIEE 11.1.1.6.0
Thanks
Edited by: Nagendran Rajendran on Jul 19, 2012 11:42 AM
Edited by: Nagendran Rajendran on Jul 19, 2012 11:54 AMHi,
Many thanks for your Response.
Actually, I have only three columns in the *"Selected Columns"* Section of Answers and they are
Opportunity Id Effective Date Current
Effective Date is based on Dashboard Prompts with 2 Presentation Variables say Effective Start & End Date and that has been used in answers to have a Revenue Variation report for these 2 dates ONLY.
So, As per my Requirement,
1) I have created a Pivot table by having Opportunity ID in Rows Section, Effective Date in Columns Section and Current in Measures Section
2) Created a Calculated Item for Revenue Difference using the formula $2-$1
So, Everything worked fine so far.
and Next Requirement is to filter the rows from the Pivot results which i have mentioned in the post and they are
Pivot table View:_
Sales ID 20120207 20120220 Diff
1 0 0 0
2 100 0 -100
3 100 200 100
4 100 100 0
5 200 300 100
6 0 0 0
Requirement:_
1) Filter rows where measure for both Effective dates(20120207 & 20120220) is equal to 0
2) filter rows where measure for effective date 20120220 is equal to 0 & measure for effective date 20120207 is not equal to 0
3) filter rows where diff is equal to 0
expected Output:*
Sales ID 20120207 20120220 Diff
3 100 200 100
5 200 300 100
Please provide an workaround to implement in OBIEE 11.1.1.6.0
Edited by: Nagendran Rajendran on Aug 8, 2012 4:53 PM -
Have 2010 Excel Workbook with Named Tables and child Pivot Tables and several other support sheets. I want to make a 'working' file -- with only copies of these Named Tables and Pivot Table
structures, and then I would populate the copied Tables with the 'real data' and crunch the numbers I need in this new working file.
I need to use VBA for this transformation (which I've tried).
Problem -- Upon copying the Named Table [Table1] and Pivot Tables [Pivot11] and [Pivot12] to the new stand-alone file, WORKING.xlsm, the Pivot Tables only recognize the Tables in the source file (I.e. the data source for Pivot11 is C:\...\'SOURCE.xlsm'!Table1),
and not simply Table1 in the new stand-alone file.
Longhand changing of the Data Source for each Pivot Table [Table1] from 'C:\...\SOURCE.xlsm'!Table1 to simply Table1 seems to be disallowed from all angles.
Anyone have clean VBA code that will copy the parent Named Table and its child Pivot Tables to an external .xlsm file without the absolute links back to the original source file ?Hi Jon,
How do you change the data source?
Base on my test, we can change the data source by using this code below:
ActiveSheet.PivotTables("PivotTable1").ChangePivotCache ActiveWorkbook. _
PivotCaches.Create(SourceType:=xlDatabase, SourceData:= _
"[path]!Table4" _
, Version:=xlPivotTableVersion15)
To copy and paste the Named Table and Pivot Tables, we could use
Range.Copy and
Range.PasteSpecial method.
To check whether the Pivot Tables parent is specify Named Table, we could check
PivotTable.SourceData property.
Regards
Starain
We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
Click
HERE to participate the survey. -
Ellipsis jetpack mismatch data usage with alerts
Ok, I have the ellipsis jetpack and for the past couple months I've had varying data usage issues...
This month, it mysteriously used more than 2 gb of data minimum without anything to my knowledge, being connected to it.
So I up the data and just dismiss it as the PlayStation 4 bring on and "the crew" coming out, since it may have updated content while I was sleeping for the other 9 gb.
But this morning, I have an email saying I've used 90% of my data allowance (of 20 gb). email time is 1:52 am, yet both the website and the jetpack show the data usage as of 6:18 am today 12/13 to be 15.3 gb (website says like 15.336).
This is frustrating to say the least, and really makes me like Verizon is trapping me into paying more money!
I also have family guard on the device and it's currently set to not allow more than 17 gb. It's been setup that way for probably a week now.
Also, before I upped the data cap from 10gb, I got two alert emails for each alert level, hours apart.
The first 50% was around probably 10 am, the second was late that night, after eight, I believe. Right around that same time, I got a 75% followed by 90, and later, another each of 75 & 90.
Imagine the frustration! Especially now that I'm paying an extra 4.99 a month to protect myself from going over the usage limit!
I was playing a ps4 game last night online (the crew), but didn't download anything outside of that, and watched a video or two on the net, both were short videos. All worked fine, and didn't have the email alert until this morning when I woke up.
Also: this is my first post, done from a tablet, so I'm sorry if it goes to wrong placeSHARED DATA DETAILS
Cycle Ends: 12/15/2014
Total Shared Data Used
15.366GB /20GB
Estimate as of 12/13/2014 12:51 PM
And yet I have an alert that says I've used 90%.. Copy/pasted below
Fri Dec 12 2014 11:52:56 PM from 900080002020
Verizon FamilyBase Msg: You have used about 90% of your data limit. When you reach your limit, your data use may be restricted for the rest of the cycle.
I have a 20 GB plan. 90% of 20 GB is 18 GB. -
Export Pivot table data to a Excel file
Hi All,
I am using OBIEE 10.1.3.
In my asnwers I am displaying the Pivot view and want to export the results to a excel sheet.The dowlnoad option is not coming for Pivit view.
In case of compound view I am able to see the download option to export to excel sheet.
Please suggest.
thanksThe Compound Layout has a purpose and that is to display your report with the download optons you can "turn on," including "download to Excel." To answer your question of somehow enabling a "download link" from the Pivot Table view, sorry, you can't do that. However, here's what you can do:
In Answers, use the Compound Layout view to download the pivot table. If the Compound Layout view is used for other purposes and you need only the pivot table view to download (as a report designer) and you really need this functionality, then create a duplicate of the Compound Layout and put only your pivot table in it. Now you can download.
If you are talking about dashboards, then use the Properties>Report Links from the Properties button of the report and check off "download." Again, if your Compound Layout is used for other purposes (and requires other views in it), then drag the report into another section of the dashboard and in Edit Dashobard, click on the Properties of the report>Show View>Compound Layout:2 that you created in the previous paragraph. Enable downloading on this and you can download only the Pivot table. -
Write SQL query to transform into Pivot table data
Hi Guru,
How to write sql to transform this data
DATADATE EQPID SUCCESS_RATE
2007-06-01 AA-01 89.796
2007-06-01 AA-02 89.655
2007-06-01 AA-03 92.683
2007-06-01 AA-04 96.61
2007-06-02 AA-01 80.645
2007-06-02 AA-02 87.5
2007-06-02 AA-03 95.556
2007-06-02 AA-04 98.551
To the below table:
DATADATE AA-01 AA-02 AA-03 AA-04
2007-06-01 89.796 89.655 92.683 96.61
2007-06-02 80.645 87.5 95.556 98.551
Grand Total 170.441 177.155 188.239 195.161
Thank you.
Regards,
Kellylike this?
SQL> with t as (
2 select '2007-06-01' DATADATE, 'AA-01' EQPID, 89.796 SUCCESS_RATE from dual union all
3 select '2007-06-01', 'AA-02', 89.655 from dual union all
4 select '2007-06-01', 'AA-03', 92.683 from dual union all
5 select '2007-06-01', 'AA-04', 96.61 from dual union all
6 select '2007-06-02', 'AA-01', 80.645 from dual union all
7 select '2007-06-02', 'AA-02', 87.5 from dual union all
8 select '2007-06-02', 'AA-03', 95.556 from dual union all
9 select '2007-06-02', 'AA-04', 98.551 from dual
10 )
11 select datadate
12 , sum(decode(rn,1,success_rate,0)) "AA-01"
13 , sum(decode(rn,2,success_rate,0)) "AA-02"
14 , sum(decode(rn,3,success_rate,0)) "AA-03"
15 , sum(decode(rn,4,success_rate,0)) "AA-04"
16 from (
17 select t.*, row_number() over(partition by datadate order by eqpid) rn from t )
18 group by rollup(datadate);
DATADATE AA-01 AA-02 AA-03 AA-04
2007-06-01 89.796 89.655 92.683 96.61
2007-06-02 80.645 87.5 95.556 98.551
170.441 177.155 188.239 195.161NH -
How to update ADF VO object to refresh the data in ADF Pivot table
I need to know how to update the View object so that the date in pivot table is refreshed/updated/filtered.
here are the steps I performed to create ADF pivot table application using VO at design time.
1) created a collection in a Data Control (ViewObject in an ApplicationModule) that provides the values I wanted to use for row and column labels as well the cell values (Used the SQL query)
2) Dragged this collection to the page in which wanted to create the pivot table
3) In the pivot table data binding editor specified the characteristics of the rows (which attribute(s) should be displayed in header), the columns (likewise) and the cells.
Now, I have a requirement to update/filter the data in pivot table on click of check box and my question is how to I update the View object so that the date in pivot table is refreshed/updated/filtered.
I have got this solution from one of the contact in which a WHERE clause on an underlying VO is updated based upon input from a Slider control. In essence, the value of the control is sent to a backing bean, and then the backing bean uses this input to call the "filterVO" method on the corresponding AppModule:
but, I'm getting "operationBinding" object as NULL in following code. Please let me know what's wrong.
here is the code
Our slider component will look like
<af:selectBooleanCheckbox label="Unit" value="#{PivotTableBean.dataValue}"
autoSubmit="true" />
The setDataValue() method in the backing bean will get a handle to AM and will execute the "filterVO" method in that, which takes the NumberRange as the input parameter.
public void setDataValue(boolean value) {
DataValue = value;
BindingContainer bindings = getBindings();
OperationBinding operationBinding = (OperationBinding)bindings.getOperationBinding("filterVO");
Object result = operationBinding.execute();
The filterVO method in the AMImpl.java will get the true or false and set the where Clause for the VO query to show values.
public void filterVO(boolean value) {
if (value != null) {
ViewObjectImpl ibVO = getVO1();
ibVO.setWhereClause("PRODUCT_TOTAL_REVENUE(+) where rownum < 10");
ibVO.executeQuery();
}Did you define a filterVO action in your pagedef.xml file?
You might want to read on how to access service method from a JSF Web Application in the ADF Developer Guide for 10.1.3 chapter 8.5 -
Best practice for deleting data based on mismatch
I have two tables which share the same key columns (one is an extension table of the other, basically)
INVPARTINSTOCK_C is current data
INVPARTINSTOCK_D is a date extension table
I want to remove all data in D which is not in C
I can gather a list of mismatched data by using:
select
d.Contract,
d.Part_No,
d.Location_No,
d.Lot_Batch_No,
d.Serial_No,
d.Eng_Chg_Level
from invpartinstock_d d
MINUS
select
c.Contract,
c.Part_No,
c.Location_No,
c.Lot_Batch_No,
c.Serial_No,
c.Eng_Chg_Level
from invpartinstock_c c but how do I apply that to a DELETE FROM INVPARTINSTOCK_D WHERE... ?
Thanks1) It depends on, at least, the data volumes we're talking about, but
DELETE FROM dtable
WHERE (column_list) IN (your_minus_query)should be functionally correct. Probably more efficient would be
DELETE FROM invpartinstock_d d
WHERE NOT EXISTS(
SELECT 1
FROM invpartinstock_c c
WHERE c.contract = d.contract
)2) Why isn't there a foreign key relationship that prevents this sort of mismatch in the first place?
Justin
Maybe you are looking for
-
Installing Solaris 10 on X2100 with 1TB drive
I am trying to install the latest Solaris 10 (X86) on an Sun X2100. The installation fires up fine until it tries to set up the hard drive and then it fails with the following error message: FILE SYSTEM CREATION FAILED COULD NOT CHECK OR CREATRE SYST
-
Should Output parameters always be declare at the beginning of the Stored Procedure?
Should Output parameters always be declare at the beginning of the Stored Procedure?
-
Hi sap gurus here below am mentioning my requirement details . automate the creation of sales order documents in sap ecc using data in orders5 idocs, mapped from data transmitted by customers via edi are from other outside systems. this interface mus
-
Just lost 650 songs....
Hello everyone, I could really use someone's help this am...I am sitting here in a bit of a panic as I just lost over 650 songs when I just installed the software onto my new computer for my new iPod. I had the ipod mini previously and just got the o
-
I am trying to figure out how to build a mobile app using Jquery Mobile on the client side and Coldfusion and MySQL on the server side. It seems very difficult to find a basic example. Can someone please show me a tutorial that shows how to insert