SSRS Parameter - Fiscal Year - Quarter

Using a SSAS cube as source I'm having problems getting using a dynamic parameter expression of the Quarter part of the time dimension so that the current quarter is selected each time the report is executed. The time dimension is using a Fiscal year
- where for example Q4 is for February, March and April) and Q1 (for May, June, July) etc,,
Below I haved showed how the parameter is working using a hardcoded Quarter part - and how it's not using the dynamic one: 
When hardcoding the Quarter as in the below expression - using this expression - the parameter works:
="[PostingPeriod].[Posting Period].[Year].&[" & Year( DateAdd( "m", -4, Today() ) ) & "].&[Q4].&[" & Month( DateAdd( "m", -4, Today() ) ) & "]"
When trying to do a dynamic solution for the Quarter it's not working (emty results in the parameter list) - I'm using this:
="[PostingPeriod].[Posting Period].[Year].&[" & Year( DateAdd( "m", -4, Today() ) ) & "].&[Q" & DatePart(DateInterval.Quarter,DateAdd(DateInterval.Month,-1,today())) & "].&[" & Month(
DateAdd( "m", -4, Today() ) ) & "]"
Suggesting to how I can solve this dynamic would be very appriciated.

Sorry, I missed the last part (highlighted) in the expression.
="[PostingPeriod].[Posting Period].[Year].&[" + CStr(Year( DateAdd( "m", -4, Now() ) )) + "].&[Q" + CStr(DatePart("q",DateAdd("m",-4, Now()))) + "].&["
+ CStr(Month( DateAdd( "m", -4, Now() ) ) )+ "]"
Can you give me some details on the Qtr parameter properties? Are you using "Specify values" or "Get values from a query" option?
Where do you see that the parameter value is blank?
Thanks,
Ayad

