Return current period based off of current fiscal year and date

Good Afternoon,
Is there a way in the webi that I can create a dimension that always reflects the current Fiscal Month based of Fiscal year and date? I have a report that I am trying to show sales for a customer based off the current fiscal month. I would like this report when refreshed to be based off this fiscal month dimension instead of showing each fiscal month or changing it manually. What is the best way to do this?
I have attached an image that shows current numbers by period (month) and then the YTD Totals. I would like to have my 'Period' column always reflect the current period and the Total column to reflect that months totals based off the period column. So for this period (3), instead of seeing 3 lines for each month I would just see the '3' and the total as $541,310.46, monthly as 412,502.09 and my YTD as 1,080,091.06.
Any help is always appreciated!
Thank you,
Tiffany

Hi,
Create a variable
FlagVar=If([Period]=Max([Period]) In Report;"Show";"Hide")
And apply block filter of FlagVar=Show
Are these coming TotalSales  MonthlyGoal YTDSales directly from universe? If they are calculated at report level then you might want to use NoFilter. like =NoFilter([YTDSales])

Similar Messages

  • Current fiscal year and previous fiscal year restriction in Query  Customer

    Hi ,
    My requirment is disply current year qtrs and previous year qtrs in the report . User will not enter year , date , month or qtr . system should calucualte and disply curremt year qtrs and previous year qtrs .
    I have created ZFISCYEAR reference of a 0FISYEAR year . now I would like to write customer exit for Current fiscal year and previous fiscal year to display current year qtrs and previous year qtrs.
    Could you please provide customer exit code if you have or recomend if you know any other options.
    Appriciate you help
    Thanks

    hi try this
    take into account that I don't know th periv you use could be K4 or one defined by you so I have commented it.
    The coding here is for the current fiscal period for the previous year just to another l_year varibale and populate with offset for instance l_year = l_year - 1.
    so for current year
    WHEN 'CURRPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    for previous period
    WHEN 'PREVPERIOD'.
        current_date = sy-datum.
        CALL FUNCTION 'DATE_TO_PERIOD_CONVERT'
          EXPORTING
            i_date  = current_date
        '    i_periv = ''
          IMPORTING
         '   e_buper = l_period.
            e_gjahr = l_year.
        l_year = l_year - 1.
        l_s_range-low = l_year.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        APPEND l_s_range TO e_t_range.
    bye
    Boujema

  • GL balance carry forward special period 13 to new fiscal year and Rec acct

    Hi,
    would like to seek for your advice as below question/problem.
    a) User now is doing the year end closing. Normally the closing is up to the period 12 and for the purpose of track the adjustments made by the management and auditors user post to period 13 2008 from the pervious financial year. Our concern is when perform the GL Balance carry forward to new fiscal year which is 2009 does the system carry forward the GL adjustment figure from period 13 to the new fiscal year on top of that when we perform the GL balance carry forward to new fiscal year 2009 and later on find out there is an audit adjustment that need to done and user post in the period 13 fiscal year 2008 can the adjustment auto post to the new fiscal year?
    b) Can we change the Rec account in the vendor master as currently user need to change the vendor from difference Rec account which from joint venture to subsidiary account code? If involve the SPRO configuration how where should we configure? After we change the configuration does all the posting from one Rec account subsidiary will auto post to another Rec account Joint venture?
    Kindly advice.

    Hi,
    Thank you for the prompt reply.
    a)could you provide the path/T-code to view the  vendor master activity screen layout configuration field status for reconciliation account should be Optional.
    b)Beside,what the impact of change the reconciliation account from one to another? It is neccesary/must to do the balance sheet adjustment for change the reconcilation account?
    Can we post the balance through the manual JV (F.02)with the document type is ZD(Debit Note) to post the balance of old reconciliation account to the clearing account and then change of the reconciliation account to the new account then reverse the posting of the JV? By doing so what is the impact in the system? In this scenarion do we need to do the balance sheet adjustment?
    c) You mention balances from the old recon will not be posted to the new reconcilation account unless I do a balance sheet adjustment it is mean after I run the balance sheet adjustment the balance from the old reconcilation account will auto post to the new reconcilation? What other impact will effect the system?
    d) If the company never run the balance sheet adjustment before and due to the scenerion mention above they run the balance sheet adjustment for the first time what are the impact in the system for the company that only have one business area and also for the company which have more than one business area?
    e) What are the prerequisite step/configuation/setting need to be setup in order to run the balance sheet adjustment as the company perviously never run the balance sheet adjustment before? Kindly provide reference/document/guide.
    e) Change of reconcilation account does it related/impact to the account group of vendor master?
    Please help.

  • Error: "posting period is not defined for fiscal year variant" in  FBICS3

    Hi,
    I got error  "posting period is not defined for fiscal year variant" when I execute t code FBICS3.
    I checked in OB29 &  t code FBIC010 & noted that the fiscal year variant had ben maintained.
    Please advice.

    HI,
    It was noted that the mentioned t code had been maintain but below mentioned error appear:
    Posting period  is not defined for fiscal year variant
    Message no. GU506
    Diagnosis
    You have tried to determine a posting date in fiscal year variant for period , fiscal year , but this period is not defined for the variant.
    Procedure
    You maintain fiscal year variants in table T009.
    It was referring to t code OB29. I have checked the detail, in OB29 also details maintain.
    Please advice why the error still prompt.

  • Function module to derive start and end dates from fiscal year and period.

    Hi,
    I want to know a function module to derive start and end dates from fiscal year and period.
    ie: If I have say fiscal year '2010' and period '07', then the start date of this period would be '01.10.2010'.
    Thanks.
    Moderator Messge: Basic Date questions are not allowed.
    Edited by: kishan P on Oct 18, 2010 4:45 PM

    Hi,
    This is one of my exit that display the calmonth (offset -12). Usefull when I have to retrieve in a KF a complete rolling year depending one calmonth.
    S_VMUCMN is my selection variable
    S_TXTCMN_M12 is my text variable calmonth-12
    S_TXTCMN_M0 is my text variable for selected calmonth.
    WHEN 'S_TXTCMN_M12'.
        IF i_step = '2'.
          LOOP AT i_t_var_range INTO loc_var_range WHERE vnam = 'S_VMUCMN'.
            CLEAR l_s_range.
            " First day of the selected month
            CONCATENATE loc_var_range-low '01' INTO l_calday.
            CALL FUNCTION 'YFRBW_FUM_CAL_DATE_IN_INTERVAL'
              EXPORTING
                date      = l_calday
                months    = 12
                signum    = '-'
              IMPORTING
                calc_date = l_calday.
            l_s_range-low = l_calday+0(6).
            l_s_range-sign = 'I'.
            l_s_range-opt = 'EQ'.
            APPEND l_s_range TO e_t_range.
            EXIT.
          ENDLOOP.
        ENDIF.
    Thus, in KF header you have to put the two text variable to display the complete period.
    Hope it helps,

  • Fiscal Year till date

    Hello BW Experts,
    I need your help.
    There is a KF that I want to restrict by an interval from the first day of the current fiscal year to current day. If anyone can help me on this, it would be great. My problem is similar to if I want to restrict by last 10 days..60 to 30 days etc etc....but here I have a fixed day (first day of current fiscal year) and I have to restrict from that day to current day.
    Thanking
    Regards
    akshat
    Will be more than happy to assign points.

    Hi,
    You need to create a customer exit variable (with range selection) for date.
    Then write the below code in CMOD enhancement for Variable.
    Case I_VAR.
    when 'YOURVAR'.
    data:  l_year         type  /bi0/oifiscyear,
           l_first_year type sy-datum.
    if i_step = 2.  "After Selection screen is shown
        l_year = sy-datum+0(4).
        read table I_T_VAR_RANGE into l_s_var_range with key vnam = 'YOURVAR'.
        if sy-subrc = 0.
          concarenate l_year '0101' into l_first_dat.
        clear l_s_RANGE.
        l_s_range-sign = 'I'.
        l_s_range-opt = 'EQ'.
        l_s_range-low = l_first_date.
        l_s_range-high = sy-datum.
        append l_s_range to e_t_range.
      endif.
    ENDCASE.

  • Fiscal Year to Date

    Is there a BC variable in BW that will give me the Fiscal Year to date range.  For example since we are in January, this variable would give me from the Fiscal Year variant that I have which is V6 (July - June), July 1st, 2004 to December 31st, 2004.  Of course this requires no user entry.  Also, is there one for the previous FY?  July 1st 2003 - December 31st 2003?
    Would an SAP-Exit be required for this?
    Thanks,
    Angel

    Hi Roberto,
    I 'm also facing similar kind of issue.in my report Fiscal year and Fiscal period s are the manual input and fiscal variant restricted by K4.
    For example if my user enter  fiscal year : 2009 and fiscal period: 3.
    where i need to display columns dynamically based on posting period (is the manual input).
    User manual input is 03........report should display..........Period 01 | Period 02 | Period 03 | .
    char1 char2 char3 ............................... .......................... 34578 | 569789 | 39590
    User input is 05 ...........................report should display.... Period 01 | Period 02 | Period 03 | Period 04 | Period 05|.
    char1 char2 char3 ............................... .......................... 34578 | 569789 | 39590 | 54656 | 8789
    Please help me out .........as early as possible.
    Regards
    Chandra Sekhar

  • Reports with variables on fiscal year and want to display the current fiscal period values

    Hi
    i wan to display the fiscal periods in one of the reports when i give input for fiscal year, let say i will pass the fiscal year  as 2012 , then i need to display the revenue for 2012.01,2012.02,2012.03,....2012.12 and in another selection i need to restrict the revenue with the previous year.
    how can we achieve that.

    Hi,
    Refer this thread:Same thing has been discussed.
    http://scn.sap.com/thread/3365593
    Regards,
    AL

  • BI Content Variable on 0Calday for first day of the fiscal year and first day of the current month

    Hi Friends,
    In one of my BEx queries, I need to restrict a key figure for 0Calday based on the first day of the current fiscal year. And another key figure for the first day of the current month. Instead of using Customer exit, I hope there is some SAP delivered standard variable for these filters.
    Please let me know if there is anything available for this. Your answers will be highly appreciated.
    Thanks & Regards,
    Ranjan

    Hi Ranjan,
    Please find below standard variables.
    Pls check below link for more.
    Standard Variables in BEX related to Time Charcteristics
    Characteristic
    Variable
    Description
    0CALDAY
    0CWD
    Current Workday (SAP Exit)
    0CALDAY
    0CYTCD
    Cumulated to Current Day (SAP Exit)
    0CALDAY
    0DAT
    Current Calendar Day (SAP Exit)
    0CALDAY
    0DAY_***
    Cumulation of all Values to Key Date (SAP-Exit)
    0CALDAY
    0LYTCLD
    Cumulated to Current Day of Previous Year
    0CALDAY
    0LYTCLD
    Previous Year Cumulated to Current Day (SAP Exit)
    0CALDAY
    0L_DATE
    Last Calendar Date
    0CALDAY
    0P_LY_R
    Comparative Period for Last Year
    0CALDAY
    0P_TY_R
    Period for Current Year up to Yesterday
    0CALDAY
    0S_KDATE
    Key Date Interval for Previous Year (SAP Exit)
    0CALDAY
    0S_KDAY
    Key Date Interval Current Year (SAP Exit)
    Best,
    SATYA.

  • Fiscal year and posting period

    Hai friends,
    I have a requirement like this,
    when I choose say 02/2008(posting period/fiscal year or posting period and fiscal year) in the Variable.  I also get data for the last twelve months….so my report would have
    02/2008,01/2008 ,12/2007…………………………………….03/2007.
    This variable should default to current posting period/fiscal year. So when somebody logs in he sees the current month and last twelve months.He can then change it to whatever he wants.
    The way I see it is that I have to write a customer exit and create a variable in which in “to” we will have current fiscal year/period and in “from” will have “Current fiscal year/period-12”.
    How to do this.
    Any help will be rewarded.
    Thanks in advance.

    Hi,
    Your approach is right.
    If you want the values to default and allow the users to change it, you should put the code under STEP I.
    WHEN 'variable'.
    IF I_STEP = 1.
    REFRESH e_t_range.
    CLEAR l_s_range.
    l_s_range-sign = 'I'.
    l_s_range-opt = 'BT'.
    l_s_range-low =  'Current Value - 11 periods'
    l_s_range-high = 'Current Value'
    APPEND l_s_range TO e_t_range.
    Mathew.

  • Shortened Fiscal Year and its impact on BI back end and Bex reports

    Hi All,
    Our client is making some changes to the fiscal year period.
    Becuase of some business requirements, we will have to shortened the fiscal year.
    Can you please suggest - what are the watch points when we do this?
                                            - what will be the impact to BI back end and Bex reports?
    Thanks,
    Nisha

    Hello Nisha,
    Since the fiscal year (Infobjects - 0FISCYEAR and/ 0FISCPER3) is compounded with fiscal year variant, therefore maintaining the correct variant in BI will automatically take care of showing the data correctly.
    So there are two things to be maintained in BI:
    1) To see that the variant definition.
    2) If you need to display the text of the fiscal periods, then the correct texts.
    Let me know if you need more clarifications.
    Regards,
    Shweta
    Edited by: Shweta Kesarwani on Jan 8, 2010 11:10 AM

  • Document number range - per fiscal year  and continuous

    Hi Experts,
    In document number ranges,  generally the FI dox have number ranges which start afresh every year whereas MM and SD dox have continuous number ranges over the years.  It is possible to have continuous number range for FI dox also, but not many people use this.
    Why this differenciation between FI and SD/MM? Why SD/MM also do not have fiscal year based number ranges?
    Also, where do we define that doc range will be year specific or not? or is it SAP standard that FI will be year specific and SD/MM will be continuous?
    Thanks and Regards,
    Sadhana

    HI Sadhana
    You have the option to have document rumber ranges either on fiscal year based or upto 9999 year.
    This can be done in FBN1.
    for posting material documents also above situation applies.
    normally everybody prefer to have fiscal year based number range as FI documents are more in number.
    You can go through other forum members  solution also
    Regards
    A Chandrasekaran

  • FISCAL year from Date  in the Selection Screen.

    Hi Folks,
    Is there any function module which returns the Fiscal year if we provide the date in ranges.
    I mean, I have a select option for date in the selection screen.So,if a user enters the date say 01042007 01042007 it should return the corresponding fiscal year.
    Kindly let me know if anyone here has any idea regarding this.
    Thanks,
    K.Kiran.

    Hello,
    Check these FM's
    FTIS
    FTI_FISCAL_YEAR_MONTH_GET
    KBPA                           Budget/Plan - application-specific
    KBPA_GET_START_FISCAL_YEAR     Determine Start Year for Funds Management
    KBPA_GET_START_FISCAL_YEAR_OPT
    Vasanth

  • What is the difference between Fiscal year variant, Fiscal year and Calyear

    hi,,
    What is the difference between
    1. Fiscal Year Variant (0FISCVARNT)
    2. Fiscal Year (0FISCYEAR)
    3. Calendar Year (0CALYEAR)
    In what scenarios they should be used. If we are getting 0FISCVARNT data from ODS. Can we change into other in cube at update rules level or some other level?
    How can we get factory calendar????
    Message was edited by:
            Avneet M

    Hi Gurus
    I was going through this thread and came up some more questions in my mind.
    1. Do we need to set Fiscal Year, Fiscal Varient settings once for all in BW ? ( The path is given in one of the thread above ) need to know if this is one time setting / rebuilding the tables. what will happen when we select and execute factory calender and Fiscal Varient and Rebuild tables in transfer global setting ? Is this one time we have to do for whole BW system?
    2. when we go to SCAL t-code what we need to do and what it do in the system ? I know its for Factory calender but just want to know what it does. It it also for one time during BW build phase ?
    3. How can we link Factory calender and Fiscal year? IS it thro Fiscal varient ?
    Pl help me to clear this doubt,thanks in advance.

  • How to know fiscal year start date?

    How can I know when is the starting date of the fiscal year of my company from the tables or FM? They told me it is April 1st. Can I get this information from any SAP tables? I just don't want to hardcode that in my report.
    Thank you very much.

    U can try the FM 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
    REPORT ZEXAMPLE.
    DATA: V_FIRST LIKE SY-DATUM,
          V_LAST LIKE SY-DATUM.
    PARAMETERS: P_GJAHR LIKE T009B-BDATJ,
                P_PERIV LIKE T009B-PERIV.
    CALL FUNCTION 'FIRST_AND_LAST_DAY_IN_YEAR_GET'
         EXPORTING
              I_GJAHR        = P_GJAHR
              I_PERIV        = P_PERIV
         IMPORTING
              E_FIRST_DAY    = V_FIRST
              E_LAST_DAY     = V_LAST
         EXCEPTIONS
              INPUT_FALSE    = 1
              T009_NOTFOUND  = 2
              T009B_NOTFOUND = 3
              OTHERS         = 4.
    IF SY-SUBRC EQ 0.
      WRITE:/ P_GJAHR, '\', P_PERIV,
            / 'FIRST DAY:', V_FIRST,
            / 'LAST DAY:', V_LAST.
    ELSE.
      WRITE:/ 'COULD NOT DETERMINE DATES FOR', P_GJAHR, P_PERIV.
    ENDIF.

Maybe you are looking for