Query with characteristics and NO Key figures
Hi Everyone,
I need to create a query with 3 char ... customer segment, customer type, climate zone. All are characteristics and there are no key figures.
I went through the forum reading similar posts but couldn't figure out the best way.
It can be done using Replacement path, Create formula variable with replacement path of your characteristic. Some posts also talked about writing some code.
Like to know the best way of making this query.
Can you please give me step by step procedure.
Thanks,
Kumar.
I thought, if there are no key figures the query designer might give an error while saving, like "no key figures defined" or something like that. Thats why I came up with the question.
I still have to document the detail requirement of user and he is not available. So just figuring out all the possibilities.
Similar Messages
-
Multi provider objects and restricted key figure definition
I have the following scenario:
1. I have a multi provider which is used as a template to build a second multiprovider the difference being one of the part provider cubes is replaced by a new cube
2. There is a query built off the original multi provider which consists of a restricted key figure. The definition of the restricted key figure is as follows
Characteristic 1 - restricted to records with value 'A'
Characteristic 2 - restricted to records with value 'Blue'
Key Figure - Total Amount
3. If I go to the original multiprovider and look at how the characteristics are identified and the key figure assigned the details are as follows
Characteristic 1 - identified from all part providers including the part provider to be replaced
Characteristic 2 - identified from all part providers including the part provider to be replaced
Total Amount - assigned from two part providers (which are also involved in the identification of Characteristic 1 and 2) not including the part provider to be replaced
4. In the new multi provider the details are as follows
Characteristic 1 - identified from all part providers excluding the replacement part provider
Characteristic 2 - identified from all part providers excluding the replacement part provider
Total Amount - assigned from two part providers (which are also involved in the identification of Characteristic 1 and 2) not including the part provider to be replaced
My thoughts are that it does not matter that Characteristic 1 and 2 cannot be identified from the new part provider since as long as the two part providers which are used to assign Total Amount are available in the new multi provider the values shown from the restricted key figure will be the same. Is this correct? ThanksHi,
Yes this is correct. As long as you are reporting on Total Amount, the replacement cube will not make a difference because you never identified total amount from it. Did you face any issues? -
How to search in BI 7.1 query designer for the required key figures & chars
Hi All,
Can anyone plz tell me how to search in BI 7.1 query designer for the required key figures & characteristics. I have the query being built on a multiprovider which has many cubes.
So, i have a huge list of key figures and characteristics. I am not able to search for the required one by the name or the technical name.
How can we search and pick the required object from the enormous list of the Mutliprovider in the Bex Query Designer??
Thanks
PhaniThere is not a search feature available. You have to do an educated guess under what dimension your infoobject could be and select.
-
"new selection", restricted key figure and basic key figure
Hi,
I have a test report and i have a basic keyfigure "ZRevenue" and "restricted key figure"(its defined over "ZRevenue") and
a "new selection"(its defined over "ZRevenue").
Now that i have "material number" and "material color" and "request id" in the rows. ("Material color" is a navigational attribute of material number).
In the column level i have a basic key figure "ZRevenue" and "restricted key figure"(its defined over "ZRevenue") and
a "new selection"(its defined over "ZRevenue") .
In a "restricted key figure" or "new selection", we can include a basic key figure or new formula or calculated key figure or an already restricted key figure into it, then we restrict it, with one or more characteristic values. In the report output we get KF values only for those characteristic values, with which it has been restricted. Please correct me if my understanding is wrong.
Initially i restricted the "new selection" (with material number 1 to 3) and "restricted key figure" (with material number 1 to 4).
In the cube i have material numbers 1 to 11. Now all the values were displayed from 1 to 11, but for the
"new selection" (with material number 1 to 3) and "restricted key figure" (with material number 1 to 4) i got values only for 1 to 3 and values for 1 to 4 respectively. This is as expected and is working fine.
Now i tried to restrict the basic keyfigure "ZRevenue" with material number 1, the output was only until the material number 4 (this is the greatest value of the material number defined over the "restricted key figure").
Then i tried to restrict the "new selection" (with material number 1 to 9) , then the output was from 1 to 9 material numbers.
If i remove the restriction over the basic keyfigure "ZRevenue" , then i get all the material numbers from 1 to 11, for "new selection" i get values for the material number 1 to 9 and for "restricted key figure" i get values for the material numbers 1 to 4.
Can some one explain me why this behavior?
Edited by: sapbi enthusiastic on Jan 31, 2012 11:48 AMHi,
This is where set theory comes in handy
So what you have is a basic KF (BKF), a selection (SEL), and an RKF.
When producing an output, BEx seems to be looking for the union of all the restrictions you place on these. So when your BKF is not restricted, the union comes out to everything in the underlying DSO. When you restrict the BKF for material number 1, this is how the restrictions might have been processed internally
BKF: Restriction on material 1
RKF: Restriction on material 1-4
SEL: Restriction on 1-3
Union of these three: 1-4
When you remove the BKF restriction and make SEL restricted to 9, this is how it plays out
BKF: NO Restriction on material
SEL: Restriction on material 1-9
RKF: Restriction on 1-4
Union of these three: everything.
As the union ends up giving you everything, you get 11 records. However, as SEL is restricted for 1-9, the SEL will have values for the materials 1-9. Likewise for RKF, you'll get values only for materials 1-4. Hope this clears things up!
Regards,
Suhas -
When I forward an e-mail, I get a long string of gobblygook that goes with it and I cannot figure out how to eliminate it without having to delete it every time I forward an e-mail. The following is only part of the string that I am talking about. How can I eliminate this from the e-mail?
Here is part of an excerpt from one of the strings:
From: - Mon Aug 19 18:12:47 2013
X-Account-Key: account1
X-UIDL: 065B31352CC6B3C0789DEA7954395B55
X-Mozilla-Status: 0001
X-Mozilla-Status2: 00000000
X-Mozilla-Keys:
Return-Path: <[email protected]>
Received: from hrndva-mxlb.mail.rr.com ([10.128.255.126]) by hrndva-imta07.mail.rr.com with ESMTP id <20130819211326470.DBUO12525@hrndva-X-Roving-StreamId: 0Sorry, Firefox doesn't do email, it's strictly a web browser.
If you are using Firefox to access your mail, you are using "web-mail". You need to seek support from your service provider or a forum for that service.
If your problem is with Mozilla Thunderbird, see this forum for support.
[https://support.mozillamessaging.com/en-US/home] <br />
or this one <br />
[http://forums.mozillazine.org/viewforum.php?f=39] -
Crystal reports on SAP-BW 3.5 query - problem w. properties of key figures
Dear experts,
Creating a crystal report on a SAP-BW 3.5 query we have the following problem:
In SAP-BW query we defined a restricted key figure with property
'Calculate single value as Ranked list (olympic)'.
Within SAP-BW it works correctly; in Crystal Reports we see the
key figure without the defined property.
Example
SAP-BW
Customer Revenue
4711 1
4812 2
4913 3
Crystal Reprts
Customer Revenue
4711 500 EUR
4812 300 EUR
4913 100 EUR
Could anyone give us an advice to solve this?
Thanks a lot in advance.
HagenEdited by: Hagen Kunze on Feb 12, 2010 3:22 PM
-
Can we do caculated keyfigure with in a restricted key figure
can we do caculated keyfigure with in a restricted key figure
[Hello ,|http://chandranonline.blogspot.com]
Yes, an RKF can have CKF,keyfigure and an RKF as well in the restriction.
[Thanks|http://chandranonline.blogspot.com]
[Chandran|http://chandranonline.blogspot.com] -
Relation between progress and stastical key figure
Dear Experts,
Is there any relation between progress and stastical key figure?
If there please let me know.
Thanks in advance.
Best Regards,
Punith.Hi Raj,
I am new to PS functionality. I am testing one functional module for "Progress Read" and its not woring fine. As I reported the issue, I got an reply saying relation with SKF should be configured first.
Even, I believe there is SKF and progress were different.
Rgds,
Punith. -
Report on hierarchy with different levels for key figures
Within 1 BEx query report, is there a way to report on a hierarchy where one key figure is at level 6 and another key figure at level 5? Level 6 being the lowest leaf node. That is the key figure at the level 5 wouldn't have data at level 6 aggregated or summed up to level 5. Doesn't seem possible because how would the data be modeled in the IC but has this ever been done?
This could be easily done at the query level. If you are using 7.x query designer drag the key fig you want at level 1 (top) first. Then drag the key figure you want at level 2 and drop on the level 1 key fig. Now drag and drop level 3 key fig on level 2 key fig. This way you can create a sort of hierarchy for key fig, but the lower level key figures would not be aggregated to the upper level key figures.
If you use 3.x query designer, you have to use level up and level down options after right clicking on the key figure. Place all your key fig (all levels) in the columns. now right click on the level 2 key fig and choose level down option. right click on the level 3 key figure and choose level down twice. -
How use non cumulative key figure and noncumulative key figure screenshot
how use non cumulative key figure and noncumulative key figure screenshot
Hello,
Please see this docs for Non-Cumulative and Snapshot scenario,
[How to Handle Inventory Management Scenarios in BW (NW2004)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/f83be790-0201-0010-4fb0-98bd7c01e328]
[Non-Cumulative Values / Stock Handling|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/e0b8dfe6-fe1c-2a10-e8bd-c7acc921f366]
Thanks
Chandran -
Wrong result for query with like and %
I have a strange problem with query with like and %.
When I run this script:
ALTER SESSION SET NLS_SORT = 'BINARY_CI';
ALTER SESSION SET NLS_COMP = 'LINGUISTIC';
-- SELECT * FROM NLS_SESSION_PARAMETERS;
-- drop table test1;
CREATE TABLE TEST1(K1 NVARCHAR2(80));
INSERT INTO TEST1 VALUES ('gsdk');
INSERT INTO TEST1 VALUES ('ąxyz');
INSERT INTO TEST1 VALUES ('ŁFa');
INSERT INTO TEST1 VALUES ('ła');
INSERT INTO TEST1 VALUES ('Śab');
INSERT INTO TEST1 VALUES ('Śrrrb');
commit;
select * from TEST1 where k1 like N'Ł%';
I get this:
K1
ŁFa
ła
Śab <- WRONG
Śrrrb <- WRONG
4 rows selected
When i change datatype to varchar2 this code work correct.
Is this a bug or what ?
The execution plan:
PLAN_TABLE_OUTPUT
SQL_ID d3d64aupz4bb5, child number 2
select * from TEST1 where k1 like N'Ł%'
Plan hash value: 4122059633
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | | | 2 (100)| |
|* 1 | TABLE ACCESS FULL| TEST1 | 1 | 82 | 2 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - filter((NLSSORT("K1",'nls_sort=''BINARY_CI''')>=HEXTORAW('014200'
) AND NLSSORT("K1",'nls_sort=''BINARY_CI''')<HEXTORAW('01610100') ))
Note
- dynamic sampling used for this statement (level=2)DATABASE NLS CONFIGURATION:
NLS_CHARACTERSET AL32UTF8
NLS_NCHAR_CHARACTERSET AL16UTF16
NLS_COMP BINARY
NLS_SORT BINARY
Oracle version 11.2.0.2.0 -
Need complex query with joins and AGGREGATE functions.
Hello Everyone ;
Good Morning to all ;
I have 3 tables with 2 lakhs record. I need to check query performance.. How CBO rewrites my query in materialized view ?
I want to make complex join with AGGREGATE FUNCTION.
my table details
SQL> select from tab;*
TNAME TABTYPE CLUSTERID
DEPT TABLE
PAYROLL TABLE
EMP TABLE
SQL> desc emp
Name
EID
ENAME
EDOB
EGENDER
EQUAL
EGRADUATION
EDESIGNATION
ELEVEL
EDOMAIN_ID
EMOB_NO
SQL> desc dept
Name
EID
DNAME
DMANAGER
DCONTACT_NO
DPROJ_NAME
SQL> desc payroll
Name
EID
PF_NO
SAL_ACC_NO
SALARY
BONUS
I want to make complex query with joins and AGGREGATE functions.
Dept names are : IT , ITES , Accounts , Mgmt , Hr
GRADUATIONS are : Engineering , Arts , Accounts , business_applications
I want to select records who are working in IT and ITES and graduation should be "Engineering"
salary > 20000 and < = 22800 and bonus > 1000 and <= 1999 with count for males and females Separately ;
Please help me to make a such complex query with joins ..
Thanks in advance ..
Edited by: 969352 on May 25, 2013 11:34 AM969352 wrote:
why do you avoid providing requested & NEEDED details?I do NOT understand what do you expect ?
My Goal is :
1. When executing my own query i need to check expalin plan.please proceed to do so
http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_9010.htm#SQLRF01601
2. IF i enable query rewrite option .. i want to check explain plan ( how optimizer rewrites my query ) ? please proceed to do so
http://docs.oracle.com/cd/E11882_01/server.112/e16638/ex_plan.htm#PFGRF009
3. My only aim is QUERY PERFORMANCE with QUERY REWRITE clause in materialized view.It is an admirable goal.
Best Wishes on your quest for performance improvements. -
Sql query with conditions and calculations???
Hi,
how I can build a query with conditions and calculations?
E.g. I've got this table
Start | End | Working Place | Mandatory
01-JAN-13 | 11-JAN-13 | Office | 1
14-JAN-13 | 25-JAN-13 | Home Office | 0
04-MRZ-13| 15-MRZ-13 | Office | 0
11-FEB-13 | 22-FEB-13 | Office | 1
Now if column working place=Office and column mandatory=0
the new column "price" has to calculate: (End-Start)* $25.00
and if working place=Office and column mandatory=1
the "price" column has to calculate: (End-Start)* $20.60
else $0.00
I tried it with the case statement but I didn't know how
to calculate my values and display it to the virtual column "price".
Something like
case
when Working_Place = 'Office' and Mandatory=1
then ...
else '0.00'
end as PRICE
Or is it not possible?
Edited by: DB2000 on 12.03.2013 05:09Use CASE:
select start_dt,
end_dt,
working_place,
mandatory,
case
when working_place = 'Office' and mandatory = 0 then (end_dt - start_dt) * 25
when working_place = 'Office' and mandatory = 1 then (end_dt - start_dt) * 20.60
else 0
end price
from tbl
START_DT END_DT WORKING_PLA MANDATORY PRICE
01-JAN-13 11-JAN-13 Office 1 206
14-JAN-13 25-JAN-13 Home Office 0 0
04-MAR-13 15-MAR-13 Office 0 275
11-FEB-13 22-FEB-13 Office 1 226.6
SQL> SY. -
Can we do caluculated keyfigure with in a restricted key figure
can we do caluculated keyfigure with in a restricted key figure give details
Hi,
Calculated key figures consist of formula definitions containing basic key figures, restricted key figures or precalculated key figures.
The key figures that are restricted by one or more characteristic selections can be basic key figures, calculated key figures or key figures that are already restricted.
For more help go to these links,
http://help.sap.com/saphelp_nw04s/helpdata/en/61/d0b143aa26b849b4e79a859ea1d7d1/content.htm
http://help.sap.com/saphelp_nw04s/helpdata/en/13/e072abaddb574284d22361f0b824bf/content.htm
assign points if it helps
Thanks & Regards,
santo -
CAML Query with 10 AND conditions
Hello,
I need some help with a CAML query. This particular query needs to have 10 AND conditions. Quite frankly, with all the nesting it is driving me a little nuts:
What I have is:
<Query>
<Where>
<And>
<And>
<And>
<And>
<And>
<And>
<And>
<And>
<And>
<Eq><FieldRef Name='Column1' LookupId='TRUE' /><Value Type='Text'>10341</Value></Eq>
<Eq><FieldRef Name='Column2' LookupId='TRUE' /><Value Type='Text'>9539</Value></Eq>
</And>
<Eq><FieldRef Name='Column3' LookupId='TRUE' /><Value Type='Text'>183</Value></Eq>
</And>
<Eq><FieldRef Name='Column4' LookupId='TRUE' /><Value Type='Text'>35</Value></Eq>
</And>
<IsNull><FieldRef Name='Column5' /></IsNull>
</And>
<Eq><FieldRef Name='Column6' LookupId='TRUE' /><Value Type='Text'>4387</Value></Eq>
</And>
<Eq><FieldRef Name='Column7' LookupId='TRUE' /><Value Type='Text'>4204</Value></Eq>
</And>
<Eq><FieldRef Name='Column8' LookupId='TRUE' /><Value Type='Text'>36</Value></Eq>
</And>
<Eq><FieldRef Name='Column9' LookupId='TRUE' /><Value Type='Text'>213</Value></Eq>
</And>
<IsNull><FieldRef Name='Column10' /></IsNull>
</And>
</Where>
</Query>
I have added this into my ItemAdding Event Receiver as it will basically do a check for duplicate items based on the 10 columns.
If anyone can help guide me in this, it would be much appreciated. I have been using a CAML Query Builder to help.http://webcache.googleusercontent.com/search?q=cache:xji7jOxa5_EJ:aasai-sharepoint.blogspot.com/2013/02/caml-query-with-multiple-conditions.html+&cd=3&hl=en&ct=clnk&gl=in
http://stackoverflow.com/questions/6203821/caml-query-with-nested-ands-and-ors-for-multiple-fields
Since you are not allowed to put more than two conditions in one condition group (And | Or) you have to create an extra nested group (MSDN). The expression
A AND B AND C looks like this:
<And>
A
<And>
B
C
</And>
</And>
Your SQL like sample translated to CAML (hopefully with matching XML tags ;) ):
<Where>
<And>
<Or>
<Eq>
<FieldRef Name='FirstName' />
<Value Type='Text'>John</Value>
</Eq>
<Or>
<Eq>
<FieldRef Name='LastName' />
<Value Type='Text'>John</Value>
</Eq>
<Eq>
<FieldRef Name='Profile' />
<Value Type='Text'>John</Value>
</Eq>
</Or>
</Or>
<And>
<Or>
<Eq>
<FieldRef Name='FirstName' />
<Value Type='Text'>Doe</Value>
</Eq>
<Or>
<Eq>
<FieldRef Name='LastName' />
<Value Type='Text'>Doe</Value>
</Eq>
<Eq>
<FieldRef Name='Profile' />
<Value Type='Text'>Doe</Value>
</Eq>
</Or>
If this helped you resolve your issue, please mark it Answered
Maybe you are looking for
-
Hi, I have the following scenario: 1. My PO contains 3 items Item A, Item B and Item C. The PO was created on 31st May 2011. Item A has a Planned delievry Time of 57 Days while item B and C do not have any Planned Delivery Days. 2. When I try to crea
-
I have having issues trying to determine how I can specify the sending server when creating a object that is using CDO COm. I have a script that I have tried but it just sends with the default server and not the one I specified. I have searched the w
-
I am looking for a monitor to use with Aperture and Final Cut. Maybe 22 or 24 inch. I am not ready to spring for an Apple Cinema Display, so what is out there? Any good websites with reviews or recommendations for the forum ?
-
Show version and snmp sysUpTime differ.
I have an issue on a cisco2600 where the show version uptime shows different to the snmpwalk sysuptime. Any ideas? Many thanks, Rory. COGPBR004#sh ver Cisco Internetwork Operating System Software IOS (tm) C2600 Software (C2600-JS-M), Version 12.2(17a
-
Hello, I've been using iPhoto since version 2, I believe, and I've had the same library the whole time. As you can imagine, it is getting to be pretty ugly in there, and I believe a lot of the data might be duplicated. For example, within the library