Similar Messages

  • Offset issue for Fiscal Year Quarter

    Dear All,
    There is a requirement to develop a report for balance sheet to compare the fiscal year quarter like if user is going to give input 20143 then comparison quarter is 20142 where I did offset (-1) and if user give input as 20141 then the comparison quarter is 20134 where I am using offset as (-7).
    So I have incorporated both offset in one variable. Now the issue is if I will run for any quarter then it is giving error in the run time. Could anyone suggest that how I could achieve this, whether I have used correct offset interval?
    Query Key Figures Selections:
    Bex Analyzer Selection Error:
    Regards,
    Abhishek Jain

    Hi,
    I wouldn't do it in that way i.e. one column where you count previous quarter for quarters 2 3 4 (offset -1) and another column for counting previous quarter for quarter 1 (offset 7).
    There should be just one column where you count just previous quarter. Use an EXIT to count previous quarter for any value of quarter.
    Regards, Leszek
    something like this can be used:
    WHEN 'ZPREVQUARTER'.
    * QUARTER(1) TYPE C.
    * YEAR(4) TYPE C.
    * have to be defined after DATA: keyword !!!
       IF i_step = 2.
             LOOP AT i_t_var_range INTO l_s_var_range
               WHERE vnam = 'ZCURRENTQUARTER'.
               EXIT.
             ENDLOOP.
             CLEAR: l_s_range.
             YEAR = l_s_var_range-low(4).
             QUARTER = l_s_var_range-low+4(1).
             IF QUARTER = 1.
              YEAR = YEAR - 1.
              QUARTER = '4'.
             ELSE.
              QUARTER = QUARTER - 1.
             ENDIF.
             CONCATENATE YEAR QUARTER INTO l_s_range-low.
             l_s_range-sign = 'I'. "loc_var_range-sign.
             l_s_range-opt = 'EQ'. "loc_var_range-opt.
             APPEND l_s_range TO e_t_range.
          ENDIF.

  • Enable fiscal year/quarter selection in a query

    Hello all,
    I want to have an characteristic fiscal year/quarter similar to fiscal year/period (0FISCPER) in my query. Unfortunately I can not find such a characteristic in the time infoObjects in my cube and in the administrator workbench.
    Our Fiscal year starts in July. So the first quarter is July - September. The BW release is 3.5.
    How canI enable a fiscal yearquarter selection in my query?
    Any ideas would be great.
    Thanks upfront and Best regards,
    Stefanos from Munich/Bavaria/Germany

    Stefanos ...
    A couple of options for the same :
    1. Have 0FISCPER in your cube and map the same to the custom characteristic in the update rules.
    2. Have the custom characteristic in the cube in a separate dimension
    3. If you have the same in the cube - have a variable against that and execute your query...
    By doing the above you can get the same in the query.
    Arun
    Assign points if useful

  • How to get current fiscal year/quarter/month/week

    Post Author: [email protected]
    CA Forum: Semantic Layer and Data Connectivity
    Hi friends,
    I have to calculate
    1. current year/quarter/month/week.
    2.Previous year/quarter/month/week.
    please tell the process to achieve the above scenerio's.
    the structure of the fiscal_cal is as  follows.
    Name                                      Null?    Type
    TODAY                                     NOT NULL DATE
    FISCAL_DAY                                         NUMBER(8)
    FISCAL_WEEK                                        NUMBER(6)
    FISCAL_MONTH                                       NUMBER(6)
    FISCAL_QTR                                         CHAR(18)
    FISCAL_YEAR                                        NUMBER(4)
    FISCAL_MONTH_WORK_DAYS                             NUMBER(2)
    sample week data is as follows
    FISCAL_WEEK
         200752
         200753
         209901
    Thanks.

    based on ur target database DBMS you can find a built-in functions be used in the universe designer to get the requirment you talked about, like in oracle
    to_char(mydate,'yyyy') it will return the year in the yyyy format.
    and the same way for the other things you want
    to_char(mydate,'q') return the quarter.
    w return the week of the month
    ww return the week of the year
    mm return the month
    ,, to get the last year
    you can use also a builtin functions
    like add_months(mydate,-12) that return the same date for the last year, and you can do the same operations as before.
    its all related to the DBMS.
    good luck

  • Fiscal year period quarter in purchasing cube

    *Dear friends,*
    *I want to make one query on the basis of fiscal year  Qurterly . So please what is infobject in purchasing data cube is useful for making this query. Please guide me*
    *Thanks and Regards*
    *Anil*

    Hi,
    due to the fact that you dont want to use the quarter of the calendar year, you should build up an appropriate one and add it to the cube. Also you should fill it by formula or routine.

  • Urgent ...! How to get Current Quarter of the Fiscal Year

    Hi Friends,
       I need to calculate current Quarter of the Fiscal Year 4 , 5 like that. SAP has Provided 3 Variable(Current Quarter of the Fiscal Year 2 like that 3 variables), my customer is looking for some more variables. Can any one help me out hhow to Calculte Current Quarter of the Fiscal Year 4. How can i see the code of the SAP EXit's. Based on that i will try to write the code.
    Thanks in Advance!
    Nagesh.

    Hi Nagesh,
    the code for SAP Exits must be in Function-Pools SAPLRS_BCT* (I'm not quite sure). But this code
    seems to work different than customer Exits.
    See How-To-Guide
    https://service.sap.com/~sapdownload/011000358700002762582003E/HowToDeriveVariableValue.pdf
    for a good example of how to implement Customer-Extis.
    (It's a 2.x Guide but still valid for 3.x)
    Regards
    Robert

  • Data Type to use for Fiscal Year Period selection screen parameter

    I need to accept user input in the format
    YYYY.PP
    where YYYY is the Fiscal year and PP is the Period.
    Is there a data type ( element / domain ) for such a field ?

    date element you can use SPMON
    or
    parameter : p_spmon like MCS0-SPMON.
    regards
    shiba dutta

  • Variables for Fiscal year YTD, MTD and Quarter to data

    Hello Gurus,
    I have a fiscal year that runs from September to August. Is it possible to create a customer exit variable for Fiscal year YTD, fiscal year MTD and fiscal year QTD (quarter to date) based on sy-datum and not though user entry.
    If yes, then how should I restrict my key figures so that the user don't have to enter any date and the varaibles derive the data based on sy-datum.
    Looking forward to your expert advices
    Thanks,
    Rishi

    Hi Rishi,
    I understand your query some extent,You can create Characteristic varaible with processing type  Customer exit for fiscal year MTD and fiscal year QTD (quarter to date) based on sy-datum.
    If you want to see fiscal year MTD and fiscal year QTD  values in the column level, you have to create Text variable with replacememnt path.
    Do as follows.
    1) Create Characteristic varaiable  with processing type Customer exit. Search for required code in the SDN.
    2) Create the restricted keyfigure on required keyfigure.  Restrict it on fiscal year MTD and fiscal year QTD  with Char variable to enter year value.
    3)After maintaining the restricted keyfigure  (In the same step ) Create a text variable to get the value populated with the year specified with the processing type Replacement path with characteristic Fiscalyear.
    I hope above steps definetely help full for you.
    If any case you need  help let me know.
    Thanks,
    Chandu.

  • Procedure for maintaning quarters with two fiscal years

    My InfoCube
    Charecterstics :  ZCFBNO,0PROFIT_CTR,ZPARAMETER,ZSCALE
    Keyfigures       :  ZRATING,ZINVHRS,ZBILLHRS
    Time Char        :  0FISCYEAR,0FISCPER3
    I want to show Report with Selections
    YEAR
    PROFIT_CTR --- it is a hierarchy variable
    PARAMETER
    QUARTER
    Report Output will be
    PROFIT_CTR || SCALE || RATING IN THIS QUARTER || RATING CUMMULATIVE FOR THE YEAR
    but here Q1 : apr to Jun  || And ||   Jan to Mar
                 Q2 : Jul to Sep  || And ||   Apr to Jun
                 Q3 : oct to Dec  || And ||   Jul to Sep
                 Q4 : jan to Mar  || And ||   Oct to Dec
    How can I maintain these two fiscal years in this report can any one suggest me step by step procedure for this.

    My Cube Charecters : CFBNO,PARAMETER,VERTICAL,DEPARTMENT,PROFITCENTER
    Keyfigures : RATING
    Time Charecteristics : 0FISCYEAR,0FISCPER3
    I want to show Numberof CFBS and Rating in a Selected Quarter and for Selected Vertcal
    as
    VERTICAL | DEPARTMENT | CURRENT QUARTER CFB's | CURRENT QUARTER RATING |
    CUMMULATIVE FOR THE YEAR RATING

  • Calendar Year & Fiscal Year

    Hi All
    I have a table which contains a calendar period and fiscal period. I want to use one table only, no alias to bring back all the periods in the current calendar year e.g 200701 which is January to 200712 which is December and also to bring back all periods from the current fiscal year e.g. 2007/08-01 which is April 2007 to 2007/08-12 which is March 2009 so my result set should look something like below
    Calendar Period Calendar Month Fiscal Period Fiscal Month
    200701          January 2007/08-01     April
    200702          February 2007/08-02     May
    200703          March 2007/08-03     June
    200704          April 2007/08-04     July
    200705          May     2007/08-05     August
    200706          June      2007/08-06     Spetember
    200707          July 2007/08-07 October
    200708          August     2007/08-08     November
    200709          September 2007/08-09 December
    200710          October     2007/08-10     January
    200711          November 2007/08-11     March
    200712          December 2007/08-12     April
    Can I restrict one table to bring back both of these?

    Below is what i am using at the moment for testing before i create the table. A table has not yet been created for this yet but this is the format I was told is needed
    select
    '200701' as period, '200701' as quarter, 'January' as month, '2006/07-10' as fiscal_period, '2006/07-04' as fiscal_quarter
    from dual
    UNION
    select
    '200702' as period, '200701' as quarter, 'February' as month, '2006/07-11' as fiscal_period, '2006/07-04' as fiscal_quarter
    from dual
    UNION
    select
    '200703' as period, '200701' as quarter, 'March' as month, '2006/07-12' as fiscal_period, '2006/07-04' as fiscal_quarter
    from dual
    UNION
    select
    '200704' as period, '200702' as quarter, 'April' as month, '2007/08-01' as fiscal_period, '2007/08-01' as fiscal_quarter
    from dual
    UNION
    select
    '200705' as period, '200702' as quarter, 'May' as month, '2007/08-02' as fiscal_period, '2007/08-01' as fiscal_quarter
    from dual
    UNION
    select
    '200706' as period, '200702' as quarter, 'June' as month, '2007/08-03' as fiscal_period, '2007/08-01' as fiscal_quarter
    from dual
    UNION
    select
    '200707' as period, '200703' as quarter, 'July' as month, '2007/08-04' as fiscal_period, '2007/08-02' as fiscal_quarter
    from dual
    UNION
    select
    '200708' as period, '200703' as quarter, 'August' as month, '2007/08-05' as fiscal_period, '2007/08-02' as fiscal_quarter
    from dual
    UNION
    select
    '200709' as period, '200703' as quarter, 'September' as month, '2007/08-06' as fiscal_period, '2007/08-02' as fiscal_quarter
    from dual
    UNION
    select
    '200710' as period, '200704' as quarter, 'October' as month, '2007/08-07' as fiscal_period, '2007/08-03' as fiscal_quarter
    from dual
    UNION
    select
    '200711' as period, '200704' as quarter, 'November' as month, '2007/08-08' as fiscal_period, '2007/08-03' as fiscal_quarter
    from dual
    UNION
    select
    '200712' as period, '200704' as quarter, 'December' as month, '2007/08-09' as fiscal_period, '2007/08-03' as fiscal_quarter
    from dual
    union
    select
    '200801' as period, '200801' as quarter, 'January' as month, '2007/08-10' as fiscal_period, '2007/08-04' as fiscal_quarter
    from dual
    UNION
    select
    '200802' as period, '200801' as quarter, 'February' as month, '2007/08-11' as fiscal_period, '2007/08-04' as fiscal_quarter
    from dual
    UNION
    select
    '200803' as period, '200801' as quarter, 'March' as month, '2007/08-12' as fiscal_period, '2007/08-04' as fiscal_quarter
    from dual
    UNION
    select
    '200804' as period, '200802' as quarter, 'April' as month, '2008/09-01' as fiscal_period, '2008/09-01' as fiscal_quarter
    from dual
    UNION
    select
    '200805' as period, '200802' as quarter, 'May' as month, '2008/09-02' as fiscal_period, '2008/09-01' as fiscal_quarter
    from dual
    UNION
    select
    '200806' as period, '200802' as quarter, 'June' as month, '2008/09-03' as fiscal_period, '2008/09-01' as fiscal_quarter
    from dual
    UNION
    select
    '200807' as period, '200803' as quarter, 'July' as month, '2008/09-04' as fiscal_period, '2008/09-02' as fiscal_quarter
    from dual
    UNION
    select
    '200808' as period, '200803' as quarter, 'August' as month, '2008/09-05' as fiscal_period, '2008/09-02' as fiscal_quarter
    from dual
    UNION
    select
    '200809' as period, '200803' as quarter, 'September' as month, '2008/09-06' as fiscal_period, '2008/09-02' as fiscal_quarter
    from dual
    UNION
    select
    '200810' as period, '200804' as quarter, 'October' as month, '2008/09-07' as fiscal_period, '2008/09-03' as fiscal_quarter
    from dual
    UNION
    select
    '200811' as period, '200804' as quarter, 'November' as month, '2008/09-08' as fiscal_period, '2008/09-03' as fiscal_quarter
    from dual

  • Fiscal Year Time Dimension - Month Time Span

    I have a need to create a fiscal year time dimension and I created using Time Wizard in OWB. When I was developing BI Reports, I found some inconsistencies in Time dimension as it was showing figures in all the months of my first quarter of new financial year that Apr 2009 – Mar 2010. On close inspection of Time Dimension table I found that fiscal_month_time_span value varies from 35 to 28 to 29 for different months. i.e. it’s not matching with corresponding Calendar month. This means I am unable to plot data correctly using fiscal year dimension.
    Maybe this is how it works in Oracle, but this does not solve my problem. Could anyone give me some solution for this ? My Fiscal year is from ‘1- Apr – 09’ to ’31-Mar-10’. In my reports I would like to see transactions for April month when I use month attribute of time dimension like it happens in Calendar time dimension.

    May be someone from
    Forum: Business Intelligence Suite Enterprise Edition can answer this .
    Please post it there.

  • Fiscal year in the columns outside the key figure structure

    Dear Experts
    I have a report requirement to show the keyfigures in the columns from year 1 to year 10 and in each year there are 4 keyfigures each restricted to 1 quarter for 4 quarters.
    So, there are too many keyfigures to create.
    I am using fiscal year in the columns outside the Key figure structure containing the keyfigures restricted at each of 4 quarters.
    So, when the report displays, all the 10 years will automatically be displayed.
    The problem is one of the 4 quarter level keyfigures needs to be restricted by calendar year.
    How can I read what is the fiscal year for each column at runtime so that I can reference this value to determine the calendar year ?
    As you know, each FY spans 2 Calendar Years. So, i need to restrict this on the 4th keyfigure by calendar year but while having the FY outside the keyfigure structure i can get all the FY, I am not sure how to access this value at runtime so that eg.
    if FY for column 1 is 2010, i can set calendar year to be 2010 to 2011.
    Hope you can give me some clues.
    Thanks you Gurus!
    Best regards
    John

    Dear Sunnybt
    Copy Riyes,  I find your response interesting. Please could you elaborate your idea of using condition in more detail.
    Sorry for my late response.
    Allow me to clarify my statement, which you are right, is unclear.
    By :
    "if the current QuarterFY is less than the current QuarterFY"
    I mean :
    eg. user enters FY range : 2009 to 20NN  (eg. 2017)
    KF_column1_FY2009_Q1______KF_column2_FY2009_Q2____KF_column3_FY2009_Q3______KF_column_FY2009_Q4______KF_column_FY2010_Q1______KF_column2_FY2010_Q2____KF_column3_FY2010_Q3______KF_column_FY2010_Q4_____KF_column_FY_NNNN_Q1
    For each column, where the FY can be any year range entered by user,
    the Text Description of the Column should show either 'Actual' or 'Plan' based on what is the current FY Quarter at runtime.
    If the FY Quarter (eg. 1st column is 200101) is before current FY Quarter (i.e 201103), then the Description of this column should be "Actual" , else "Plan".
    In my current design, I am unable to use customer exit text variable to meet this requirement.
    So, I like to check with you for fresher ideas.
    If not , I would use a workbook, which I am avoiding as the user needs to drilldown and I believe drilldown is not possible in workbooks where report layout needs to be rigid or cell positions fixed. Of course, unless there is a way out of this which I do not know.
    Best regards
    Bass

  • Any function module for getting fiscal year week numbers

    can any one provide me function module for getting fiscal year week numbers ? if no function module please let me know work around.
    Thanks!
    Lakshmikandh

    hi,
    Use FM <b>'DATE_GET_WEEK'</b>...
    parameter D1 LIKE SCAL-DATE.
    Data w like scal-week.
    CALL FUNCTION <b>'DATE_GET_WEEK'</b>
    EXPORTING
    date = D1
    IMPORTING
    WEEK = W
    EXCEPTIONS
    DATE_INVALID = 1
    OTHERS = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
    WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    write W+4(2).
    Regards,
    Santosh

  • How to get a Monthly Depreciation Simulation for next fiscal year?

    I need a report that give me the depreciation simulation for next fiscal year, but I need it monthly wise. I run report S_ALR_87012936 with report date 31.12.2011 and evaluation period = month.
    The report gives the error message AA669 Fiscal year 2011 is already closed in Financial Accounting
    I read that this report doesn't work monthly wise for future years. Is there a workarround?
    Best regards!

    Hi,
    I'm sorry there is only RASIMU02. Note 396974 describes, this is a missing functionality and there  is no workaround.
    Reports on derived depreciation areas that do not post any values to the
    general ledger are allowed with the evaluation period year. An
    evaluation using month, quarter or half-year is not supported.
    In general, the depreciation forecasted by monthly in report RASIMU02 are only for depreciation area which posts depreciation to GL. For non-GL posting area, we recommend you simulate the depreciation 
    in 'fiscal year' mode. if you simulate the depreciation 
    Basically RASIMU02 is NOT designed to provide period simulation for these non posting areas. This because RASIMU02 uses for periods which have been posted already the created ANLP. But ANLP´s  are not created for non-posting areas. So in these periods where   a depreciation run had been executed already, RASIMU02 will not show
    values.                                                                               
    For AA 669 please see:
    Best Regards Bernhard
    Edited by: Bernhard Kirchner on Nov 25, 2010 9:20 AM

  • Fiscal Year in the columns outside KF structure

    Dear Experts,
    I have a manual Entry variable for Fiscal Year range.
    In the query designer columns , I have a KF structure containing quarter level columns.
    The FY is outside this structure. So, for each FY user entered in the FY range variable, the report will show the set of KFs at quarter level.
    How can i refer to this FY values at runtime such that current date can be used to compare with the FY and Quarter in the columns?
    The requirement is, if the current QuarterFY  is less than   the current QuarterFY, the TEXT variable for the columns should show 'Actual' else show 'Plan' .
    I am not sure how to reference the FY range entered by user considering that the FY is placed outside the KF columns to automatically display all the FY entered by the user without the use of the FY range variable restricted in the KFs.
    Please advise.
    Thanks.
    Bass

    Dear Sunnybt
    Copy Riyes,  I find your response interesting. Please could you elaborate your idea of using condition in more detail.
    Sorry for my late response.
    Allow me to clarify my statement, which you are right, is unclear.
    By :
    "if the current QuarterFY is less than the current QuarterFY"
    I mean :
    eg. user enters FY range : 2009 to 20NN  (eg. 2017)
    KF_column1_FY2009_Q1______KF_column2_FY2009_Q2____KF_column3_FY2009_Q3______KF_column_FY2009_Q4______KF_column_FY2010_Q1______KF_column2_FY2010_Q2____KF_column3_FY2010_Q3______KF_column_FY2010_Q4_____KF_column_FY_NNNN_Q1
    For each column, where the FY can be any year range entered by user,
    the Text Description of the Column should show either 'Actual' or 'Plan' based on what is the current FY Quarter at runtime.
    If the FY Quarter (eg. 1st column is 200101) is before current FY Quarter (i.e 201103), then the Description of this column should be "Actual" , else "Plan".
    In my current design, I am unable to use customer exit text variable to meet this requirement.
    So, I like to check with you for fresher ideas.
    If not , I would use a workbook, which I am avoiding as the user needs to drilldown and I believe drilldown is not possible in workbooks where report layout needs to be rigid or cell positions fixed. Of course, unless there is a way out of this which I do not know.
    Best regards
    Bass

