Month filter between two ranges based on user response inIDT

Hi,
I am working on SAP BO4.0.I have a requirement of creating a month filter on a date which will be between two ranges.The first range is the user response and the second range will be 6 months added to that user response.For eg:-If a user enters 1 as the response for month prompt then the date will be filtered between 1 and (1+6)=7.The database used is SAP HANA.
Please let me know if further clarifications are required.
Any help on this will be appreciated.
Thanks in advance.

Hi Riddhi ,
afaik this is not doable in UDT/IDT .Only thing we can make is to run the report for last month by using magic dates concept.
Check below logic if it helps.
For a requirement to run a report for  fiscal year starting date to last month if nothing selected .
@Select(Time\Yr-Mth Key)  between@Prompt('From Date','A','Time\Month / Year',mono,primary_key,,{'JUL 2013'}) and   
(case when @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'})='JAN 1999' then to_char(add_months(sysdate,-1),'YYYYMM')  
else  
@Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'}) end)
This is on Oracle Database.
When you run webi report
From Date : JUL 2013 (fiscal year start date)
To date : JAN 1999( without changing this you can refresh the report for last month , else it'll refresh for selected month)

Similar Messages

  • How to calculate the month difference between two date char. in Query?

    Customers would like to see how many months passed between two date type of characteristics (e.g., the month difference between the current date and the scheduled delivery date in the record) and put the result into the column as KF. 
    We would have to grab the fiscal year/period kind of value and then do the subtraction, e.g., if the current date value is 2/28/2008 and the scheduled delivery date value in the record is 12/01/2007, the correct result should be 2 month difference between these two date values, but could someone here give us the technical light on how to make this happen in query design?
    Thanks and we will give you reward points for the correct anwsers!

    Hi Kevin,
    The Badi is RSR_OLAP_BADI.
    You can create an implementation using Transaction  SE18.
    The implementation is per cube and is defined in the filters.
    In the Implementation you have the following methods :
    1. Define : Here you will provide the Keyfigure you need as a virtual one.
    2. Initilialize : Any Init Function you want to do.
    3. Compute. This is called per datarecord and here you can cimpute your value.
    Hope this helps.
    Pralay Ahluwalia

  • Shareable Interface between two RMI based applets

    Hello! I am developing a project in simulation environment (cref) in Java Card and I have one problem.
    First of all I have create two RMI based applets and I want to make one of these applets to implement a shareable interface.
    As we know a classical RMI based applet has three parts: one interface that extends Remote interface (lets call it ApplicationRemoteInt),
    one class that implements the previous interface (ApplicationImpl) and one class that extends javacard.framework.Applet which manipulates
    ApplicationImpl (ApplicationApplet).
    My problem is that I don't know which of these three programs (make it two, I don't think i could be
    ApplicationRemoteInt) have to implement an another Interface, which extends Shareable Interface (ApplicationShareable), and in which way.
    Also I think that the ApplicationShareable must be implemented by an Applet class.
    As you see I am confused, can anyone help me, please?
    Thank you in advance, Bill.

    Thank you very much for your response. I had knowledge about Shareable Interfaces between two traditional applets,
    BUT not between two RMI based applications.
    Finally I found that RMI based application does not support shareable interface:
    http://forum.java.sun.com/thread.jspa?threadID=728540&messageID=4194658
    Thank you for your reply anyway, Bill.

  • [MDX] Define date range based on user selection

    Hi All,
    I'm trying to define date range (of 3 months) using mdx based on user selection.
    This is what I'm trying to do:
    - If user select 2013, I would like range to be: from
    1 Oct 2013 to 31 Dec 2013
    - If user select Aug 2013, I would like range to be: from
    1 Jun 2013 to 31 Aug 2013
    - If user select 15 Sep 2013, I would like range to be : from
    15 Jul 2013 to 15 Sep 2013
    It is not a problem to get the upper bound of the range like this:
    ClosingPeriod(
    [Date].[Calendar].[Date],
    [Date].[Calendar].CurrentMember
    But I'm not able to get the lower bound of the range:
    OpeningPeriod(
    [Date].[Calendar].[Date],
    ParallelPeriod(
    [Date].[Calendar].[Month Number],
    2,
    ClosingPeriod(
    [Date].[Calendar].[Date],
    [Date].[Calendar].CurrentMember
    Error:If user selection is
    15 Aug 2013, I get
    14 Jun 2013
    If user selection is Apr 2013, I get
    (null)
    And even more strange, if user selection is
    2013, I get 28 Oct 2013
    Any idea of how to solve this ?
    Thanks,
    Guillaume

    Hello Guillaume,
    Can you please check if the following works for you? By the way, the performance will suffer due to all these IIF, the solution is very complex in order to avoid null in ParallelPeriod.
    with member measures.high as MemberToStr(ClosingPeriod(
       [Date].[Calendar].[Date],
       [Date].[Calendar].CurrentMember
    member measures.low as
    MemberToStr(
    iif(ClosingPeriod(
       [Date].[Calendar].[Date],
       [Date].[Calendar].CurrentMember
    ) IS ClosingPeriod(
       [Date].[Calendar].[Date],
       [Date].[Calendar].CurrentMember
    ).Parent.LastChild  --last date of the month
    OpeningPeriod(
       [Date].[Calendar].[Date],
    Ancestor(ClosingPeriod(
       [Date].[Calendar].[Date],
       [Date].[Calendar].CurrentMember
    ), [Date].[Calendar].[Month]).lag(2)
    iif([Date].[Calendar].CurrentMember.level is
    [Date].[Calendar].[Date]
    and
    Right(CSTR([Date].[Calendar].CurrentMember.Properties("KEY0")),4)="0429" --take care of 4/29
    OpeningPeriod(
       [Date].[Calendar].[Date],
    Ancestor(ClosingPeriod(
       [Date].[Calendar].[Date],
       [Date].[Calendar].CurrentMember
    ), [Date].[Calendar].[Month]).lag(2)
    OpeningPeriod(
       [Date].[Calendar].[Date],
       ParallelPeriod(
          [Date].[Calendar].[Month],
          2,
          ClosingPeriod(
             [Date].[Calendar].[Date],
             [Date].[Calendar].CurrentMember
    select  {measures.low,measures.high } on 0
    from [Adventure Works]
    where
    --[Date].[Calendar].[Date].&[20070815]
    --get [Date].[Calendar].[Date].&[20070615]
    --[Date].[Calendar].[Date].&[20070530]
    --get[Date].[Calendar].[Date].&[20070330]
    --[Date].[Calendar].[Date].&[20070429]
    --get [Date].[Calendar].[Date].&[20070201]
    --[Date].[Calendar].[Calendar Year].&[2007]
    --get [Date].[Calendar].[Date].&[20071001]
    --[Date].[Calendar].[Month].&[2007]&[4]
    --get [Date].[Calendar].[Date].&[20070201]
    --[Date].[Calendar].[Month].&[2007]&[5]
    --get [Date].[Calendar].[Date].&[20070301]
    --[Date].[Calendar].[Date].&[20070228]
    --get [Date].[Calendar].[Date].&[20061201]
    --[Date].[Calendar].[Date].&[20070831]
    --get [Date].[Calendar].[Date].&[20070601]
    If this does not work for you, I would suggest opening a ticket with Microsoft Support, with an advisory type of request.
    Hope this helps.
    Thanks.
    Meer Al - MSFT

  • Number of occurences between two dates based on a starting date + frequence

    I have a starting date in cell A1 and a frequency (in days) in cell B1. In cell C1 I have a date (begin) and in cell C4 I have a later date (end). I need to know how often the event occurs during the time between begin and end dates (inclusive).
    For instance, the starting date is january 25th, the frequency is 5. The first date is januari 25th, the second date is februari 12th. The result should be 2 (because given the starting date and frequency of the event, it will occur in februari on day 4 and 9).
    I have been looking at some of the statistical functions, but I don't think there is a function for this. Right now I have about 5 formulas to calculate intermediate results, but I'm stuck trying to combine them.
    I would be happy with just a pointer in the right direction. For instance, is there a specific name for this kind of calculation?

    michielvoo wrote:
    I have a starting date in cell A1 and a frequency (in days) in cell B1. In cell C1 I have a date (begin) and in cell C4 I have a later date (end). I need to know how often the event occurs during the time between begin and end dates (inclusive).
    For instance, the starting date is january 25th, the frequency is 5. The first date is januari 25th, the second date is februari 12th. The result should be 2 (because given the starting date and frequency of the event, it will occur in februari on day 4 and 9).
    If the event occurs every five days, the second date will be January 30, and the event will occur four times " during the time between begin and end dates (inclusive)"
    I have been looking at some of the statistical functions, but I don't think there is a function for this. Right now I have about 5 formulas to calculate intermediate results, but I'm stuck trying to combine them.
    It's not really a statistical calculation, but a simple division to find "How many whole sets of five (days) are there in the days between two dates."
    I would be happy with just a pointer in the right direction. For instance, is there a specific name for this kind of calculation?
    Two functions and one operation are needed:
    DATEDIF() to calculate the number of days between the start and end dates.
    Division to determine how many sets of five days there are in that period.
    INT() to discard the fractional part of the result.
    With the values located as described, this formula (placed in a cell on the same table) will return the number of occurrences not including the first one.
    =INT(DATEDIF(C1,C4,"D")/B1)
    To include the Start date as one of the occurrences, make this modification:
    =INT(DATEDIF(C1,C4,"D")/B1)+1
    Regards,
    Barry

  • Calculation based on user response

    I have a report with 2 columns based on the data in the first column i need to perform either sum or average for the next column
    C   July
    c1 value1
    c2 value2
    c3 value3
    c4 value4
    c5 value5
    c6 value6
    If(Match(UserResponse("M1:");"c1") OR Match(UserResponse("M1:");"c2") OR Match(UserResponse("M1:");"c3") OR Match(UserResponse("M1:");"c4");Sum([Jul]);Average([Jul]) )
    Value1,2,3,4 aggregation is sum but for c5,c6 also it is giving sum value but not average but i want the aggregation for value 5 and value 6 as avearge

    For example take efashion unv
    My requirement is if user selects california or newyork the aggregation on sales revenue should be average and sum on the other two states.
    Code:
    =If(UserResponse("State:")="California" Or UserResponse("State:")="New york" ) Then Average([Sales Revenue]) Else Sum([Sales Revenue])
    this formula is not working , iam getting blank rows under sales revenue column
    Is there something to do user response function because it returns values as california;new york;massachusetts;texas
    could you please post the correct formula
    State Sales Revenue
    California
    New York
    Massachusetts
    Texas
    Edited by: pullabh on May 25, 2010 6:35 PM

  • Current week/current Month/YTD data based on user response

    Hi
    I have one attribute request_created_date
    Based on this i want to create one more attribute which will have lovs as week(Request_created_date for current week),monthly(Request_created_date for current week),
    YTD(Request_created_date for current year to date).
    Now i want to use this new attribute (Having LOV as week/Month/YTD) as a report prompt so that user itself can select whether he wants to see
    week/month/YTD data in report.
    To Add to this :
    Req is something like this if user select week , Req_created_dates should be filtered for all the dates of cureent week.
    Req is something like this if user select month , Req_created_dates should be filtered for all the dates of cureent month.
    Req is something like this if user select Year , Req_created_dates should be filtered for all the dates of cureent year.
    How can i achieve this?

    Add One variable
    Time_Data ="Weekly"
    Create Input control (Radio Button)
    Use Custom LOVs (Add Weekly , Monthly , Yearly ).
    Set Default (Weekly).
    Now Create Another Variable
    User_Want = ReportFilter([Time_Data])
    Now filter your Report for week , Month or Year (as per Selection) using If else Statement .
    For eg.
    For Week
    [Created_Date] Between RelativeDate(CurrenDate();-7) And CurrentDate()
    For Month
    (Year([Created_Date]) = Year(CurrentDate())  And Month([Created_Date]) = Month(CurrentDate()))
    For Year
    (Year([Created_Date]) = Year(CurrentDate())

  • Sharing between two macs with one user account?

    Is it possible to connect two macs to share documents and music if they are both logged into the same user account?
    I recently bought a Mac Mini and when setting it up, I transferred everything from my Macbook Pro to it, including my user profile which I now also use on the Mini.
    Since setting up the Mini, I've been using both machines so the content on both is no longer identical. There have been occassions where I have wanted to transfer something from the MBP to the Mini or vice-versa over wi-fi and have encountered problems. I suspect this is because I am using the same user account and they get confused.
    I don't need the two macs to be identical in their content, however there are times when I want to share or quickly transfer music, documents or Garageband files from one to another. Would I be better off setting up different profiles for the Mini and the MBP to achieve this? Is there a better way to do what I'm trying to do?

    There have been occassions where I have wanted to transfer something from the MBP to the Mini or vice-versa over wi-fi and have encountered problems. I suspect this is because I am using the same user account and they get confused.
    Could you please explain, what kind of problems exactly you encountered? Error messages? Corrupted files? And why do you think the problem is caused by the same user profiles?
    Like markwmsn I have no problem with sharing using the same account name on all my macs. Only since upgrading to Mt. Lion I usually use AirDrop to send single files. That saves the trouble to copy the files to a public folder.
    Do both your macs support Air Drop?
    OS X Lion: Share your files with others near you
    and the requirements:  HT5444
    Regards
    Léonie

  • OData Query Sharepoint Rest -Filter between two date.

    Hello ,
    I'm access sharepoint list using Odate Query rest operations. 
    I am facing issue to fetch filtered data from sharepoint list. If the todays date is between StartDate and EndDate .Then it should display records .
    Ex: todays date = 26-Mar-2015
    my sharepoint list like below :
          Tile
          Sales
      StartDate
    EndDate
    1
    50
      23-03-2015
    28-03-2015
    2
    434
      21-04-2015
    23-04-2015
    3
    88
      19-04-2015
    23-04-2015
    4
    223
      17-03-2015
    28-03-2015
    So it sould return only 1st and 4th row.
    var serverUrl =
    theSiteUrl +
    "/_api/web/lists/GetByTitle('" + dvListName + "')/items?" +
    "$select=Title,Sales/Title,Body,StartDate,EndDate" +
    "&$filter=(today Gt StartDate and today Lt EndDate)"+
    "&$expand=Sales";
    the above Query I tried but not working..
    How can I achieve this ?

    Today option is not available in SharePoint REST. As a workaround, you can create a JavaScript variable which holds today's date and convert it to ISO date format before using it in the REST query:
    var today = new Date();
    today = today.toISOString();
    See this for more information: http://sharepoint.stackexchange.com/questions/105576/rest-api-filter-by-start-and-end-dates-using-today
    Blog | SharePoint Learnings CodePlex Tools |
    Export Version History To Excel |
    Autocomplete Lookup Field

  • How to get days , months , years between two dates with groovy

    I've a table that contains Start Date and End Date and I want to get the difference between then in this format 2 days , 1 moth , 1year
    Can I make this with Groovy
    I've added a transient attribute to a view object and make its value      return (EndDate) - (StartDate); but this returns the difference of days like 200 day
    I want it in this format 2 days , 1 moth , 1year

    AFAIK - You cannot do it in groovy.
    You can achieve the same using the transient variable approach.
    Create a VORowImpl Class for VO, and in the getter method of the transient variable - do the necessary logic and return the string as required in your use-case.
    Thanks,
    Navaneeth

  • How to make different forms available based on user responses

    I have created 4 fillable application forms in Adobe Acrobat 9 Standard. First time using this product.
    Boss wants a dynamic form, so that if a user answers Yes to a question in Form A, then Form B is automatically inserted into Form A for the user to complete. If they answer No, then they continue in Form A, until questions prompting them Yes/No for Form C and Yes/No for Form D.
    We believed that this might be possible if we upgraded to Acrobat Acrobat 9 Pro, with the LiveCycle Designer ES 8.2.1 bundled in.
    I have looked at Pro and can't figure it out, and I've looked at LiveCycle Designer ES 8.2.1 and am completely confused as it is so different.
    Saw a tutorial that said to go to Tools and use the Action Builder, but I don't have this option in my version. Not sure why?
    We want users to be able to use Reader to complete and save the form, and print it for mailing, emailing or faxing to us.
    Any guidance or suggestions, or advice on recommended books, tutorials, or training would be appreciated.
    We are in Ontario, Canada.
    Thanks

    Hello,
    We had a similar requirement.
    The best way we found was to implement the enhancement spot in the beginning of method LOCK_ORDERS of class CL_CRM_METHODS_BTIL. Here, you can prevent the user from editing a business transaction. Be aware this method is called for any BT, so you need to adjust your custom development accordingly.
    Hope this helps.
    Best regards,
    Sylvain AGUETTAZ

  • Tips based on user response

    After a learner takes a quiz, is it possible for Captivate to
    generate a tip sheet based on the learners answers?

    > That said, if you are a fairly experienced web
    developer, there are ways
    > to
    > get the scoring data out to the HTML page, where you can
    then use
    > Javascript to
    > evaluate the score and do whatever your web developer
    brain can think up.
    >
    >
    You could use external JavaScript to test the score, then
    navigate to the
    desired 'tip' slide. You need to learn about the built-in
    Captivate
    variables and have at least a working knowledge of
    JavaScript.
    Steve
    http://twitter.com/Stevehoward999
    Adobe Community Expert: eLearning, Mobile and Devices
    European eLearning Summit - EeLS
    Adobe-sponsored eLearning conference.
    http://www.elearningsummit.eu

  • Go URL linking between two reports with no relation

    Hi Experts,
    Sorry this question may have been asked numerous times, but I was not able to fetch the required response.
    I have two reports Repor1 based on Table 1 having columns A and B, Report2 based on Table2 having columns C and D.
    First is it possible to create a go URL moving between two reports based on tables having no replationship between them?
    My requirement is to create a hyperlink on column B in Report1 so that when a user clicks on the hyperlink it takes you to report2 and filters report2 column C using values of Table1 coulmn A. Table1 and Table2 have no relationship between them.
    Thanks in advance,
    Anura

    I had two columns in my report1 first being market and second being a measure value, i provided the following link in the formula for my measure value and made that as HTML data format, my Report2 contains the market column with one more additional coloumn and i want my second report to be filtered based on Market value in Report1.
    I don't know why but the URL that is being displayed here is not the actual url, please click on the URL to knowthe complete url that I mentioned for the formula
    '’||CAST(Sales Measures.Dollars AS CHAR)||’'
    The value of Market.Region is not being passed correctly as my Report2 gives the following message in the results view when i move from Report1 to Report2 via the hyperlink
    Region is equal to '||Markets.Region||'style="text-decoration:none;
    Please suggest what is going wrong?
    Thanks in advance,
    Edited by: Anurag007 on Jul 29, 2010 2:46 AM

  • Based on the user response need to calculate measures in universe

    Hello Folks,
    I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
    1.Based on the user response I need to create a report for previous months .
    2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
    Example Date Set :
    DIM 1                    SEP13...............................................................OCT 14      PYTD   YTD
    Florida  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    Arizona  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    M1...M6 are the measures need to come from universe based on the user prompt.
    M1,M2 Need to give previous 13 months based on user response.
    M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
    M4,M6 YTD - Jan 1 2014- OCT 1 2014].
    Thanks for your help in advance.

    Hello Folks,
    I have report where user prompts for the single day (Ex: OCT 1 2014).All calculations should be at universe layer.
    1.Based on the user response I need to create a report for previous months .
    2. PYTD and YTD measures based on user prompt from universe. [PYTD - JAN 1 2013-OCT 1 2013, YTD - Jan 1 2014- OCT 1 2014].
    Example Date Set :
    DIM 1                    SEP13...............................................................OCT 14      PYTD   YTD
    Florida  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    Arizona  state        M1.Single value need to give previous 13 months data    M3        M4
                 federal    M2..Single value need to give previous 13 months data   M5       M6.
    M1...M6 are the measures need to come from universe based on the user prompt.
    M1,M2 Need to give previous 13 months based on user response.
    M3,M5 [PYTD - JAN 1 2013-OCT 1 2013]
    M4,M6 YTD - Jan 1 2014- OCT 1 2014].
    Thanks for your help in advance.

  • Is it possible share a FILTER bewteen two power pivot tables

    Hi All,
    I know in PowerPivot you can share a slicer between two tables but can you share a "Filter" between two tables. Workaround is to create a slicer but maybe there is a option
    thanks
    Sonny

    Hi Sonny,
    In your scenario, you want to apply one filter to all the Pivot table on one sheet, right? As Mohan Kumar said, currently it seems that we cannot apply one filter to all the Pivot tables on one sheet. Here is a similar thread, please see:
    http://social.msdn.microsoft.com/Forums/en-US/291570df-cce9-46f3-bf8e-ea755eec46c4/excel-2013-pivot-charts-with-ssas?forum=sqlanalysisservices
    If you have any concerns about this feature, I recommend you that submit this suggestion at
    https://connect.microsoft.com/SQLServer/ . If the suggestion mentioned by customers for many times, the product team may consider to improve it in the next SQL Server version. Your feedback is valuable
    for us to improve our products and increase the level of service provided.
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for