URGENT!!Aggregation In Query!!
Hi
I am using aggrgn in Backend as follows & so how tht particular KF looks on FRONT END???or I can change the aggrgn part only in Front end???
KF1---Aggrgn as SUMMATION
EXCEP aggrgn as MIN
REF char. as PUR GRP.
SPO TRANS. P.GRP. TOT. LINE ITEMS Load
ARMY A 1 21 100
2 21 0
RESULT ROW 42 100
But I want to calculate the result row as 21 instead,
so then when I calculate the Excess Load of KF
Excess Load = tot line item -base load
TOT. LINE ITEMS Load Excess Load
21 100 -79
21 0 21
42 100 -79(but here get as 100- 42 NOT ,100-21)
I tried using all type of aggrgn...like min,first val etc...
But still the same...Even after removing the Pur grp Drill down,it gives the total of 42 not 21...
Thnx in advance
Edited by: BI Learner on Jan 14, 2008 11:33 AM
Hi
Still my problem Persists,if I dont have the drilldown of PUR GRP...my TOT PO Line Items doesnt display data if it has NOT ASSIGNED VALUE IN PUR GRP...
Any Ideas pls......
Similar Messages
-
Hi,
Does the aggregation at query level will not work in BI7.
As i have a key figure with aggregation type summation in backend,there were some similar records when tried to set aggregation at query level it is not working summing the key figures.
Any suggestions.Are you sure there is no exception aggregation defined?
-
URGENT: Error with query on MultiProvider
Hi,
I am designing a query on a MultiProvider that combines a cube and ODS. the common characterisitics in the cube & ODS are Material, fiscal period, country.
I have 2 rows & 1 column and several free characterisitics (mostly navigational attributes of Material).
Rows: KF1 (from cube) & KF2 (from ODS)
Column: Fiscal Period
I have done all the selections & Identification in the multiprovider and set the ODS for BW reporting.
I am not able to get data from ODS with query on MultiProvider.
And i need to add another row that calculates the product of KF1 & KF2. KF1 is sales quantity and KF2 is price identified uniquely by Material/Country combination. When we report at Country level wihtout any material selection the output revenue should be SUM of individual products between KF1 & KF2 (if there are 3 materials (A) sold that have a price of X and 2 materials (B) sold that have a price of Y, the answer should be 3X + 2Y instead of (32) * (XY)/2.
and also i have geographical hierarchy for 0country which is used in ODS & cube. can i use the geographical hierarchy for ODS as well for aggregation of values?
Regards
EmilHi, i have solved the issue by impementing an SAP note.
and the issue is the in Query i need to calculate a key figure based on the other 2 key figures.
KF3 = KF1 * KF2
the only issue here is i need to find the KF1 for each material/country/fiscal period from cube 1 and KF2 for each material/country/fiscal period.
and multiply and then aggregate according to the filter & selection conditions.
can anyone let me know how to do it..
its very urgent..
thank you
Emil -
Aggregation select query in oracle database10.2/linux
Hi friends,
I required to build matrix kind of report which should includes segregated and aggregated values in single query and format can be as follows.. i am trying on scott.emp table
example:
Job/deptno 10 20 30 40 50 total
CLERK sum(Sal) sum(sal) sum(Sal) sum(sal) sum(Sal) sum(all clearks in all dept)
MANAGER sum(Sal) sum(sal) sum(Sal) sum(sal) sum(Sal) sum(all mng all dept)
SALESMAN sum(Sal) sum(sal) sum(Sal) sum(sal) sum(Sal) sum(all salres in all dept)
ANALYST sum(Sal) sum(sal) sum(Sal) sum(sal) sum(Sal) sum(all ana in all dept)
if possible
cout(*) countof all 10, count(20), count(30)... etc..
could you please help me out with single query? please. thanks in advanceTry this:
SELECT JOB
, MAX(DECODE(DEPTNO,10,SAL,0)) AS SUM_DEPT_10
, MAX(DECODE(DEPTNO,20,SAL,0)) AS SUM_DEPT_20
, MAX(DECODE(DEPTNO,30,SAL,0)) AS SUM_DEPT_30
, MAX(DECODE(GRP,1,SAL,0)) AS SUM_TOTAL
, MAX(DECODE(DEPTNO,10,CNT,0)) AS CNT_DEPT_10
, MAX(DECODE(DEPTNO,20,CNT,0)) AS CNT_DEPT_20
, MAX(DECODE(DEPTNO,30,CNT,0)) AS CNT_DEPT_30
, MAX(DECODE(GRP,1,CNT,0)) AS CNT_TOTAL
FROM
( SELECT DEPTNO
, JOB
, SUM(SAL) AS SAL
, COUNT(*) AS CNT
, GROUPING(DEPTNO) AS GRP
FROM SCOTT.EMP
GROUP BY JOB,ROLLUP(DEPTNO)
GROUP BY JOB -
URGENT : Challenge questions query: Oracle Access Manager 10g
Hi all,
This is a query regarding password challenge questions in Oracle Access Manager 10g. We have created password policies for a specific container in OID (say cn=xxx,cn=users,dc=oracle,dc=com) and it is working fine.
In order to exclude certain set of users (say user ABC ) for password policies, we have set the obpasswordchangeflag to false for those users which are in same container for which password policy is created.
When we try to login to the application with the user say ABC, I am not seeing any reset password page - I am happy till this point. However it is showing Configure Challenge questions page. Is there any way to bypass this page? Or is this the expected behavior?
This is very urgent and prompt reply is very much appreciated.
-MahendraHi Mahendra,
This is expected behaviour. In order to exclude the password policy management for some certains user for particular domain/container. please add the below configuration parameter to your OAM10g password policy.
Password Policy Filter Field (!(|(cn=xxx)(cn=abc)))
----Ajay -
Aggregation level query "value help" = Only Values in InfoProv doesn't work
Hi,
I have a problem with Selection Variable for a BEx Query :
- I'm working with SAP BI 7.0 support package 15
- My query is an input ready query built for an "aggregation level" based on "real time infocube" (Planning);
- Characteristic, I want to filter with variable, has query property Advanced->Query Execution for Filter Value Selection = Only Values in InfoProvider
- Characteristic (info-object) has set the property: Business Explorer tab--> Query Def. Filter Value Selection as Only Values in the info-provider...
My problem is:
when I execute a query,
the Select Values for Variables screen appears
I push on the Select from List button
and Select Values For MyCharacteristic appears...
but it shows me all values in master data table of my characteristic instead of only values in the infoprovider!!!
If I build a query for the Real Time Cube it works correctly, but if the query is built for the aggregation level it doesn't work!
Could someone explain me why it doesn't work correctly?
Thanks in advanced
FedeThanks to Mariana Lazar
30.03.2009 - 12:30:36 CET - Risposta by SAP
Dear Fede,
Regarding the query built on aggregation level please note the following
the aggregation level is always a Virtual Provider built other
InfoProvider and hence it does not have the dimension table and hence
the F4 mode D is not supported.
Therefore when aggregation level is used in a query, F4 does not supportD-mode: 'Only Values in InfoProvider' and all master data values are
displayed in the value list.
Reference from the note
984229 F4 modes for input help as of SAP NetWeaver 2004s BI
4. Since other InfoProviders do not have a dimension table, the system
displays only posted values if you select "Only Posted Values for
Navigation". Otherwise, it displays the values from the master data
table.
Hope this should clarify your doubts. Please let me know if you have
questions else please confirm the message at your earliest convenience.
Thank you for your cooperation and kind regards,
@KR@ Mariana Lazar
Senior Support Consultant
SAP Active Global Support
Netweaver Business Warehouse -
URGENT !( jdbc query problem)
Hi Forum
i made an application which run on JRun server.
In many of my jsps i used sql query like this:
" select id, name, rollno from student where add = 'jj';"
and retrieve the record from resultset like this:
rs.getString("id");
rs.getString("name");
rs.getString("rollno");
I got no error.
BUT WHEN I RETRIEVE THE RECORDS LIKE THIS
rs.getString("name");
rs.getString("id");
rs.getString("rollno");
i got the error:
java.sql.SQLException: [Oracle][ODBC]Invalid column number <1>.
I can not understand what is the problem ?
all the datatypes are correct.
all coding is correct.
and everything is correct.
pls help me & suggest a solution.
is there any problem of jdbc API OR of JRUN SERVER SETTINGS?
thanks
mail me at [email protected]
Arvind GoelHere is a part of my code in which i got error:
(all variables are defined)
It is the working code. BUT when i change the sequence of retrieving fields as i select then problem occurs.
pls help me, i need it urgently.
if(st.equals("YES")){
rs=stmt.executeQuery("select r.na_WPN, m.MK_WPN, m.tp_WPN, m.REC_NO, m.ISSUED, r.dte_del, r.ps from amm_issue r,armentry m where r.ent_srno=m.srno and r.ps='"+username+"' and m.issued='YES' ");
else if(st.equals("NO")){
rs=stmt.executeQuery("select r.na_WPN, m.MK_WPN, m.tp_WPN, m.REC_NO, m.ISSUED, r.dte_del, r.ps from amm_issue r,armentry m where r.ent_srno=m.srno and r.ps='"+username+"' and m.issued='NO' ");
else if(st.equals("BOTH")){
rs=stmt.executeQuery("select r.na_WPN, m.MK_WPN, m.tp_WPN, m.REC_NO, m.ISSUED, r.dte_del, r.ps from amm_issue r,armentry m where r.ent_srno=m.srno and r.ps='"+username+"'");
while(rs.next())
String tp_wpn=rs.getString("na_WPN");
String mk_wpn=rs.getString("MK_WPN");
String no_wpn=rs.getString("tp_WPN");
String rec_no=rs.getString("REC_NO");
String issued=rs.getString("ISSUED");
dte_del =rs.getString("dte_del");
ps= rs.getString("ps");
if(i==0){
out.println("<tr><th>Police Station </th> <th>Type of Weapon</th><th>Make of Weapon</th><th>No of Weapon</th><th>Recipt No</th><th>Issued Status</th><th>Date of Receiving");
}i++;
out.println("<TR><td>"+ps+" <td>"+no_wpn+" <td>"+mk_wpn+"</td> <td>"+tp_wpn+"</td> <td> "+rec_no+"</td><td>"+issued+"<td><center>"+dte_del+" </td>");
thanx
Arvind -
Exceptional Aggregation in Query Designer
Hello Gurus,
we have an existing Report at the Material Level on the InfoCube.
Each Material may have multiple POs and we are having multiple
records for each PO varying the date. Now the user want to view
only the record latest changed Record at the PO level
and Sum of all the records at the Material Level.
For this i have created a CKF using the Exception Aggregation
as Maximum for the 0calday. But client want the Report at Material Level
he dont want the PO's details. When i remove the PO from the report
it gives the result for only the latest PO not all the PO for that Material.
For Example we are having below records in the cube.
PO Material Calday Qty Price
101 ABC 1/12 100 10
101 ABC 2/12 100 10
101 ABC 3/12 100 11
102 ABC 4/12 100 10
104 ABC 5/12 100 10
103 ABC 7/12 100 11
I am getting the result with PO in Rows as Below
PO Material Calday Qty Price
101 ABC 3/12 100 11
102 ABC 4/12 100 10
104 ABC 5/12 100 10
103 ABC 7/12 100 11
When I remove the PO's From the Rows then it will display
as below i am placing the calday for under standing the
question actually it is not present in the output of the below report only.
Material Calday Qty Price
ABC 7/12 100 11
Which is not currect I have to get the Result as
Material Qty Price
ABC 500 42
My Concerns:
!. Kindly let me know if it is possible and what are the
other things that i need to consider.
2. Did it will impact the performance.
Waiting for your quick replies
Thanks & Regards
KK
Edited by: KK on Dec 23, 2009 11:08 AM
Edited by: KK on Dec 23, 2009 11:15 AM
Edited by: KK on Dec 23, 2009 11:22 AMHi KK
Confirmation:
First I need to confirm one thing,
as you mentioned expected output is,
Material Qty Price
ABC 500 42
But I think, it should be
Material Qty Price
ABC 400 42
right?
Answer:
Can you please try below steps and let me know whether it is working as expected or not
Create a basic Key figure for calday and include it in your InfoCube. In the transformation, assign it to same fileld which is a source of calday.
In query, Create a calculated key figure based on calday key figure with exception aggr as last value and reference characteristics as PO.
Regards
Rohit -
Hi ,
I am facing osme problem with multiporvder reporting for example
0material |Transactionnumber| Compalintnumber| Docdate| compalint date| no of days
150051| 01| 10| 5/06/2007/| 5/07/2007| 30 days
150051| 01| 10| 5/06/2007| 5/07/2007| 30 days
But in query i am getting as
0material |Transactionnumber| Compalintnumber| Docdate| compalint date| no of days
150051| 01| 10| 5/06/2007/| 5/07/2007| 60 days(30 Days)
i want to get the number as 30 days.....
How its happening......
Thanx in advance
Regards
Ram
Edited by: Ram on Mar 1, 2008 1:40 AMHI,
Depending on the same characteristics the key figure values will be aggregated in the report.... If u have any key figure in the query, create a calculated key figure drag ur key figure into that. right click on ur calculated key figure, select exception aggregation as last value and reference characteristics as date.
Please check and let us know, if it does not work then we will look for other solution.
Pavan -
Urgent help required: Query regarding LC Variables
Hi All
Sometime earlier I was working on a performance issue raised by a customer. It was shell script that was taking almost 8-9 hrs to complete. During my research I came across a fact that there were some variables which were not set, the LC variables were impacting the sort funnel operations because of which the script was taking a long time to execute.
I asked them to export the following commands, after which the program went on smoothly and finished in a couple of mins:
export LC_COLLATE=en_US.ISO8859-1
export LC_MESSAGES=C
export LC_MONETARY=en_US.ISO8859-1
export LC_MONETARY=en_US.ISO8859-1
export HZ=100
export LC_CTYPE=en_US.ISO8859-1
export LANG=en_US.UTF-8
Later I did recover that setting the LC_COLLATE to C, is not helping and the program was again taking a lot of time. Few questions that I want to ask are:
1. Can someone please tell me, what each of these variable mean and how these values make a difference.
2. When I exported LC_COLLATE=en_US.ISO8859-1, it worked fine, but when i tried with the defalut value LC_COLLATE=C, then why the program didnt work.
As this issue is still going on, hence I would request All to provide their valuable inputs and let me know as much as possible.
Appreciate your help in this regard.
Thanks
Amit
Hi All
A new development in this regard. The customer has send us a screen shot in which they were trying to export the locale variable using the commands which I have pasted above. I can see in the screen shot that while exporting LC_COLLATE and LC_TYPE, they get a message that ""ksh: export: couldn't set locale correctly"".
Request everyone to please give their inputs as it's a bit urgent.
Thanks for all the help in advance.
Thanks
Amit
Some help required please...
Edited by: amitsinhaengg on Jul 22, 2009 2:03 AM
Edited by: amitsinhaengg on Jul 22, 2009 2:06 AMLC_CTYPE
Controls the behavior of character handling functions.
LC_TIME
Specifies date and time formats, including month names, days of the week, and common full and abbreviated representations.
LC_MONETARY
Specifies monetary formats, including the currency symbol for the locale, thousands separator, sign position, the number of fractional digits, and so forth.
LC_NUMERIC
Specifies the decimal delimiter (or radix character), the thousands separator, and the grouping.
LC_COLLATE
Specifies a collation order and regular expression definition for the locale.
LC_MESSAGES
Specifies the language in which the localized messages are written, and affirmative and negative responses of the locale (yes and no strings and expressions).
You can use command
# locale -k LC_CTYPE
to see more detail about each type. -
Urgent Requirement-- ABAP Query
Hi,
I have a developed ABAP Query by the name "YCOPM_Bill_PUR".
In this query, I have an additional field "indicator". For this field, there is some code written, wherein either of the values "N" or "O" are assigned to this "indiactor" field. Now, the query should generate the output, only when indicator = N i.e. only those records should be displayed in the output for which the indicator field has value 'N'.
Records having indicator field value as "O", should not be displayed.
I want to know the place where I can write this condition and keep a control on the records displayed in the output.
Currently, the query output displays all records (irrespective of whether indicator = 'N' or 'O').
I have added the field indicator on the selection screen.
But, I want to know where can I write the condition :
if indicator = 'N'.
endif.
In "SQ02", there would be some place where i can write the above condition so that the output is trigerred only for those particular records. If possible, please do let me know.
In short, I need to know, where are the output fields getting populated and where can I write this code to control the output.
Please help me out.
Thanks & Regards,
Tejas SavlaHi Pooja,
Thanks a lot for your quick reply.
I have done the same . i.e. i have written the code for that particular field (indicator) in SQ02 and generated the infoset. Now, the correct value ('O' or 'N') gets assigned to the indicator field.
But, my problem is different.
I need to find the location, where the all the output(report output) fields are getting populated, so that I can place a condition on my additional field (indicator) and control the fields to be displayed in the output.
In short, I need to know, if there exists a location where I can place a condition such as "Display the output, only if field indicator = 'O' ".
I hope you got my query.
Thanks in advance.
Regards,
Tejas Savla -
Urgent: regarding insert query problem
i have a one table say "item_master_old" its structure is like
item_master_old (item_name, item_rate, item_qty, item_desc)
second table say "item_master" its structure is like
item_master(id, item_name, item_rate, item_qty, item_desc)
i want to insert item_master_old values in item_master using the following insert query :
insert into item_master ( (select nvl( max(id), 0) + 1 from item_master ),
item_name,
item_rate,
item_qty,
item_desc
from
item_master_old)
but i update the id column with 1 in all column but i want the max(id) + 1
how it can be possible ?
Regards
stry this!
insert into item_master
select (select nvl(max(id),0) from item_master)+rownum,
item_name, item_rate, item_qty, item_desc
from item_master_old;
"Not tested"Message was edited by:
Jameel -
Urgent: how to query/index xml files to retrieve information belonging to a section?
os: linux
db: oracle 9iR2
Hi,
how can I extract -> only <- the matching entry information from within a xml file, that belongs to the result of a query?
For example, given the following xml:
<QualifierRecordSet>
<QualifierRecord QualifierType = "1">
<QualifierUI>Q000002</QualifierUI>
<QualifierName>
<String>test1</String>
</QualifierName>
<DateCreated>
<Year>1973</Year>
<Month>12</Month>
<Day>27</Day>
</DateCreated>
</QualifierRecord>
<QualifierRecord QualifierType = "1">
<QualifierUI>Q000003</QualifierUI>
<QualifierName>
<String>test2</String>
</QualifierName>
<DateCreated>
<Year>1975</Year>
<Month>10</Month>
<Day10</Day>
</DateCreated>
</QualifierRecord>
<QualifierRecordSet>
I would like to query for '/QualifierRecordSet/QualifierRecord/QualifierName[String = "test2"]' and retrieve ONLY the second 'QualifierRecord' - entry, i.e.:
<QualifierRecord QualifierType = "1">
<QualifierUI>Q000003</QualifierUI>
<QualifierName>
<String>test2</String>
</QualifierName>
<DateCreated>
<Year>1975</Year>
<Month>10</Month>
<Day10</Day>
</DateCreated>
</QualifierRecord>
...but not the' id' or 'name' of the xml-document(I have only one document).
Thanks for your help in advance.
Best Regards,
Danextract() would do what you want. But your whole approach of only have 1 document makes no sense when working with an XML database. See my reply to the other post for more reasons.
-
i have a table having business_name,sales,SIC the data is shown below
business_name sales sic
xxx 30 1300
yyy 45.5 2000
zzz 65 8769
i need to generate a report the number of business having sales between 0-50 and
sic between 000-3000 and 3000-5000 and 5000-7000...
like sales between 50-100 and having sic 000-3000 ,3000-5000...
how to write this in query. could anybody please help me.
0000-3000 3000-5000 5000-7000
0-50
50-100
100-150i have a table having columns businessname,sales in millions and sic code.
sic code ranges from 0000-9999
i want to generate a report that how many businesses having a sales between
0-50 and sic between0000-3000, and no of businesses having sales between
0-50 and sic between 3000-5000 ,and sales0-50 and sic 5000-7000 son on
and also
Businesses have sales 50-100 and sic 0000-3000,3000-5000....
the report should be like this
SIC
0000-3000 3000-5000 5000-7000
SALES
0-50 2 3 5
50-100 9 1 8
100-150 0 18 2 -
Urgent: Simple packages query.
I have two .java files (Assign1.java, Support.java) in the same package (cis.unisa) and need an instance of Assign1 to access a class in Support.java (FileAccess). I thought this would be simple but not so far.
I tried just FileAccess.method() but I get 'cannot resolve symbol. symbol: variable FileAccess' I've also tried unisa.cis.FileAccess.method() and importing unisa.cis.* but I get the same message in all. It seems as if it just can't find the FileAccess class but it is there.
Any help would be greatly appreciated, A.S.A.P. thanks.Don't flag your question as urgent, even if it is for you. Claiming urgency is very likely to be counter-productive: most forum regulars will simply ignore such messages as rude and selfish attempts to elicit immediate and special attention.
Besides, unless the entire Bolivian army is about to chase you over the edge of a cliff, your problem probably isn't as urgent as you think. :o)
Maybe you are looking for
-
Can I charge my new Ipad for first time but just connecting it to a wall outlet, even though I have not yet registered it on my ITunes account? If so, how long will it take for a complete charge? Thanks
-
HP Omni 220-1050xt connection to Vizio E series Smart HDTV issue
Looking for troubleshooting help. I currently have my setup as follows: Omni connected to EVGA UV Plus 39 display adapter via a 3.0 usb to microusb. Adapter is connected to HDTV via HDMI cable. I cannot get the computer to recognize the tv. The softw
-
I want to know which classloader loaded each of the classes in the stack trace of an exception. How can I do it? thanks
-
Workflow Agenet Determination Problem : Urgent Please
Hi All, We configured standard workflow WS12300111 for ESS Leave Request. For standard task TS12300097 agent assignment is Expression : &AGENT_0001.AGENTS&. Now workflow is not getting triggred. If change agent assignment to Rule : 00000168 or any us
-
Finding my user pic...
Is my user picture stored as a file somewhere on my computer? I used the camera to take a picture, but except for setting it as my user pic I didn't specifically save the picture anywhere, but I suppose it probably is a file somewhere. Peace, Pagal M