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())

Similar Messages

  • Current date, first day of month, last day of month, current week, current

    Hi All,
    may be the question will sounds basic for your guys, I am connecting via MDX a cognos reportnet on a BW 3.0B..due to loads of limitations on filtering via MDX on 'business date/time functions' , I would need to create in the infoqueries that are my data sources, the following additionnal objects:
    - current date
    - first day of current month
    - last day of current month
    - current week
    - current year
    I do not want prefiltered infoqueiries but object with these single values so that from reportnet I can have something like: OCALDAY between 'first day of current month' and 'last day of curent month'
    Is there standard fonction for this under BW/BEX or if we need to developp functions has nayone some code examples.
    thanks a lot for your great input
    David

    Hi,
    In universe level if you want implement the requirede functions then you have to write custom sql and if you want to implement them in Reporting level then most of the functions are available to you. e.g. Quarter,Month, Year, Current Date....
    Cheers,
    Suresh A.

  • Last month end date based on current date

    Hi,
    How to show last month end date based on the current date.
    Eg:
    Current date = "08/26/09"
    Var- Last Month End Date = "07/31/09" etc...,
    Please help me how to get it...
    Thank You!

    Good to hear that it worked for you. but not for me.
    I tried like this:
    1st::
    1. var1= ToDate("06/30/09","MM/dd/yyyy")
    2.Var2= RelativeDate([Var1];-DayNumberOfMonth([Var1]))
    result: 5/30/09
    2nd:
    RelativeDate('6/30/2009';-DayNumberOfMonth('6/30/2009'))
    result: 5/30/09
    Am working on SAP OLAP cubes.
    Please help me where am going wrong....
    Thank You!

  • How to determine Organizational Data based on User Login

    Dear all,
    How to determine organizational data based on user login in Activity transaction, currently org determination is happening after entering customer number in the transaction.
    We have used 'Responsibility' determination rule for this configuration. Now the requirement is to determine org data based on user login.
    In Org model we have assigned user to org data through a business partner. But still org data is not getting determined in the transaction.
    Please help me to trace out the problem.. your suggestions will be highly appreciated.
    Best regards
    Raghu ram

    You just have to use other organization determination rule. In your case this would be rule 10000194 (ORGMAN_12). This determination rule delivers the responsible organizational unit of the user
    User is defined as a business partner in the container attribute 'PARTNER'. If not, the system user (sy-uname) is used.
    So you have to do the following:
    - use this determination rule
    - in BP link username with employee
    - assign in PPOMA_CRM employee or user to organizational unit
    This should solve your problem.

  • How to display filtered data based on user login

    We have a SSRS report (.rdlc) which gives the report about Online count of machines. Report is incoperayed in Asp.net.
    We have many filters in This report. Now we have to retrict the report based on user login to the application .
    For ex: report has a drop down for Regional Admin. Now if one person login to the application he has to view only his region online count.
    How can we do this in SSRS?. We have our application hosted in Microsoft Azure . Please suggest

    Hi csmbrnoc,
    In Reporting Services, if we want to filter data based on user login, then there must be some relationship between the UserID and the Region in the dataset. For example, there is a field named UserID in the dataset, and each ID map some region and the corresponding
    “Online count of machines”. In this scenario, just as Visakh suggested, we can use built-in field User!UserID to obtain UserID of the current user, then directly add a filter to the dataset as below:
    Expression: [UserID]
    Operator: =
    Value: [&UserID]
    If there are any other questions, please feel free to let me know.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • How to identify which is current week by java.util.Date

    below code wriiten to identify number of weeks in a given month,
    i need current week in a from below code.Can any one help me?
    for(int i=1;i<32;i++){
    Date d = new Date(2005,11,i);
    intMonDtTemp=d.getMonth();
    0-sunday
    1-monday
    5-friday
    6-saturaday
    // number of weeks is based on monday's in given month
    //System.out.println(intMonDtTemp+" at =month dt "+ intMonDt);
    if(intMonDtTemp==intMonDt){
         //System.out.println(i+" = "+ d);
         //System.out.println("MONTHS EQUAL");
         if(d.getDay()==1){
              count= count+1;
    }//end of for
    if(count==5){
         System.out.println(strDt+" = 5 weeks");
    } else {
         System.out.println(strDt+" = 4 weeks");
    }//end of else

    using Calendar, not Date
    import java.util.Calendar;
    class Testing
      public Testing()
        Calendar cal = Calendar.getInstance();
        int month = Calendar.OCTOBER;// months are 0-based 0-11, not 1-12
        cal.set(2005,month,1);
        int dayOfWeek = cal.get(Calendar.DAY_OF_WEEK);
        if(dayOfWeek > 2) dayOfWeek -= 7;
        cal.add(Calendar.DATE,2 - dayOfWeek);
        int mondaysInMonth = 0;
        while(cal.get(Calendar.MONTH) == month)
          cal.add(Calendar.DATE,7);
          mondaysInMonth++;
        System.out.println("Mondays in month = "+mondaysInMonth);
      public static void main(String[] args){new Testing();}
    }

  • How to make a report to display next 18 months of data with when user select a particular month from the filter in power pivot tabular model.

    Hi,
    i have a  dimension table  with month_key having values (201201,201202,201203.......202011,202012) and month name ( Jan 12, feb 12,......NOV 20, Dec 20)  and a fact  table with columns (month_key ,measure_types, Amount)
    My requirement is to create a power pivot report  in which when a user select a month from the filter, the report should display the (selected month+18 ) month's data against each type . when JAN 12 is selected ,the jan 2012 +18 = june 2013
    , month name should be populated with months till june 2013 only .
    i tried creating calculated column"END DATE " in the fact table with  dax expression to calculate the 18th monh from the current month  as below 
    month_key END DATE
    201201       201306    
    201202       201307      
    and thought of filtering the table with month key <= ENDDATE but it is not working as expected. could you please guide me on this ? Is there any time intelligence function that serve the purpose . Iam using  excel 2010
    ..hence could not do any calculation on the report side also. please suggest .
    Thanks in advance                                                                                                                                               

    Do you need to show the measure calculated for those 18 months as a total on 1 row, or do you need to select a single month and then display on row filters 18 distinct rows?
    The first is trivial as driezl has suggested.
    The second will require a second calendar table.
    I created this example workbook for a coworker who had a similar problem. You will have to use the disconnected table as your filter and pull your related table onto the rows.
    Finally, the easiest way to deal with the sort of date arithmetic you need to do is to restructure your date table to have a series of "Sequential" fields. These fields should be the number of units of time since the beginning of your calendar.
    For example, consider a calendar starting on January 1, 2010. For January - December 2010, [MonthSequential] = 1, 2, ..., 12. For January - December 2011, [MonthSequential] = 13, 14, ..., 24, and so on, incrementing by 1 for each sequential month in time.
    Assuming you have this set up in your date tables (one related to your model - DimDate - and one disconnected - DisconDimDate) your measure would look like this:
    18 Month Measure:=
    CALCULATE( [Measure]
    , FILTER( DimDate
    , DimDate[MonthSequential] >= MAX( DisconDimDate[MonthSequential] )
    && DimDate[MonthSequential] <= MAX( DisconDimDate[MonthSequential] ) + 18
    Please review this example along with the workbook I have linked above.

  • Grouping of data based on user prompt having a list of dimensions

    Hi All,
    I have a requirement to be able to group data in OBIEE request or Dashboard based on user prompt selection.
    The prompt should list the Dimensions Available
    e.g.
    Dimensions: Product, Region, Employee
    Fact: Sales
    The report is to display sales total for the quarters of the current year.
    The user prompt should list the available dimensions (In this case - Location, Employee and Product).
    If I choose Product, the data is to be grouped by Products - Layout having a simple tabular grouping with Product names as Group headings.
    Similarly any other choice of Dimension from the prompt should group the data by that dimension and have the dimension values used in the group headings.
    How could we implement this? I understand this type of requirement (ability to choose dimension) is met in some OLAP reporting tools.
    I have used multiple views and the View Selector for similar requirements previously, but looking for a dynamic solution here.
    Any pointers or solution will be great.
    Thanks,
    Kiran
    Edited by: Kiran Kudumbur on Sep 8, 2009 5:43 PM
    Edited by: Kiran Kudumbur on Sep 9, 2009 12:42 PM
    Edited by: Kiran Kudumbur on Sep 10, 2009 2:26 PM

    Hi All,
    I used column view to address this requirement.
    Thanks,
    Kiran

  • Select Data based on User Permissions

    Post Author: nomore
    CA Forum: General
    I've got a Crystal Infoview server which is becoming quite cluttered with reports.In a lot of instances, I will have 4 or 5 copies of the same report which are tailored to specifc users. For example a sales report which will show data based on a specific customer. I could create on report with a parameter where the user could just select the customer - but i dont want some people to be able to see specific customers. So at present i have a seperate report for each customer - and then set the report permissions to only allow specific users to run it.I attended a course a while back where they showed us how, hiding particular fields/data to certain users if they should
    not be allowed to view it - but for the life in me i cannot remember at
    all how they did it.  Any tips greatly appreciated.

    Post Author: V361
    CA Forum: General
    In the special fields section is CurrentCEUserName, not sure if this would work for you, because I have CR XI
    You could surpress based on the id logged in, but that would be a lot of work, 
    Perhaps you could create a "permissions" list in excel or in the database if possible, with a list of the reports that each ID can run, then based on the id, you populate the list....
    CurrentCEUserName inserts (in a formula) the name that was used to log on to the current session when using the Log On to BusinessObjects Enterprise dialog box.

  • Filtering report data based on user login and Parameter fields

    Post Author: mronquillo
    CA Forum: General
    Hi,I am running a report that filters data based on the user login. To do this, I created a formula called @user that compares the login name (using the CurrentCEUserName field) and returns the user's name. If the user login is not a login specified in the if statements, it returns the parameter field "user_name":For example: if CurrentCEUserName = "loginname1" then "User's Name 1"else if CurrentCEUserName = "loginname2" then "User's Name 2" else if CurrentCEUserName = "loginname3" then "User's Name 3"  else if CurrentCEUserName = "loginname4" then "User's Name 4".. .else {?user_name}   In select expert, I have a condition which filters data based on the string returned from that formula:{Table.Name} = {@user}  This works fine and when the users run the report they only their own data. However, they are still prompted to choose a parameter field regardless if of the value returned by the @user formula. Oddly enough, regardless of what parameter field they choose, they will still only see their own data (i.e. if John chooses "Bob" from the parameter list, he will still only see John's data.)If I remove the "else {?user_name}" line from the @user formula, then the users are not prompted anymore. However, if they are not a "valid" user - that is, if any of the if statements in the formula are not true for their login name - then they will see no data. What I want to do is make the report ONLY prompt the user to choose a parameter field if their login name is not "valid". That is, if the @user formula is able to return a string value for their login name, then they will jump right into the report without being prompted to choose a parameter - otherwise, the user will be prompted to choose a name from the parameter list. I thought my formula would allow this (hence the "else" clause), but it seems that if a parameter field is present in any formula, then the report automatically prompts the user to choose a parameter. Is what I am trying to accomplish possible in CR (I'm using CR v10.0) or is there a better way to do what I am trying to do?Thanks in advance.

    Post Author: sharonmtowler
    CA Forum: General
    try, or something like that
    (if CurrentCEUserName ={?user_name} then true else ({Table.Name} = {@user}) )

  • 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)

  • Output different data based on user select

    Hi everyone,
    Quick question, I would like to output different report columns based on user select, eg., users would be presented with two choices in a radiobutton list, eg., 1 and 2.
    I have query results that contain columns A, B, C, D, E, F, G.
    If user selects 1 then the output should be columns A, B, C, D, E.
    If user selects 2 then the output should be columns A, B, C, F, G.
    I am sure this is possible and easy? If so, what topic should I be reading/searching internet on?
    Please advise.
    Thanks!

    I would say that this is most often something that your user interface should be dealing with (i.e. which columns should be shown).
    There is no way to do that in SQL.
    In PL/SQL it is a simple situation of creating two cursors and simply deciding which one to open.
    <pre>declare
    l_cur sys_refcursor;
    begin
    if :user_selection = 1 then
    open l_cur for select A, B, C, D, E from tbl;
    else
    open l_cur for select A, B, C, F, G from tbl;
    end if;
    -- use the cursor
    close l_cur; -- or return to user interface
    end;
    /</pre>
    Hope this helps.

  • 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

  • Last 6 months of data based on date feild that is an integer data type

    Hi Folks
    I have a date column called 'YYYYMM' that is an Integer data type in YYYYMM format (eg. 201309). I want to return records from the last 6 months. 
    If the column was in a date format I could use something like 
    [YYYYMM] >DATEADD(M, -6, CURRENT_TIMESTAMP)
    Therefore I assume I need to do a CONVERSION of INT into a date format with something like
    CONVERT (DATE, [YYYYMM]
    But I get the message  "Explicit conversion from data type int to date is not allowed"
    Can someone suggested a work around?
    Many thanks Steve

    another way is this
    SELECT *
    FROM Table
    WHERE DATEADD(mm,(dateintfield%100)-1,DATEADD(yy,(dateintfield/100) -1900,0)) >=DATEADD(mm,DATEDIFF(mm,0,GETDATE())-6,0)AND DATEADD(mm,(dateintfield%100)-1,DATEADD(yy,(dateintfield/100) -1900,0)) < DATEADD(mm,DATEDIFF(mm,0,GETDATE()),0)
    Please Mark This As Answer if it helps to solve the issue Visakh ---------------------------- http://visakhm.blogspot.com/ https://www.facebook.com/VmBlogs

  • Calculate depreciation start date based on user defined field in asset

    Hi,
    I have a specific scenario where the start of depreciation date for asset needs to be calculated on user-specific logic.There is a additional field "installation date" in asset master screens.The requirement is that for depreciation areas 10 and 11 user wants that the depreciation start date to be calculated on the installation date rather than capitalization date.
    I tried using the exit AMAV0001 where we can change the asset value date which determines the depreciation date at the time of first acquistion to asset.But the problem is we can't change it as per depreciation area wise and thats why posting error was coming.
    Please suggest if any idea on this.
    Thanks in advance.

    Hi Adriano,
    in your example 2 issues influence the described behaviour:
    1) In your example the revaluation occurs in the capitalization year, in which all acquisitions (and revaluations) are managed under the period for the first acquisition. Only as of the year following the capitalization year the period control "pro rata" would really consider the revaluation or another acquistion as of period 4. In case you want the period control also being considered according to the posting period in the capitalization year, set the indicator XBZDAT with the correction report from note  92925.
    That should solve your issue.
    2) In case you use the new depreciation calculation engine you have the possibility to use individual period controls for revaluation also. This means you could specify period control for acquisitions as "pro rata" and for revaluations "next month". To realize this create a new transaction type for revalutions as described in note 1138166 . Unfortunately this feature is not possible with the old depreciation calculation engine.
    Regards,
    Markus

Maybe you are looking for

  • How can I get back to syncing my Ipad, and Iphone 4 the old fashion way

    I have installed upgraded itunes, upgraded my Iphone operation system to 5.1,  and installed Icloud.  This is where the problems all began. Icloud and I have everything (contacts, calendar  events, photos) so messed up, it would take a Apple Surgeon

  • Print same output to all printers

    i am using : import java.awt.*; import javax.swing.*; import java.awt.print.*; import java.awt.image.BufferedImage; import java.awt.geom.Rectangle2D; public class PrintUtilities extends Thread{ public static final double MM_TO_PAPER_UNITS = 1/25.4*72

  • How to Create a Table in Oracle with XML data type.

    Dear ALL, What are the requirements for creating a table with xml datatype in Oracle: The steps would help very much to know the scripting of the table and how to query and either insert/update and remove data from that table. Any help, direction, ad

  • SAP BUSINESS ONE SHOWING ERROR IN WINDOWS 7

    Hello Experts !!! This is the configuration of my client's laptop operating system : windows 7 ultimate. system type : 32 bit operating system. ram : 1 gb processor  : inter (r)  U1400 @ 1.20 ghz i have installed sap business one 2007 b patch level 1

  • Efficiently displaying large datasets on web

    I have a website that allows users to query my database. Results can return up to 1 million records. Does anyone know of a elegant way to display the information? displaying the data using pagination: is there a way to query once and navigate through