BW Query Designer  -  Replacement Path Issue - Need Number of Days

The requirement is to have "Number of Days" (Key figure) by using the formula SY-DATUM MINUS General Availability Date.
GA(General Availability (Date is Calculated Using a hidden Formula Variable with the Processing type u201CReplacement Pathu201D
to convert the Free Characteristic 0WBS_ELEMT__CWBSUSR09 into the Date Format.
     The Sy-datum brought using another hidden Formula Variable with the Processing type u201CCustomer Exitu201D, after checking whether the Project Close date is in Future (after GA Date).
There is SAP Note 1005772 available, it will be of Little Help.
Rgds
Venu

Re: Years of Service
Here is the similar scenario, but need help on how to resolve this issue.

Similar Messages

  • Replacement path issue

    Hello,
    Can anybody please help me with a replacement path issue which I have been struggling with for days, and I am completely lost
    now and close to despair!
    Here's what I am trying to do. I have a simple query with one key figure (let it be Presence) and three items in structure in rows: 0EMPLOYEE, 0PROFIT_CTR and variance. The idea is to show the result both for the person (0EMPLOYEE), and compare it with their overall profit centre result, and calculate variance.
    For example:
    John Doe: 50% (presence)
    Profit centre which John belongs to: 40% (presence)
    variance: 10%
    The only variable I want to input is John's name, and the query is supposed to find his current (time dependant) profit centre (0EMPLOYEE_0PROFIT_CTR) and use it to calculate the profit centre result. Is there any way that I can achieve this?
    Once the query is done, I want to set it up on the Broadcaster to run for all the people in the firm.
    Please please help me,
    Cheers,
    Agata

    Aglukas,
    You need two queries to achieve this
    Query 1 u2013 ( this gets Profit center of that employee to feed into Query 2)
    Column Presence(key figure)
    Row u2013 profit center
    Employee u2013 Employee variable that is user entry
    Query 2 u2013
    Column u2013 Presence
    Row Structure u2013 Selection 1- Title- Employee u2013Restriction should be employee with user entry variable
    Selecton 2 u2013 Title For entire profit center u2013 Restriction should be Profit center u2013 Variable should be-Replacment path Variable- fetching Profit center from Query 1
    Selection 3 u2013 Selection 1-Selection 2 this could be a cell defination.
    Hope this helps
    Regards

  • How to get Date Difference in Query with Replacement Path !

    I need to get nr of days between two days. I knew that we can do this by replacement path in the queries. But when Iam trying to use replacement path with
    this two chars and put it in a formula the result is not showing correctly.
    Eg: I have dates Date1, Date 2 and I created two variables calles DateA ,Date B with reference to Date1 and Date2.
    Now Iam creating a formula sayint that (Date2 <> 0) * (Date1 - Date2) ...Here Date2 has sometimes balnk value...Iam getting the values when there is dates for both chars...But if there is one value is blank
    then Iam getting a strange value ....
    can any body send me step by step on how to fix this...
    Thanks

    Hi Sam,
    another important think you have to remember when having aggregated information is to divide the date1 and date2 key figures with the number of lines used in aggregation.
    Remember that date1 (internally) is a numerical value from some initial date which is used as reference. E.g., if the reference date is 01/01/0001  and you have the date 15/01/0001 then key fig. date1 internally stores just the value 14. So if you have something like:
                             date1       date2        diff
    customer1  material1       14          18           4  <- correct
    customer2  material1       14          18           4  <- correct
    and then you make an aggregation by removing customer from your report then you will have the following situation:
                             date1       date2        diff
    material1                  28          36           8    <- wrong
    So, you would have to divide by 2 in the second case. Please try to check the above and proceed accordingly. Let us now if something else weird appears.
    Best regards,
    Theodoros

  • Query Variable - Replacement Path

    Hi all,
    I would need to fill a query variable (based on calendar week characteristic) with specific list of values. I need all calendar weeks that are present in infocube, but only if key-figure > 0. So I've created a query with cal. weeks in rows and with suppressed zero rows. Output values from query contains exactly what I need.
    Than I created a variable (replacement path) with reference to mentioned query. But it seems to me that the variable does not contain all values displayed in the query, but only filtered values (if I use some restriction of cal. week).
    Is it possible to achieve this using replacement path at all?
    If not I would appreciate any idea or experiences how to accomplish this requirement.
    Many thanks,
    regards,
    Pavel

    Hi Pavel, I didn't get your requirement 100% . Still, I would like to tell How Replacement path works.
    First of all for the Source query you have given condition to restict the output of the query on particular keyfigure value > 0 ......  Right.
    Now on second query, you have created the Characteristic variable with Replacement path....here some important things to look at.
                    while creating the variable, select Processing Type as REPLACEMENT PATH, then in the "Replacement path" Tab,  give Replaced variable with.. "Query" ...and at bottom, For QUERY give the query name.
    If u want RRI facility from Source Query to Target Query, then u give RRI Connection in T-Code : RSBBS....
    ...and now when u execute the Second Query, First the first Query will be executed and those filtered values > 0 will be passed to the Second Query's variable input...then the second query will be executed...
    But, in your case check once again all settings in Variable in Second Query..and Conditions block in First Query..
    It should definitely work...
    ---Intros.
    Edited by: Intros on Apr 25, 2008 1:31 PM

  • Formula variable / Replacement path issue

    Hi Experts,
    I have a Field which has different status description.
    I want to bring the count of only one preferred description.
    Model Status
    A1     New
    A2     Open
    A3     New
    B1     Closed
    B2      Pending
    B3     New
    I want to view only the closed count of models
    Model Count of Closed
    A1     0
    A2     0
    A3     0
    B1     1
    B2      0
    B3     0
    I tried doing this using the formula variable and Replacement path with Status Field.
    But I'm unsuccessful in selection the desired status.
    Please help me to over come this.
    Thanks

    Hi Dear Prasad,
    I can't restrict the characterstic to Closed. If I do so the output will be only for Closed.
    But here I want to bring every model with value as 0 and 1 for model with closed status.
    Hi Dear Raju,
    The requirement what I have here is more complex. like, the result will be for 6 month displaying every single cal/day.
    and also I have to find out percentage of closed for every cal/day based on number of model we got.
    i have only asked a small portion of it, with this input i will manage to build the percentage etc....
    I  cannot bring counter inside. My report is already too wide to be displayed.
    I have tried similar kind of thing, using CKF, Formula Variable and Replacement path with the Char - InfoObj.
    http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/009819ab-c96e-2910-bbb2-c85f7bdec04a&overridelayout=true
    But I'm not very sure how do I get only count of the my desired status.
    Please help.
    Thanks

  • Nav Attribute Calculation in Query with replacement path variable

    Gurus,
    Can we use attribute of a charecteristic in calculation based  on the sap how to below.
    https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/72f4a790-0201-0010-5b89-a42a32223ffc&overridelayout=true
    Basically above document uses attribute which is KF key figure ,but i want to use a attribute which is if type - NUMC.
    So the question is can i directly use the same steps mentioned in the link or need to modify because the type is NUMC.
    Thanks in advance

    Hi Andrew,
    You can not use the attribute with NUMC in calculation. In order to do the calculatio based on attribute you have to create the attribute as Key Figure type. I mean to say as described in the document.
    NUMC is data type Char string with numbers and you can not do calculation based on Char string.
    Regards,
    Kams

  • How to feed a query using a variable defined as Replacement Path-Query

    Scenario description : BI NetW 2004S - InfoCube with the following characteristics Customer, OrderDate, OrderYear and the following KeyFigure Number of Pieces.
    Objective: I need a query "QB" that shows how many pieces a set of customers has ordered in the year 2008. The set of customers is defined as all customers that in the previous years (the user can select one or more years) have ordered more than 500 pieces within the same year.
    Implementation: In general terms the idea is to build a query "QB" with the characteristic "Customer"  that is restricted (filtered) using a variable that is fed by another query "QA" (Replacement Path-Query).
    In order to have the selection of customers that for each of previous years (2007, 2006, 2005,...) have ordered more than 500 pieces, in the query "QA":
    - I put OrderYear as filter and defined a variable in order to ask the user which year/s he wants to analyse to define the selection
    - I put Customer and OrderYear in row
    - I put the KeyFigure Number of Pieces in column
    - I've defined the following condition: Number of Pieces > 500 with the option Caracteristic Assignment = All Characteristics in the Drilldown Indipendently
    Now if I run the query "QA" it works correctly showing me all customers that in the selected years have ordered more than 500 pieces within of the same year.
    If I run the query "QB" it shows a correct result only if I enter only one year (for example 2006) in the OrderYear field (coming from the query "QA"); if I enter more than one year (for example 2006 and 2007) the selection of customers showed is not the same defined by the first query "QB": I was expecting to see all customers defined from the first query less all customers that have no ordered any piece in 2008.
    Questions
    1) Why is query "QA" working on a different selection of customers when the user selects more than one year?
    2) Cosidering the scenario and the objective described above do you have any other idea?
    Thanks
    Ciao
    Roberto

    Hi Christophe,
         it's ok for me if I consider the customer only once in the final selection of customers that feeds the final query, this is my objective.
    However as test I've created 2 "input" queries, one related to 2006 and one related to 2007, and then in my destination query I've tried to restrict the customer using 2 variables of type replacement path-query (one attached to the 2006 query and one attached to the 2007 query). Unfortunately when I try to check and save the destination query, Query Designer tells me it is not possible to restrict the characteristic in this way.
    Could you please describe me steps you run in to order to restrict a characteristic using more than one variable of type replacement path-query?
    Thank you in advance for your answer.
    Ciao,
    Roberto

  • Passing Blanks instead of  ' # ' in Replacement Path query.

    Hi Experts,
    I have a main query which gets its cost center values from another query with replacement path variable.
    The variable should return BLANK to the main query inorder to display all costcenters. But blank is interpreted as '#' and the main query returns No application data found as it treats blank as '# /Not Assigned' instead.
    How to achieve this.
    Please suggest if anyone has done this before. This is we a Web report Not Excel.
    Thanks
    Sarah

    Thanks Arun, I understood the logic now for blanks.
    But,
    1) How to pass 'ALL' for the filter values.As the sub query returns no application data found instead of all cost centers. This is because in the data in ODS is
    <b>UserID CostCenter</b>
    A                   
    B        11234
    C        12345
    D     
    (Blank- representing all costcenters)
    2) Another option was thinkin to have the client fill in the ztable based on which the generic Datasource is made with costcenter values for each user instead will that help.
    Appriciate your help.
    Thanks
    Sarah

  • Replacement path does not work for a specific query after migration 7.0

    Hello all,
    We have a problem with a replacement path variable in a query.
    After the migration, it seems this replacement path doesn't work.  This replacement path is defined inside a structure that is used in some other queries and for the other queries is working properly.
    Another think we have done is to make a copy of the query where the replacement path doesn't work and the copied query works ok.
    Did anybody find this kind of problem in a migration. Any help will be appreciated.
    Regards, Inma

    This is just for those who might have simmilar requirement &  would in case refer to this thread..
    Me too faced same problem of OLE DB for OLAP cant be released. I was using  replacement path query variable which was using result set from the other  query.
    I just had to uncheck 'Allow External Access' in release for OLE  DB for OLAP in query properties. This worked from me, my query using replacement path variable is giving desired results.
    Hope this might be useful for relevant users.
    Regards,
    Pritesh

  • Passing Selection Variables via Replacement Path

    I need a query(main) with list of Debits and Credits. I am pulling list of credits(side) from a seperate query for a specific selection and a condition in main query via replacement path, both on same ODS infoprovider. But in the side query, I cant put any selections or restrictions as they are dependent on main query result.
    The side query itself when running is taking more than 5 mins due to large number of records on ODS.
    My question is Can I pass selection variables from main query to side query?

    It's always nice to see someone resolve their own problem. 
    It's even nicer if they explain what they did/changed/learned to solve it so that the rest of the community can benefit.

  • Infoarea missing in query designer

    Hi All,
    We are using BI 7 analysis authourization, we had a request for one user to add one ods access, we have granted access to the user to ODS via RSA1. But issue is we are not able to see the infoarea and ods in query designer.
    Is we need any authourization to use the ods in BEX analyser or any other things need to be followed
    Regrads,
    Anbu

    Hi Anbu ,
    For query we need to assign some roles .Sometime even if we are able to see an infoarea in RSA1 but not able to see the query
    Check the role that query is having in RSA1->metadata repository
    In BEX analyzer you can check roles assigned to that user .This will tell you which infoarea are accessible to the user .
    You can also check in SU01 for roles of a specific user .
    Ask your BASIS to check which roles are needed to be assigned by comparing roles of user who can see those infoarea and who cannot .
    Hope this will help .
    Regards,
    Jaya Tiwari

  • Query designer removing parts of where clause in VS 2012

    I'm new to reporting services and I'm finding the query designer very frustrating.  First off,  I have read here and
    am having a problem where the tool automatically wipes out parameters I have changed/added in the query designer.  I read this 5 years ago, yet it seems that this problem still exists.  I've tried changing the XML as suggested by some with mixed
    results.  Now I am having a problem when I changed the WHERE clause it keeps disappearing if I try and make any other change.  Does anyone have advice on working with this tool?  Should one keep a running copy of the query and keep pasting it
    back in whenever a change is needed?  Is this behavior not expected?  Is anything different with SSRS 2014?
    Thanks

    Hi billywinter,
    According to your description, parameters are wiping out automatically when you change something in query designer.
    In Reporting Service, if we use where clause to add parameters in query designer, Define Query Parameters will pop-up when running the query. Please refer to screenshot below:
    Regarding the issue, we couldn’t understand it clearly, and we would like to confirm something from you below:
    1. Does parameters disappear in your query? Or when you preview the report, the selected box of parameters doesn’t display?
    2. How about the query in query designer when parameters disappear?
    3. What’s the modification have you performed for where clause? And what’s the result after this modification?
    4. What the query type you are using, MDX query, stored procedure or another query type?
    Please provide more information about the issue then we can understand the issue clearly. If possible, please provide some screenshots about the query in query designer, and the results of parameters before and after changing where clause.
    In addition, we have found a feedback which descripts an issue about overwriting parameter in MDX query designer, and this issue is resolved by design. Is this issue same as yours? Please refer to this feedback:
    MDX Query Designer Overwrites Parameter Queries.
    Best regards,
    Qiuyun Yu

  • IF...ELSE.. STATEMENT in BEx Query Designer

    Hi,
    Why there is no IF, ELSE function in BEx Query Designer?
    Assuming I need to write the following logic, how can it be accomplished?
    IF (A=0 OR B=0)
        THEN 0
    ELSE IF ( B/A <0)
        THEN '       *'
    ELSE
        B/A * 100
    i.e.
    if A or B is equal to 0, then display the value of 0
    else if B is negative (as A is either 0 or positive), then display the following text: '         *'
    otherwise, display the value of  B/A * 100
    Thanks!

    Hi,
    You can achieve this by creating a new formula.
    You have to use the boolean operations and mathematical functions. But we cannot display *. u have to display some value for that.
    Khaja

  • Using Query Designer both for 3.5 and 7.0

    Hi all,
    <u>Is it possible to use different Query Designer versions (3.5 and 7.0) parallelly on the same machine ?</u>
    I have customer A using BW 3.5 and new customer B who will use 7.0.
    I need to install Query Designer 7.0 and create reports for customer B.
    But I still need to maintain customer A's queries and they were created via QDesigner 3.5.
    Since I'll just have QDesigner 7.0 finally, if I use it to edit these 3.5 queries, they won't be editable again via 3.5 Query Designer.   Which means they'll seems as corrupt for the customer, since they can't open them with their own query designer (3.5)
    I need to reach all queries for all customer systems via their own version of Query Designer.
    I wonder what's SAP solution to handle this situation.

    Hello Rozz,
    You can run both the query Designers on Bi7.0 System.
    But, you can not access the same query using the both query designers.
    Regards,
    BVC

  • Query Works in Query Designer - Doesn't Work in Report

    I have a report that runs just fine in the Query Designer, but for some reason does not run when I run the actual report. Here is the query in question:
    SELECT
    {[Measures].[Employee Hours]} ON COLUMNS
    ,NON EMPTY
    [Employee].[Employee Full Name].[Employee Full Name].ALLMEMBERS*
    [Employee].[Employee Discipline].[Employee Discipline].ALLMEMBERS*
    [Employee].[Employee Department].[Employee Department].ALLMEMBERS*
    [Employee Hours Time Category].[Utilization Category].[Utilization Category].ALLMEMBERS*
    [Employee Hours Time Category].[Time Category].[Time Category].ALLMEMBERS*
    [Project].[Client].[Client].ALLMEMBERS*
    [Time].[Year].[Year].ALLMEMBERS*
    [Time].[Month].[Month].ALLMEMBERS*
    [Time].[Formatted Week].[Formatted Week].ALLMEMBERS
    DIMENSION PROPERTIES
    MEMBER_CAPTION
    ,MEMBER_UNIQUE_NAME
    ON ROWS
    FROM
    SELECT
    LastPeriods (7, StrToMember
    (@SelectedWeek
    ,CONSTRAINED
    )) ON COLUMNS
    FROM
    SELECT
    StrToSet
    (@Department
    ,CONSTRAINED
    ) ON COLUMNS
    FROM
    SELECT
    StrToSet
    (@Disciplines
    ,CONSTRAINED
    ) ON COLUMNS
    FROM [OLSON BI]
    CELL PROPERTIES
    VALUE
    ,BACK_COLOR
    ,FORE_COLOR
    ,FORMATTED_VALUE
    ,FORMAT_STRING
    ,FONT_NAME
    ,FONT_SIZE
    ,FONT_FLAGS;
    The result set is below:
    When I try to run the actual report, I get an error on the parameter being passed in. I'm passing in a date that is formatted as a varchar as you can see from the screen shot below:
    Not sure what's going on here, but any insight would be appreciated!
    Thank you!
    A. M. Robinson

    Hi ansonee,
    Because the query execute successfully in the query designer, so the issue can be caused by the parameter in the report.
    If you have a string such as "@string" somewhere in a query, and it is not mapped correctly in the reporting services parameter section, it will send that string directly to the provider with no substitution of parameter values. This will cause
    an error like the above. Please check carefully. Here has a thread that is similar to yours, please see:
    SSRS error in MDX expression syntax is incorrect
    SSRS failing when parameter value contain SPACE in between
    Hope this helps.
    Regards,
    Vicky Liu
    If you have any feedback on our support, please click
    here.
    Vicky Liu
    TechNet Community Support

