Date logic in Bex

I  have two restricted KF’s.
First one should display the data for >1 year from today’s date.
(eg :  03/21.2006     to 1 year.   (this 1 year I am naming it as ‘A’)
The second one should display the data from A to back. (back means up to whatever the data is there in the cube)
Your help is appriciated.
Thanks
Basava

How about the following?
restrict the second KF by restricting the today date and a fixed date 01.01.1900.. ?
regards,
Hari

Similar Messages

  • Error while trying to retrieve data from BW BEx query

    The following error is coming while trying to retrieve data from BW BEx query (on ODS) when the Characters are more than 50.
    In BEx report there is a limitation but is it also a limitation in Webi report.
    Is there any other solution for this scenario where it is possible to retrieve more than 50 Characters?
    A database error occured. The database error text is: The MDX query SELECT  { [Measures].[3OD1RJNV2ZXI7XOC4CY9VXLZI], [Measures].[3P71KBWTVNGY9JTZP9FTP6RZ4], [Measures].[3OEAEUW2WTYJRE2TOD6IOFJF4] }  ON COLUMNS , NON EMPTY CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( CROSSJOIN( [ZHOST_ID2].[LEVEL01].MEMBERS, [ZHOST_ID3].[LEVEL01].MEMBERS ), [ZHOST_ID1].[LEVEL01].MEMBERS ), [ZREVENDDT__0CALDAY].[LEVEL01].MEMBERS ) ........................................................ failed to execute with the error Invalid MDX command with UNSUPPORTED: > 50 CHARACT.. (WIS 10901)

    Hi,
    That warning / error message will be coming from the MDX interface on the BW server.  It does not originate from BOBJ.
    This question would be better asked to support component BW-BEX-OT-MDX
    Similar discussion can be found using search: Limitation of Number of Objects used in Webi with SAP BW Universe as Source
    Regards,
    Henry

  • Issue with status of data information in Bex analyzer report

    Hi BI gurus,
    One of the queries showing older date for the "status of data" information in the report of Bex Analyzer. I have tried to correct it in Bex analyzer by removing existing Text information element and adding a new Text element in the Bex Analyzer designer for the query. But it doesn't worked out as the changes made to the query through Bex Analyzer are only being saved as a local work book rather than reflecting to the query. Please suggest me with some options to resolve this issue and give any Idea to correct the "Status of data" in the Bex Query designer.

    Hi Aditya
    This is a common problem faced by users when reporting on Multi-Provider.
    In my project what I did to overcome this is to run a Fake DTP to the cube whose status is creating problem.
    Like , if under MultiPro I have a planning cube which is only updated monthly but all the actual cubes updated daily.  In this case create a DTP under Plan cube with some impossible selection condition ( like fiscal year 2099). This will bring 0 records to planning cube ( and thereby not impacting the data) but will update the last loading time.
    Regards
    Anindya

  • How to get the "current date" in the BEx?

    Hi all,
    I need to get the "current date" in my Bex report in order to make a comparison. I know there is a "How to" which shows how to get the current date via a User Exit, but I didn't find it. Could you please help me?
    Thanks

    1. Create a  New Formula in Key Figures structure
    2. Give tech name and description and Select "New variable" option
    3. Next screen will launch Variable Wizard -> create a new variable with replacement path as processing type
    4. in next screene  select the date characteristic that represents the first date to use in the calculation (From Date)
    5. In the next  screen select Key in the Replace Variable with field. Leave all the other options as they are
    6. In the next Currencies and Units screen select Date as the Dimension ID.
    6. Save variable
    repeate the Above steps to create another variable (To Date)
    and now you can use these two new replacement path variables in your new formula.
    Dev

  • MDX calculation based on date logic for the Jan 1 of current year through the 15th of the previous month

    Hello, 
    We need some help with an SSAS MDX query based on date logic. One of the problems is that I don't have access to the Cube but have been given a query example with the logic needed for the calculation. Here's the scenario; 
    The ETL process will run on the first Tuesday after the 15<sup>th</sup> of a given month. The Analysis Cube data queried should include the current year up to the end of the previous month. For example, on May 19<sup>th</sup>
    (the first Tuesday on or after the 15th) the query should include data from January 1<sup>st</sup> through April 30<sup>th</sup>.
    The 15<sup>th</sup> of the month is not part of the query, it is a factor in when the query is run. The query will always be in terms of complete months.
    SELECT
                    NON EMPTY { [Measures].[Revenue Amount],
                    [Measures].[Utilization],
                    [Measures].[AVG Revenue Rate],
                    [Measures].[Actual Hours] }
    ON
                    COLUMNS,
                    NON EMPTY { ([dimConsultant].[User Id TT].[User Id TT].ALLMEMBERS * [dimConsultant].[Full Name].[Full Name].ALLMEMBERS * [dimConsultant].[Employee
    Type].[Employee Type].ALLMEMBERS ) } DIMENSION PROPERTIES MEMBER_CAPTION,
                    MEMBER_UNIQUE_NAME
    ON
                    ROWS
    FROM
                    ( SELECT
    ( { [dimDate].[Week Date].[1/4/2015], [dimDate].[Week Date].[1/11/2015], [dimDate].[Week Date].[1/18/2015], [dimDate].[Week Date].[1/25/2015], [dimDate].[Week Date].[2/1/2015] } )
                    ON
                                    COLUMNS
                    FROM
                                    ( SELECT
    ( { [dimIsBillable].[Is Billable].&[True] } )
                                    ON
    COLUMNS
                                    FROM
    [SSASRBA]
    WHERE
                    ( [dimIsBillable].[Is Billable].&[True], [dimDate].[Week Date].CurrentMember ) CELL PROPERTIES VALUE,
                    BACK_COLOR,
                    FORE_COLOR,
                    FORMATTED_VALUE,
                    FORMAT_STRING,
                    FONT_NAME,
                    FONT_SIZE,
                    FONT_FLAGS

    Hi Hans,
    Thank you for your question.  
    I am trying to involve someone more familiar with this topic for a further look at this issue. Sometime delay might be expected from the job transferring. Your patience is greatly appreciated.  
    Thank you for your understanding and support. 
    Regards,
    Simon Hou
    TechNet Community Support

  • Not able to access the Date variable in Bex report after SP upgrade

    Hell Experts,
    We have upgraded the support pack to 27 and after that we are not able to access date variable in Bex report.
    We are not able to restrict the Posting date on variable, we are getting the message "Operation failed! No detailed error information from backend available".
    Thanks
    Chetan

    Hi,
    carry out basic checks like RSRV for the field,query ,Infoprovider on which this query is based..
    Check whether there is any in consistent value in the posting date..
    check whether objects are active correctly..
    else serach for SAP note or raise OSS to SAP..
    Thanks and regards
    Kiran

  • How to get year format result on date format in Bex

    Hi,
    I have requirement to display only year and month in seperate rows as a result in Bex.
    I have created on date field like MM/DD/YYYY and i have to display in two seperate rows as MM/YYYY and YYYY.
    Could anyone please suggest me how i can display these format in Bex.
    thanks in advance.

    Hi Prashant
    Regional settings of Windows are used to dispaly Date format in Bex reports.
    you neesd to change the settings in Regional settings:
    Control Panel-> Regional settings
    this will change to the desired Date format.
    Regards
    Vivek Tripathi

  • Date formats in BEx selection screen

    Can we set date formats to use the European format as a default (by person) in Bex?  I don't see varialbes taht are set-up this way.

    Hi laja,
    BEx date format is based on the global settings made on each indiviual PC user.
    to change the default USA date format in BEx to your required format,
    Go to > Control Panel > Regional and Language options > customize (or) select your country from the list.
    http://www.vistax64.com/tutorials/156918-date-format-change.html

  • Date format in BEx

    dear all,
    i have a rather simple but puzzling question on my mind regarding date format in BEx reporting.
    here's the problem... in SU01 the date format for my users are MM/DD/YYYY.
    So for example, a variable in my BEx report, will only accept this value "03/2007" (month/year)
    question is,
    what settings can i make to allow different date formats for both 03/2007 and as well as 03.2007. Note the slash (/) and decimal (.)

    Hi SCHT,
    In SU3 make the properties for date as MM.DD.YYYY and then log-off and retry.
    Bye
    Dinesh

  • How to eliminate # for empty date value in BEx Analyser

    Hi Gurus,
    Can any one please let me know how to eliminate # for empty date value in BEx Analyser.
    Thanks in advance
    peter

    Hi
    add the following macro to your workbook (template workbook):
    Sub SAPBexonrefresh(qstring As String, resultArea As Range)
    For Each c In resultArea
    If LCase(c.Value) = "not assigned" Then c.Value = ""
    Next
    End Sub

  • How to add logic in Bex designer?

    I have one formula field ZPERCENT in my query designer. ZPERCENT(%) = ZQTY / ZREVENUE. Now I want to add one logic in Bex deisgner, if ZQTY is equal to 0, then field ZPERCENT should be 100%. Does anyone have an idea how to make it possible in Bex designer? I'm using Bex 3.5 version. Thanks a lot.
    Formula ZPERCENT:
    1st selection:ZQTY
    2nd selection: ZREVENUE

    Hi,
    (ZQTY NOTEQUALTO 0) * (ZQTY/ZREVENUE) + (ZQTY=0)*100

  • Last Consumption & Last receipt date logic

    Hi
    I am facing some issue while developing BI Stock report where user wants last consumption date & last receipt date in the report.
    But issue is that when i am going to develop BI query how can i differentiate date for both consumption & receipt because consumption & receipt has differentiate with movement type (suppose Mov type : 101 is for receipt & 261 is for consumption then if i use exceptional aggregation and put last value & reference char as Mov type then all 101 & 261 mov type data will come.
    Please guide for developing last consuption & last receipt date logic
    Regards,
    Gaurav

    Hi Anshu
    Thanks for your helpful reply.
    This is my last option as you suggested. But i will share you my concern that i have developed report on 0IC_C03 & in our business scenario, If i change ETL Structure then we need to delete target data, & we have millions of records if i reconstruct the data then it will take 4-5 days times. Also, some times our marker is interrupted then we need to again the same activity so i want to avoid the same activity in Workbench side and do all required changes in BI Query side.
    Can we use customer variable for time characteristics for the same issue.
    If there is any other idea in your mind, Please share.

  • Merging data from SAP BEx queries with SQL - Keys are details not Dimension

    I have a challenge when trying to merge data from a BEx query and a relational source in SQL Server.
    I have a characteristic for Material, with an associated Material key that is a attribute of Material in the BEx query.  On the SQL side I have a Material ID which is they unique identifier.
    So when you Merge Dimensions in a WebI report, it is exactly that merging dimensions,  so you link Material from BEx and Material ID from SQL.   However, on the Bex side Material displays a long text field which will never join to the data from SQL which is an ID.  The like for like objects are Material Key in BEx and Material ID in SQL, however, as Material Key from BEx is an attribute to manifests itself in WebI via a universe as a Detail object, which makes it unavailable for merging.
    I have tried to set the Material characteristic to display as KEY in the BEx query design, but alas it still comes through as a long text, hence still not able to merge data sets.
    Any workarounds ??
    Andrew

    Hi Andrew,
    In universe designer, edit the material key detail object. Copy the text that refers to the characteristic attribute in your BEx query. Create a new dimension (say, 'Material Key') and paste this text as the definition.
    Essentially you're turning a detail object into a dimension, which (in my limited experience) works just fine.
    Let me know how you go.
    DG

  • Chart from data with two bex queries in crystal reports 4.0 for enterprise

    Hi,
    I'm fairly new to crystal reports and I have a requirement to show the data from 2 bex queries in one single cross table. is it possible ?
    after getting it i should be able to create chart with that data
    Eg: my table would be something like below :
                   calendar day
    Input     : 12      34     50     60
    Output  :  09     23     19     57
    Input Data will be coming from one bex query
    Out put data comes from another bex query
    is it possible to merge the dimensions and then work on ????         
    any help is much appreciated

    Hi Tanveer,
    The only way you can add two BEx queries in a report is using a Subreport. The First BEx query goes in the Main Report and the second one goes in the Subreport.
    You'll not be able to add the dimensions and measures from these two BEx queries in a Crosstab anyway. Perhaps, you could create a mock crosstab and send values (all rows) from the Main Report to the Subreport as a string however, I can see that it's going to get complex.
    -Abhilash

  • Date condition in BEx is getting converted as String prompt in Crystal

    Hi,
    The Date condition in BEx is getting converted as String prompt in Crystal Reports.
    User is not getting the flexibility to select date using Calendar option because of string type
    Please advice
    Thanks,
    Vishal

    Post your question BEX and B1 and classic SAP data source issues to the Integration Kit forum

Maybe you are looking for

  • Iphone movie rental

    how long do you have the movie rented for? can you view the movie more than one ? when you download the movie to the iphone can you watch the movie a few times or is it a one shot deal?

  • Trying to download gifts, Apples says I need to upgrade to the laster version of iTuens. I have the most current version of iTunes. What's up?

    I have been trying to download gifts, Apples says I need to upgrade to the latest version of iTunes. I have the most current version of iTunes. What's up? Is there a work around for this? Thanks!

  • Agent determination failed

    HI I am using a rule with responsibilities created through PFAC in the loans workflow. We upgrading are from 4.6c to ECC.6 The workflow and rule use to work well in 4.6c. In ECC 6 ,Simulating the rule works fine,but when running the workflow an error

  • RAID-1 performance with Sun v40z

    We are using Sun v40z machines with built in LSI RAID controller (RAID level 1). I was wondering about the performance of RAID on these machines. Our application does a lot of I/O (mainly random and sequential reads). Since we are using a RAID-1 syst

  • Trip advance

    hi gurus i am going to post in Trip Advance in T.code: PR03, i am getting error. please solve the issue. Entry not found in table T706B1. Argument: 40VERP20100120 Message no. 56016 thanks in advance