Aggregation problem
Hi experts.
I've got 3 tables A, B and C.
Columns in A: "Konto", "Klient", "Saldo"
Columns in B: "Konto", "Klient", "Rach", "Saldo"
Columns in C: "Konto", "Rach", "Kwota"
Physical diagram A -<-B ->- C
Business model diagram A -<- B ->- C
Logical table source: A for table A, B for table B and C for table C.
I add logical table source C to table B, and add one column "Suma Kwota" with aggregation rule: sum.
Know when i create report with columns
C."Konto", B."Suma Kwota"
everything works ok, but when i add column from table A or B for example
B."Klient", C."Konto" , B."Suma Kwota"
then column "Suma Kwota" return null values for all report.
Why have i null values?
Next I add table B to logical source of table C, so i have table C and B in LTS C using inner join. Know on report column B."Suma Kwota" is not null but return bad values (too high). I have joined table B and C through the columns "Konto" and "Rach".
In table C i have distinct values for column "Klient" but in table B not. So for example when i have one row for "Klient" in C then i can have 10 rows for that same "Klient" in table B. So when i have one row for table C and 10 rows for B then "Suma Kwota" is 10 time bigger.
How can I avoid this?
I can use not aggregated column "Kwota" from table C and use sum in the presentation service but i want to know why this is not working with measure.
Edited by: Ultrecht on 2009-07-30 14:15
Hi thanks for quick response. I have no time to check this today but i can write here querry that BI sends to database.
When BI returned null values.
select distinct D1.c1 as c1,
D1.c2 as c2,
D1.c3 as c3,
D1.c4 as c4,
cast(NULL as DOUBLE PRECISION ) as c5
from
(select distinct T135268.ODDZIAL as c1,
T135352.KLIENT as c2,
T135352.KONTO as c3,
T135352.RACH as c4
from
TABLE_C T135352,
TABLE_B T135268
where ( T135268.KLIENT = T135352.KLIENT and T135268.KONTO = T135352.KONTO and T135268.RACH = T135352.RACH )
) D1
When BI returned bad values (too high).
select distinct D1.c2 as c1,
D1.c3 as c2,
D1.c4 as c3,
D1.c5 as c4,
D1.c1 as c5
from
(select sum(T135352.KWOTA) as c1,
T135268.ODDZIAL as c2,
T135352.KLIENT as c3,
T135352.KONTO as c4,
T135352.RACH as c5
from
TABLE_B T135268,
TABLE_C T135352
where ( T135268.KLIENT = T135352.KLIENT and T135268.KONTO = T135352.KONTO and T135268.RACH = T135352.RACH )
group by T135268.ODDZIAL, T135352.KLIENT, T135352.KONTO, T135352.RACH
) D1
Similar Messages
-
Aggregation problem in Qery design
Hi folks,
I have the following situation:
- Characteristics as line items, shown as a hierarchie.
- KFs and Formulars in columns
I want the formulars to be calculated on the basis of a combination of two of the characteristics (the bottom two in the lines hierarchy) and then aggregated.
Exception aggregation allows me to choose "total" based on one characteristic, but not a combination of two.
One solution would be, of course, to create a new characteristic in the cube that is a combination of the two existing characteristics in question and then use this for exception aggregation. This would be a bit complicated though, as the two characteristics are in fact navigational attributes of characteristics that appear in the data source and the cube.
Therefore, I'd prefer a solution that is in the scope of query designer rather than cube design.
Any ideas?
PS: The formulars show correct values on the level of the bottom most characteristic in the lines hierarchy if I choose that characteristic for exception aggregation. The results are not correct one level up from there as I can not get the system to sum the results up along the hierarchy. Instead, they are calculated for the aggregated values of the KFs used in the formular.
Apparently the "show lines as hierarchy" function really only affects display of the lines, not calculations.Hi John,
I understood your problem. Solution is easy:
Make formula 1, exception aggregation as total , ref char as char 1
Then make another formula 2 on formula 1, exception aggregation as total , ref char as char 2.
And in the report show formula 2 and hide formula 1.
Best Wishes,
Mayank -
CostCenter Group Aggregation problem. High Priority Issue.
Hi Experts,
I have very crital issue in the report, Help needed.
I had some kind of requirement in one of the Overhead cost report, need to combine the COPA data and Costcenter(Over Head cost) data. I have a problem with Costcenter Group aggregation on the report.
I have Restricted 2-Keyfigures want to derive the 3rd Keyfigure values. I given the below exmaple of the data. In my report I just want to display the KeyFigure(KF-A,B,C). I dont want to Display the Cost Center group/Costcenter Number in my report. My report ouput will be one line. But If I removed the costcenter Group I am seeing different values of the Keyfigure C, If I display the Costcenter comng with differnt Values. I am expecting the values in the column C is 1400 but it is coming like 3600.
Please guide me how to design the Keyfigures if I want to get the value 1400 in theKeyFigre C with out Showing the Costcenter In the report.
Cost-Center Group R00048
Costcenter KF-A KF-B KF-C
10113 10 10 100
10114 20 20 400
10115 30 30 900
60 60 1400(Insted of this its comming like 3600)
Appreciate the response.
Thanks,
VenkataHi,
Check the display properties of key figure in Query Designer/Info object level.
Set the property accordingly.
I hope it will help.
Thanks,
S -
I am using OBI 11g.
Nested aggregation is not supported in some forms in the BI Server (RPD), but appears to be possible by putting the second aggr rule in an Answers column formula or pivot view column. However, I cannot get this to work. Looks like can even be done in the RPD with aggregation based on dimensions, as long as there is a standard aggregation function on the outside of the expression.
The biggest problem with any of the above techniques is the BI Server does not push the outer aggregation rule to the DB engine (the generated SQL).
In my case, consider a Referral Fact with Customer Dim and Referral Dim. I need to get # of Referrals per customer, filter that with a case statement to "bin" 1 Referral and >1 Referral, and then get # of Customers in each bin. So the first measure aggregation looks like:
Other: COUNT (DISTINCT "Referral Key")
Customer: "SUM( CASE WHEN "Referral Key" = 1 THEN 1 ELSE 0 END )"
Or the logical measure just has the COUNT DISTINCT aggregation rule and an Answers column has the CASE statement with a SUM aggregation rule. Or use CASE WHEN "Referral Key" = 1 THEN "Customer Key" END and use COUNT DISTINCT instead of SUM.
All these appear to return correct results, but they all perform the outer aggregation in the BI Server or Pivot engine instead of pushing to the generated SQL (DB engine).
I can't find any problem in the DB Features. We are using SQL Server 2010.
Thanks in advance for help.Hi AL,
here is my requirement what i have been asked to get this output result.
i have keyfigures KF1, KF2 and total KF.
three characteristics dist,inch,load.
dist-inch-load--KF1-KF2-Total KF
5---A--010-0-----10=10
5---A--120-20----20+10=30
10--B---050-0-----50
12--C---160-60----60
13--D---270-70----70
14--E---080-0-----80
15--E---120-20----20+80=100
15--E---230-30----302080=130
KF1 is the initial volume coming from the file directily.based on this keyfigure i have to calculate KF2,Total KF.
In order to calcuate KF2 and Total KF i have some conditions.which are mentioned below;
KF2---> if load=0 then KF2=0 elseif load>0 then KF2=KF1 ;
Total KF--->if load=0 then Total KF=KF2KF1 elseif load>0 then KF2=KF2KF1
How to achieve this dynamic summation.Do i have to do nested exception aggregation based on the above three characteristics. what would be the open options.please do help me. -
SQL: Aggregating Problem
Hello,
i have following problem with aggregating values with one of our tables:
For each day there is a row which contains the change to the previous day.We need now a view containing for each date of the year a subtotal from the beginning of the year . Is there any aggregating function with this functionality? Is it possible to solve this without using PL/SQL?
Example:
create table example (datum date, diff number);
Rows in the table:
insert into example (to_date('01-01-2005','dd-mm-yyyy'), -1);
insert into example (to_date('02-01-2005','dd-mm-yyyy'),1);
insert into example (to_date('03-01-2005','dd-mm-yyyy'),2);
insert into example (to_date('04-01-2005','dd-mm-yyyy'), -1);
We need following result:
'01-01-2005', -1 --(sum from 01-01-2005 to 01-01-2005)
'02-01-2005', 0 --(sum from 01-01-2005 to 02-01-2005)
'03-01-2005', 2 --(sum from 01-01-2005 to 03-01-2005)
'04-01-2005', 1 --(sum from 01-01-2005 to 04-01-2005)
Thanks for your help
Philipp
Message was edited by:
[email protected]The windowing clause may not be required, but depending on how the O/P feelas about multiple months, or years, something like this may be more accurate.
DATUM DIFF
01-JAN-2005 -1
02-JAN-2005 1
03-JAN-2005 2
04-JAN-2005 -1
29-DEC-2004 1
30-DEC-2004 2
31-DEC-2004 3
SQL> SELECT datum, SUM (diff) OVER (ORDER BY datum) diff
2 FROM example;
DATUM DIFF
29-DEC-2004 1
30-DEC-2004 3
31-DEC-2004 6
01-JAN-2005 5
02-JAN-2005 6
03-JAN-2005 8
04-JAN-2005 7
SQL> SELECT datum, SUM (diff) OVER (PARTITION BY TRUNC(datum,'YEAR')
2 ORDER BY datum) diff
3 FROM example;
DATUM DIFF
29-DEC-2004 1
30-DEC-2004 3
31-DEC-2004 6
01-JAN-2005 -1
02-JAN-2005 0
03-JAN-2005 2
04-JAN-2005 1John -
OLAPTRAIN - Measure Aggregation Problem
Hi all,
i've a great problem and i ask your help.
I've installed OLAPTRAIN schema and I've correctly generated repository file thru AWM plugin.
Once uploaded repository i've tried to make analysis with BIEE.
I've choosen Region as dimesion and Sell as misure but here i've the problem.
Here is an example of result:
Region Sell
Africa
123
456
789
123
Europe 565
575
342
As you can see, Region is correct but Sell is not aggregated correcly while in AWM data are all correct.
I've also tried to chose only dimension and they are correct.
Example:
Region Product Channel
Europe Computer Direct
Camera Direct
Indirect
So i think the problem is with Sales table facts.
Could you help me to find the problem?
Aplication Versions:
oracle BIEE 11.1.1.5.0
Administration TOOLS 11.1.1.5.0
AWM patch 11.2.0.2.0B
Thank you all very much in advance.It could be a problem with versions compatibility?
Edited by: 896514 on 15-nov-2011 15.59 -
I have three swfs/projects that are daisy chained and also put into the aggregator. The aggregated file is here.
When it gets to the end of one swf and starts the next, instead of showing the next swf correctly, it plays the audio only for a few seconds while showing a white screen and then stalls out. At that point, the controls for the movie no longer work. It looks like this when it stalls:
This behavior is the same whether the files/projects are daisy chained or not. It also did it when I used a button to launch the next file.
If I refresh the browser when it is stuck, it starts working again, but the TOC controls no longer work. You can click on a TOC entry and nothing happens.
I routinely clear the browser and flash caches when I test.
I am struggling to get the project titles to save correctly, have tried most of the save as tricks suggested here. Don't know if that is part of the problem, but suspect it is not, because the file starts playing again correctly when refreshed. Also deleted the Adobe Captivate Course Companion widget in the swf that stalls out (the only plugin), but that didn't help.
Been working all day on this one, would love some fresh ideas. Thank you!When publishing projects that will be aggregated, don't try to daisy chain them. Aggregator will look after that. Just set the Project End option in Preferences to Stop Project. After each SWF is aggregated, as soon as one project finishes playing, the next one will start.
Another tip I find useful: Don't have any objects on the very first slide in each SWF. Just make it blank and about 1 second long. Start your animation or audio etc on the second or third slide in the movie. If you want a fade-in effect, use the first blank slide as a fade in slide via the Project Start option, not the slide's own fade-in transition. The project fade in seems cleaner to me. -
Ragged Hierarchy - aggregation problem
I build dimension with Ragged Hierarchy as posted in [|http://oracleolap.blogspot.com/2008/01/olap-workshop-4-managing-different.html]
in "*Skip, Ragged and Ragged-Skip Level Hiearchies*" section.
I use scott schema for test
_1- build dimension emp with 4 levels using this data_
==> these data come from relation between EMPNO and MGR columns of EMP table
LVL1_CODE, LVL1_DESC, LVL2_CODE, LVL2_DESC, LVL3_CODE, LVL3_DESC, LVL4_CODE, LVL4_DESC
7839, KING
7839, KING , 7566, JONES
7839, KING, 7566, JONES, 7788, SCOTT
7839, KING, 7566, JONES, 7788, SCOTT, 7876, ADAMS
7839, KING, 7566, JONES, 7902, FORD
7839, KING , 7566, JONES, 7902, FORD, 7369, SMITH
7839, KING , 7698, BLAKE
7839, KING , 7698, BLAKE, 7499, ALLEN
7839, KING , 7698, BLAKE, 7521, WARD
7839, KING , 7698, BLAKE, 7654, MARTIN
7839, KING , 7698, BLAKE, 7844, TURNER
7839, KING , 7698, BLAKE, 7900, JAMES
7839, KING , 7782, CLARK
7839, KING , 7782, CLARK, 7934 MILLER
_2- build cube salary cube using this data_
EMPNO SAL
7369 800
7499 1600
7521 1250
7566 2975
7654 1250
7698 2850
7782 2450
7788 3000
7839 5000
7844 1500
7876 1100
7900 950
7902 3000
7934 1300
The total sum of salary on the top of hierarchy "KING" is 9,750$ and the correct value must be 29,025$.
I Notice that, in any node in hierachy that has childern the value of salary sum is the summation of its chiildern only without its value.
so what is the problem??EMPNO SAL
7369 800
7499 1600
7521 1250
7566 2975
7654 1250
7698 2850
7782 2450
7788 3000
7839 5000
7844 1500
7876 1100
7900 950
7902 3000
7934 1300I can see the above data and looks like you are loading some values at higher level i.e. for emp no 7566. In DWH you will be loading data at leaf level and OLAP engine does aggregation(solve) and store data at higher level. What you are seeing is correct as any node's value is equal to the sum of values of its children.
Thanks,
Brijesh -
First time to build OLAP Cube - aggregation problem
I am new to OLAP technology and i want to build first OLAP cube. i use scott schema doing:
1- build dimension on "DEPT" table with one level deptno.
2- build cube with one measure sal on "EMP" table.
Table Emp
DEPTNO SAL
20 800
30 1600
30 1250
20 2975
30 1250
30 2850
10 2450
20 3000
10 5000
30 1500
20 1100
30 950
20 3000
10 1300
table DEPt
DEPTNO DNAME
10 ACCOUNTING
20 RESEARCH
30 SALES
40 OPERATIONS
when i use maintain wizard and then view data the sum of salary is not accurate it looks like
sum
all depts 5550
accounting 1300
researches. 3000
sales 1250
operations 0
values should be
sum
all depts 29025
accounting 8750
researches. 10875
sales 9400
operations 0
why the aggregation values for departments is no accurate??Problem is visible in your below table.
Table Emp
DEPTNO SAL
20 800
30 1600
30 1250
20 2975
30 1250
30 2850
10 2450
20 3000
10 5000
30 1500
20 1100
30 950
20 3000
10 1300
There are multiple of dept no with different sal. In OLAP when you load such record then the last record comes wins. This is why if you observe then you will see the value you see is the last value getting loaded.
To resolve this you should do a group by (in emp) deptno and sum(sal). Load the records and you will see correct result.
Hope this helps.
Thanks,
Brijesh -
Keyfigure aggregation problem in BEX
Dear gurus,
I am creating a vendor performance report. In the report I will have SLA derived from formula "Goods Issued / PO Requested Qty"
The output of my report as follow
Vendor | SLA | Goods Issued | PO Qty RequestedDear gurus,
I am creating a vendor performance report. In the report I will have SLA derived from formula "Goods Issued / PO Requested Qty"
The output of my report as follow (drill down by Vendor Level)
Site....Vendor......SLA.......Goods Issue....PO Qty
101.....90203.......100%......800 CV..........800 CV
101.....90202........80%......160 CV..........200 CV
102.....90201........50%........20 CV............40 CV
102.....90199........33%........30 CV..........100 CV
Result............... ( A )
I would like to know what is the output for result row A ?
I have tried several methods of aggregation, but the output is not relevant. -
Aggregation problem in BW...
Hi,
I am facing a problem writing a formula in a Bex query.I have a calculation in a query which is
Tot = Summation((A-B)/A)
I have a jump query from this query and in the jump query i have a formula written in cell editor which is supposed to do
Formula1 = Tot/N,N is a numeric value.
Instead it is getting calcuated as follows :
Formula1 = (Summation(A)-Summation(B))/Summation(A)/N.
I am sure this is a problem of writing the formula in cell editor.Can you please help me out with this issue.
With regards,
Aks.Hi Harris,
A transport request if is BEx transport request (i.e. a request which is assigned as BEx transport request in transport connection) allows multiple users to work on same query.
Instead of deleting your request, you could assign it as a BEx transport request in transport workbench and your client can also make changes under the same request without adding him under the request. It will also be better as all the changes made to one query will be onder one request.
Please let me know if you need any more help.
Regards,
Pankaj -
Aggregation Problem on BEx Report
I have a query that I want to display key figs that will aggregate.
For example:
char -> 0DF_PREQ
char -> 0DF_PREQITM
char -> 0pur_group
char -> pr_rlsdt
char -> zprrlsta
key_fig -> 0netprice
cal_key_fig-> z_mike_test
cal_key_fig -> ckf_mike_test
z_mike_test is defined as:
general calculation: abs(date1 - date2)
aggregation: std
aggregation reference_char: 'none'
calcuate after aggregation - checked
cal_key_fig is defined as:
general calculation: z_mike_test > 40
aggregation: std
aggregation reference_char: 0DF_PREQ
When I run it I get 8 rows. The days are calculating properly, and my counter displays 1 in the ckf_mike_test column for 6 of the 8 records so I'm all happy. 0DF_PREQ is unique for 6 occurrences (i.e. one 0DF_PREQ has 3 0DF_PREQITM)
However, when I take out 0DF_PREQ I get 7 rows and my counter displays 1 in the ckf_mike_test column for 5 rows. What I expected to happen is for one row to have a 2 in it, i.e. there should have been an aggregation still by 0DF_PREQ.
What am I doing wrong?
MikeAl,
When I remove PReq# I get
Item# PurGrp Buyr POP Date PR Date Stat Date Price Days Counter
10 XYZ Doe, John 05/03/2011 10/12/2011 10/12/2011 27.96 51 1
10 XYZ Doe, John 05/03/2011 10/21/2011 10/26/2011 27.96 37 0
10 XYZ Doe, John 10/10/2011 10/10/2011 10/26/2011 27.96 37 0
10 XYZ Doe, John 10/12/2011 10/12/2011 10/12/2011 27.96 51 1
10 XYZ Doe, John 10/13/2011 10/13/2011 10/13/2011 55.92 50 1
20 XYZ Doe, John 10/13/2011 10/13/2011 10/13/2011 27.96 50 1
30 XYZ Doe, John 10/13/2011 10/13/2011 10/13/2011 27.96 50 1
I'm thinking this record:
10 XYZ Doe, John 10/13/2011 10/13/2011 10/13/2011 55.92 50 1
should be
10 XYZ Doe, John 10/13/2011 10/13/2011 10/13/2011 55.92 50 2 <-
Mike -
Aggregation Problem in DSO (Urgent)
Hello Experts,
I am loading data from PSA to a DSO where my Key is Activity type (e.g 2020, 2040, 2060, 2080). For each of the activity type I want to aggegate the gender for male/female. In the key figure for Zmale I am using SUM as aggregation type. For the activity type 2020, I have 4 male count in PSA (diffrent records). When i load to the DSO my Zmale I/o is showing only 1 instead of 4. Same thing is happening for other activity types as well. For a better explanation,
In PSA---
<b>0Act_type</b> -
<b>Zmale</b>
2020 -
1
1
1
1
2040 -
1
1
1
After loading to DSO
0Act_type -
Zmale
2020 -
1
2040 -
1
Here in the DSO, activity type 2020 should be cumulated to 4 (male) and 2040 should be cumulated to 2. But its not happening in the DSO level.
Please help me figure this out. Reward points are guranteed. Thanks in advance.
AkashCheck whether update mode for keyfigure is additive.
Jaya -
Webi report data aggregation problem
Hi Gurus,
I have a problem when running webi report upon BI query.
In infoview, report shows as below,
Material Plant Sales
A 001 100
A 002 100
B 001 120
If I drap Plant column out, it shows,
Material Sales
A 100
B 120
Material A's sales is 100, not 200 as in BI rsrt1.
What might be the problem, any clue?Hi Rongliang,
I've checked it, it is set as you said.
The problem still exists.
Another thing is , we got 3 dimensions, Material, Sales Org, Plant,
Key figure aggregates well for Sales Org and Plant, but not working for Material.
Any clue? -
I am a customer of an Apple Approved content aggregator for iBooks, one which is notoriously bad at its job, and makes Apple look very bad for approving it. Is there a way I can directly report this failure to meet Apple's guidelines to Apple with a detailed description? Either an email address or a phone number would be good; presumably Apple does have a dedicated department somewhere that deals with iBooks content aggregators, to whom I can send a detailed explanation of this issue, (for their information and future reference).
Thanks in advance to anyone who can help me here.First I tried to upload a simple article that had some type and a web content box linked to a tiny html file. It went into 'uploading article' and hung up, after 10 minutes I forced quit Indesign. Then I loaded a file that just had some type on it and it worked. So maybe there is something wrong with my html file. I'm going to rebuild the file and see if I can get it to work adding one element at a time.
Thank you,
Maryanne
Maybe you are looking for
-
New Cost Component Structure in new Costing Variant
Hi gurus, i created a new costing variant (to be used for planned prices, for budget purposes), then a new cost component structure. Now the system (transaction OKTZ) doesn't allow me to assign the new cost component structure to the new costing vari
-
Photoshop Elements 11 and 12 on the same device
I recently bought Photoshop Elements 11. Now I bought a new Canon EOS camera, that included Photoshop Lightroom 5 and Premiere Elements 12. My Problem now is. The DVD also contains Photoshop Elements 12 with access only to the organizer but not to th
-
Problem when running GPS in Process Chains
Hi, we have a GPS which has a set of planning functions. we have included this GPS in the Process Chain using "UPC_BUNDLE_EXECUTE". we have a selection of two profit centers. It has taken 18 hrs for the GPS to complete. it was running at its maximum
-
Hi we have daily service level report in Prodcution planning(APO) ISSUE HERE IS: For a particular sale date: for ex: 15.03.2010 the Materail 2500 has been converted to Mat 2501(varient) for a particular Depot100 (plant 120). but ). user have checked
-
Hi Experts, I've created my own screen in VA01 ( using screen 8459 in SAPMV45A ) with five additional fields. Theese fields are used for some calculations and the result is returned to the main screen item data in the field Qty. Where I should make c