Characterstic comparison in Bex

Hi All,
I need to compare Two Characterstics (Type CHAR) within the cube and highlight the row or to flag them  if they are equal. I wanted to check if this can be done at the frontend?
Thanks,
Prasad

Hi,
If you have in your cube your 2 objects of interest and an additional object as a flag object you can build the comparison in the transformation leading to you cube.
For the flag object, provide the correct 2 source fields. Now put the rule type to Routine and build a small IF statement to check if the 2 source fields contain the same value. If so set the flag.
But off course this is backend.
Regards,
Rik

Similar Messages

  • Comparisons in BEx report

    Hi All,
    I have a BEx report requirement which seems to be pretty manageable but looks like I'm missing something..
    PROBLEM:
    I have a report in which should have the following columns
    1. Employee ID
    2. Revenue of Billing Partner
    3. Revenue of Engagement Partner
    4. Revenue of Lead Client Service Partner
    Billing Partner, Engagement Partner and Lead Client Service Partner characteristics reference employee id and are stored in the cube.
    Emp id  | Bill Prt Rev| Eng Prt Rev| Lead CSP Rev
    1000    | $500        | $600       | $400
    In the above example, Emp id=1000
    $500 is the revenue where Billing partner = 1000
    $600 is the revenue where Engagement partner = 1000
    $400 is the revenue where Lead CSP  = 1000
    I know I have to do characteristic comparisons but did not give right results.
    Appreciate your responses.
    Thanks,
    Krishna

    Hi CC,
    Here's the report format:
    Emplid|     Bill Prtnr Rev | Eng Partner Rev| Lead CSP Rev
    1000  |       1980418      |  1571906       |       0     
    2050  |        697789      |   732533     |   21090
    2490  |       3171992      |  1161446     | 3218770
    2500  |         41696      |    37673     |    8839
    3890  |       6921768      |  3858804     | 7031627
    Message was edited by: Krish
    Message was edited by: Krish

  • How to pass characterstic variable value using button in sap wad

    Hello Gurus,
    I have one requirement in WAD 7.0.i have made one user input characterstic variable in Bex i.e on 0calmonth.Now i have passed the same variable in WAD drop down button.Now suppose based on the logic on that variable which i have made in bex is like when i select 04.2010 in drop down button it dispalys data for next three months.
    Now my user wants same thing to be displayed with the help of button as well. I need to make two buttons one for previous month and other for next month.I made two button using button group and passed that variable also but data is not changing.
    How to get the desired output using buttons.
    I want two buttons like this <<(previous) >>(next) and i want to pass that same variable which i passed in drop down button and when i press previous button it should display last month data and when i press next it should display next month data.
    How to achieve this in WAD with the help of buttons.Give me your useful suggestions.
    Hope my requirement is clear.
    Thanks in advance
    Regards,
    AL

    Need your valuable suggestions on this...

  • How to calculate number of rows for perticular characterstic in SAP BI Bex

    Hi experts,
    Please let me know how to calculate  ' number of rows  ' for perticular characterstic in Bex query. 
    Thanks & Regards,
    Babu..

    Hello,
    You can try this
    Create a CKF and assign the vale 1 to it. Open the query and select Character where you want to display ' number of rows ', go to properties windows, select 'display', in the results row drop down box, select  'always display'.
    Thanks.
    With regards,
    Anand Kumar

  • Characterstic is not showing up in Bex.

    Hello,
    I have created a multicube with 4 basic cubes. All basic cubes have fiscal variant as time characterstic. As well, multicube also has fiscal variant in time dimension. However, in the Query designer (Bex), this characterstic is NOT showing up. Could any one faced this kind of problem?.  Your help is appreciated.
    Thanks
    Viswa

    Hi Prakash,
    You are correct. That was the problem and have fixed it. Can you explain the technical background for this behaviour?
    Points assigned to both of you.
    Thanks
    Viswa.

  • Creating query on Bex - Quaterly comparison for statistical & Actual

    Hi All,
    I would like to create a query for 'Quarterly comparison for statistical & Actual periods'.
    My Key Figures should be
    1) Plan 1st Qtr (Fiscal year, Period: 1 to 3, Value type : 1(Plan), Version : 0(Plan/actual), Valuation View: actual Value).
    2)1st Qtr (Fiscal year, Period: 1 to 3, "Value type : 4(Actual),11(Actual statistical)", Version : 0(Plan/actual), Valuation View: actual Value).
    3)Var 1st Qt (Plan 1st qtr - 1st Qtr)
    same thing for 4 Quaters. finally with
    4)Plan Year (Fiscal year, Period: 1 to 12, Value type : 1(Plan), Version : 0(Plan/actual), Valuation View: actual Value).
    I created a structure and created key figures with selections and formulas as required. But I did not see any data when I ran this query.
    The report was generated with 'no applicable data'.
    I need to create this query with plan 1st Qtr, Ist Qtr, Var 1st Qtr, Plan 2nd Qtr, 2nd Qtr, Var 2nd Qtr, Plan 3rd Qtr, 3rd Qtr, Var 3rd Qtr, Plan 4th Qtr, 4th Qtr, Var 4th Qtr, Plan year. key figures.
    Please let me know how can I create this query with these Key Figiures.
    Any help would be appreciated. Please respond with the reply.
    Thanks,
    Aparna.

    Hi
    The best way is then to run a report with your KF without any restriction, and the different chars in the drill down: Fiscal year, Period:, Value type,  Version , Valuation View
    Then you can check that you have some information with the combination of values of your chars:
    Fiscal year, Period: 1 to 3, Value type : 1(Plan), Version : 0(Plan/actual), Valuation View: actual Value.
    If you find a actual Value in the fiscal period you are looking at, for the period 1 to 3, for the Valuation type 1, for the version 0, then create arestricted KF by adding the restrictions one at a time....You moght discover why you do not get the results
    PY

  • Dynamic comparison column in Bex report

    Hi Gurus
    I have the following request, could any of you kindly help me out?
    Content example in Cube:
    GL Act| Fiscyear| Fiscper3| Amount
    10001 |2004     |12       |100
    Report: Cross-year comparison determined by period
    Specifying fiscyear and period range is enabled as user-input, e.g. choose year 2003 to 2005 and period 01 to 03
    The following layout is our target:
    header: period 01-03
    GL Act| Y2003| Var2003-2004| Y2004|  Var2004-2005| Y2005
    10001 | 100 | 200         | 300 |  -100        | 200
    10002 | 300 | 500         | 800 |  200         |1000
    I think the point is to achieve the "variance" column which is dynamically determined by fiscyear where user inputs, since restricted key figure cannot achieve the "dynamic" solution.
    Thanks in advance!

    Hi Eric,
    My approach is somewhat not flexibible but it may suit your needs.
    Will try to describe it in more details.
    Let’s assume that this periods contain full information: a year and a period within a year and that there are 12 periods in the year. A user enters a a range of periods P1 – P2 (let’s say of 2005) and wants to compare some KF for the given time period with that for 2004, 2003 and calculate difference between periods.
    Solution:
    Create two – for P1 and P2. All vars are user entry ones. If P1 is always the first period in the year then P1 might be determined in the user exit.
    Create a structure in rows.
    New selection. Name it as Y2003. Put here your KF and Fiscal year/period. Restrict it with P1 – 24, P2 – 24.
    New selection. Name it as Y2004. Put here your KF and Fiscal year/period. Restrict it with P1 – 12, P2 – 12.
    New selection. Name it as Y2005. Put here your KF and Fiscal year/period. Restrict it with P1, P2.
    New formula for Var2003-2004. Place into formula Y2004 - Y2003.
    New formula for Var2004-2005. Place into formula Y2005 - Y2005.
    Regardless of selection’s names this query will show values for given periods of 3 years: entered, year before entered and entered -2. 
    Best regards,
    Eugene

  • BEx Query Designer 2 years comparison by month

    Hi expert,
    I'm drafting a report which want to comparison 2 years cost variance. I want to have 2 column inofmraiton, Cost & Variance % (which is  (Current Period - Previous Period) * 100/ Previous Period)  .
    I create the follow fields & defined a value range of  'CalYear/Month' in Filter of Characteristic Restrictions with variable offset value -12 which can input From mm.yyyy & To mm.yyyy.
    1. Characteristic of 'Cost'
    2. 'Cost -12' which is Cost with restriction of 'CalYear/Month' in 'From mm.yyyy' -12 to 'To mm.yyyy' -12 (HIDE FIELD)
    3. 'Variance %' which use function [ 'Cost' % 'Cost -12']
    After I Inputted the value of From Value 04.2011 & To Value 06.2011, it show 6 column of the cost in Apr 2010, May 2010, Jun 2010, Apr 2011, May 2011, Jun 2011, It show 0 under the 'Variance %' of Apr 2010, May 2010 & Jun 2010 is correct, but it can't calculate the any value of Variance % under Apr 2011, May 2011 & Jun 2011.
    Please advice
    Thanks & Regards
    Jack

    Create a CKF/formulae - then use Data Functions.
    Use SUMGT operator.
    SUMCT:
    It returns the result of the operand to all rows or columns
    SMGT:
    It returns the overall result of the operand
    SUMRT:
    It returns the query result of the operand
    How to use sumct, sumgt and sumrt
    http://help.sap.com/saphelp_nw04/helpdata/en/03/17f13a2f160f28e10000000a114084/frameset.htm
    Regards,
    rvc

  • BEX 7.x: Condition on the comparison of 2 characteristics

    Hello,
    My target was to create a query based on the cube of the BW statistics in order to determine the requests loaded in Cuves with Aggregates that were not yet actvated (missing Rollup).
    Due to a strange SAP bug on the standard 0TCTREQNAGR KF that brings me results that are already agregated, I would like at least to filter the resulting records by comparing 2 characteristics:
    1) 0TCTLSTAGRQ Last Aggregated request
    2) 0TCTLSTLDRQ Last Loaded request
    If they are equal, the KF is false and I don't want to display the record.
    Do you know how I can do that (I aready tried playing with withut success)? By default do you have another idea on how I could make such a query?
    Thanks in advance.
    BW 7.x SP 17.
    Best regards,
    Stephane DIETRICH

    Please see here:
    http://help.sap.com/saphelp_nw70/helpdata/EN/03/6ba03cc24efd1de10000000a114084/frameset.htm
    You will need to keep both these chars in the drilldown for the formula variable and resulting formula to work. Start creating the formula variable and choose the rpocessing as replacement path and then choose one of the requid chars you have mentioned in the first post. Once both formula variables are created, create a formula to compare the values of these 2. Treat this as boolean so that the output is either 1 or 0. Then create a condition on this formula to display only when 0 (false, meaning that the 2 values are not equal, or the other way around depending on what your query has to show).
    Hope this helps...

  • Conditions In BEX Query Designer

    Hi Users,
    I have a scenario to be implemented in my queries.
    Scenario 1 -
    I have a Characteristic field F1.
    I have to create a coloum C1 in report display result which populates the below condition:
    If F1 = '12345' then C1 = YES
    ELSE it should be blank.
    Scenario 2:
    I have two date fields D1 and D2 with their corresponding KPI fields DV1 and DV2.
    DV1 is for D1 and DV2 is for D2.
    First D1 is compared with D2 and whichever is latest date then its corresponding field should be populated and other should not.
    Example if D1 is 01.04.2014 and D2 is 22.04.2014 and If DV1 is 100 and DV2 is 200
    Then only DV2 should be populated and DV1 should be empty.
    Can anyone please suggest?
    Regards
    Syed

    Two things to note before we move to solutions.
    You need to convert all the dates(D1 and D2)and characteristic (F1) fields into Keyfigure with the help of formula variable with replacement path which are to be used in if else condition for comparison.
    You cannot populate string (YES) at Bex lsevel so instead of that you may use number if that suits your requirement.
    Now once you have converted the same then write the condition as below:
    Scenario 1 -
    I have a Characteristic field F1.
    I have to create a coloum C1 in report display result which populates the below condition:
    If F1 = '12345' then C1 = YES
    ELSE it should be blank.
    (FV1==12345)*1+(FV1<>12345)*0
    For Scenario 2:
    (D1>D2)*DV1+(D1<D2)*DV2
    For converting the char into kfs refer the below document:
    Convert a Characteristic into a Key Figure (BEx)
    Hope this helps.
    Regards,
    AL

  • Options in Assignment of Condition in BEX Query Designer

    Hi Experts,
      I am trying to define a condition in BEX Query Designer.
    I defined my condition and bit confused with Characterstic Assignment
    What Happens if is select 9What is the difference)
    1) All Characterstic in the Drilldown Independtly
    2)Most Detailed  Characterstic Along the Rows
    3)Most Detailed Characterstic Along Columns and
    4)Individual Chars and Chars.Combinations
    Thanks

    hi,
    chk the link
    Query creation
    http://help.sap.com/saphelp_nw70/helpdata/EN/f1/0a5625e09411d2acb90000e829fbfe/content.htm
    http://help.sap.com/saphelp_nw70/helpdata/EN/42/d21c1f46076bb2e10000000a1553f6/content.htm
    Ramesh

  • Condition (Defintion) in BEX Query Designer

    Hi Experts,
      I am trying to define a condition in BEX Query Designer.
    I defined my condition and bit confused with Characterstic Assignment
    What Happens if is select 9What is the difference)
    1) All Characterstic in the Drilldown Independtly
    2)Most Detailed  Characterstic Along the Rows
    3)Most Detailed Characterstic Along Columns and
    4)Individual Chars and Chars.Combinations
    Thanks

    Hi,
    <b>● All Characteristics in the Drilldown Independently</b>
    This setting allows you to apply a condition in a general way. Depending on which characteristics you use in the drilldown, you obtain different results.
    Note that the characteristics that are already used in an active condition for characteristic combinations are not included.
    This option is optimized for ranked list conditions, but can also be used for threshold value conditions with relative values.
    <b>●Most Detailed Characteristic Along the Rows or Columns</b>
    This option is optimized for threshold value conditions. The condition is applied to the most detailed characteristic of the rows or columns.
    Note that this function is not supported when executing the query in the BEx Analyzer. For more information, see Restrictions in the BEx Analyzer.
    <b>● Single Characteristics and Characteristic Combinations</b>
    This setting allows you to evaluate the condition for characteristics or characteristic combinations defined for specific drilldowns only. You can select any characteristic (of the characteristics used in the query in rows, columns, or in the free characteristics) or a characteristic combination.
    ○       If you only want to evaluate the condition when a certain characteristic is present in the drilldown, select this characteristic.
    ○       If you want to evaluate the condition for characteristic combinations, select multiple characteristics.
    Source:
    help.sap.com
    For more information and examples please check the following link:
    http://help.sap.com/saphelp_nw70/helpdata/EN/73/702e39074dc93de10000000a114084/frameset.htm
    Hope it helps.

  • Char restriction in Bex Query Designer

    Hi Gurus,
    Can anyone explain what is the use of the Characteristic Restriction Area in in the BEx Query designer
    If i set 0CALYEAR =2008 in the Char Restriction and in the column definition i set the one of the column to display data from year 2009. Will it work ?
    Please advice
    Thank you
    BR

    There are two type of characterstic restrcitions in the query. Global and local.
    If you are createing a restrcited key figure or selection and restricting calday then it will be restricted to that particular key figure (and show 2008 data) and in the columns it will show you other years data (i.e. 2009 data).
    But if you are using a global fiter in the filter tab of query designer, then it will be applicable to the whole query.

  • Issues with Writing back data to Planning Cube After adding a new characterstic

    Hello,
    We have two cubes and a MP on top of it. ( Reporting Cube and Planning Cube ). An aggregation layer has also been built and so does a planning BEx query on top of it.
    Before Scenario: things were working fine as we were able to write back data to planning cube using the BEx.
    After Scenario: We created a new Dimension in the planning cube and added a new characteristic ( lets call it ZX_KEY ) . This Characteristic holds the concatenated values of some of the other characteristics in its master data tables . ( For ex: Account_Customer ID_Country-code_Industry-code ).
    This new characteristic is also present in the reporting cube and has been added and transferred to MP.
    This new characterstic was added to the planning BEx query as one of the rows and we executed it the analyzer. After entering the required values for all characterstics ( including the newly added ZX_KEY ) and the key figure values, we tried saving it. Now this is where the Analyzer is throwing up this error..
    ~~Characterstic combination cannot be assigned to part provider ~~
    ~~Characterstic 'ZX_KEY'; Characterstic value 'R123000000_12_US_TX'~~
    ~~ Entered values are incorrect:Correct before navigation ~~
    The value that we are entering ( R123000000_12_US_TX ) is picked up from the master data table of ZX_KEY by double clicking and selecting it from the fetched values. So i am not sure as to why its throwing up the above error. Request your help on this please.
    regards,
    Karthik

    Hi,
    Try to check that all characteristics are correctly assigned at multiprovider level.
    hope it helps

  • BEX report selection issue

    Hi,
    I need to resolve 2 issues related to BEX
    issue 1
    when I am looking for a username I need to type the exact combination of upper and lower case  letters. e.g I have JOHN in the username MD and if I type John, I don't get any result.
    issue 2
    I would like to have the full description displayed for name. currently is only showing abbrevations and key code
    how do  I change these in Query designer
    thanks

    Hi Bhat Vaidya,
    If you want the system not to distinguish capital and small letter differently, you have to make settings at the info object level.
    If you want ur sys to treat JOHN and john as same , you cannot do anything at query level for that you have to change the following settings of underlying object(characterstic object)
    First uncheck the check box of GENREAL tab of that INFOOBJECT MAINTAINCE screen it is becoz If this indicator is not set, the system converts all the letters into capital letters when you use a screen template to input values. During the load process or in the transformation, no conversion occurs. This means that values with lowercase letters cannot be updated to an InfoObject that does not allow lowercase letters.
    As you are not allowing lowercase letters while entering value into variables any characters that you type in the variable screen, are converted automatically into capital letters.
    Coming to your second query,
    For that change settings in Tab Page: Business Explorer
    Setting to be changed is
    Description BEx
    In this field, you determine the description that appears for this characteristic in the Business Explorer. You choose between the long and short descriptions of the characteristic.
    Regards,
    Rajkandula

Maybe you are looking for