Maybe you are looking for

  • Ipod cannot be updated since installing the 7.0

    Has anyone here havign problems with transferring your photos and address book to your ipod? I keep on gettign this message :The ipod cannot be updated the required file cannot be found" What's up with this. Why is it taking apple so long to fix this

  • Internet Explorer allows double click on submit

    Im having a problem with my update and insert pages while using WindowsXP IE 7. The insert page will allow you to do multiple clicks on the insert/submit button. The insert button will not go grey after clicking on it. You can continue to click and y

  • 3.3.3 to 4.0.1.42 not working on secondary server

    I upgraded from 3.3.3 to 4.0.1.42 but still with old Base Image for now: Cisco Secure ACS 4.0.1.42 Appliance Management Software 4.0.1.42 Appliance Base Image 3.3.1.8 CSA build 4.0.1.543.2 (Patch: 4_0_1_543) I upraded first my master server, that wor

  • How to join payroll and general ledger

    Hi, some one could help me to join the payroll table and general ledger? what i need is to know how to obtain the gl_code_combination_id of a per_time_period thanks

  • Commenting tools available with SDK in v. 9?

    I have an application which opens a PDF file in Acrobat, using the SDK, and allows the user to add comments/annotations and then save the document. I have been unable to use Acrobat 7 or 8 in my application because the commenting toolbar is unavailab