Maybe you are looking for

  • PDF Export Crash (follow-up)

    There was a thread a while back titled "PDF Export Crash." Because it was archived, I was unable to post my findings there. This issue recently became front and center for me within the last 24 hours. For those unaware, I am referring to an issue whe

  • CUE giving a fast busy

    I am facing a weird issue and wondering if someone have seen this before... Plateforme is 2801 with CME 8.6, IOS 15.1 and CUE 7.4. I believe the version of CUE is compatible and should work with CME 8.6. What's happening is I get an immediate fast bu

  • How to avoid the"Saving iTunes Library" dialog

    I have been experience this issue for a couple of weeks now, the only information that i found online regarding this was related to an antivirus, but i never used any ativirus. if there any other reason why itunes is doing this? My library is only 38

  • IPod Photo 30GB: Screen flickers white light & No display.

    The screen of my sister's ipod keeps on flickering with a plain white light, and there is still no display even though you plug it in an outlet or connect it to a pc. Could this be a problem regarding the ipod's battery? Or something to do with the i

  • Running Netweaver Identity Management SP 2 with Oracle 10g

    Hello, I'm having some troubles installing NW IDM SP2 on Oracle 10g in a Windows 2003 (32 bit) environment. According to my MMC snap in, I am running Identity Center 6778-ORA-04.2008. I installed the updates per the installer to Schema update level (