Dynamic column handling in reports of BPC 10.0 NW EPM Add in

Hello All,
My requirement is to have 3 columns. Col1 is defined based on Context selection from TIME dimension . Col2 is defined based on EPMoffset function based on Col1. Col3  to be shown always previous year with Dec month (2014.12). Say for Example : if current context is 2015.03 , then Col3 should populate value for 2014.12.
I am having problem in calculation of Col3 . please can someone share the inputs on this calculation.
Thanks!
Veer

Hi Veer,
C1 : Get the Context value of time.
In Another cell get the Year of C1 either by using EPMMemberProperty function or by some other method.
C2 : Use EPMMemberoffset function to get the last year of C1 with offset -1.
C3 : Concatenate the C2 year with ".12".
Hope it helps.
Regards
Rohit

Similar Messages

  • Generating dynamic columns for a report

    Hi all,
          Can anybody pls. tell me how to output dynamic columns in a report. my req. is that i've to generate so many columns as there are no. of unique(a particular field value) rows in my internal table. for e.g say suppose i've 5 rows in my internal table which has 2 fields, one short text & it's corresponding value. so now my report output shud have 5 columns with the short text as the column heading & the their corresponding values below each column heading. i heard it can be done thru field-symbols. can anyone pls. guide me.

    Hi Sushma,
    This piece of code might be useful.
    The following sections will help you to understand the steps required to define a Dynamic ALV.
    Following symbol signifies:
    Þ                    Important
    Main Steps Required
    The following are the main steps that are to be performed for defining a dynamic Alv
    1.       Defining a field catalog
    2.       Defining the dynamic table
    3.       Filling data into the table
    4.       Displaying ALV list
    Defining a field catalog
    The purpose of defining a field catalog first in case of Dynamic ALV is somewhat different than in case of normal ALV. In case of Dynamic ALV the field catalog is used to define the final internal table that will hold the data, and would be used to display the final output.
    Þ It is very important to remember that the field catalog table be refreshed first, else it might give an error.
    For example:
    DATA: T_FIELDCAT TYPE LVC_T_FCAT,
    L_FIELDCAT TYPE LVC_S_FCAT.
       Refresh T_FIELDCAT.
      CLEAR L_FIELDCAT.
      L_FIELDCAT-FIELDNAME = 'LIFNR'.
      L_FIELDCAT-INTTYPE = ''.
      L_FIELDCAT-OUTPUTLEN  = 10.
      L_FIELDCAT-COLTEXT  = TEXT-002.
      APPEND L_FIELDCAT TO T_FIELDCAT.
    Defining the dynamic table.
    This table will hold the final data that needs to be displayed. To declare the table the following things need to be done.
    Declare a field symbol
    Displaying Alv List
    This is done in the same way as we do for normal Alv. Call function “REUSE_ALV_GRID_DISPLAY” and pass the field catalog table in the export parameters and the dynamic table in Tables.
    Reward Points if it is helpful.
    Reagrds,
    Kiran I

  • Dynamic columns in ALV report

    halo fellow SAPiens,
    i need to show dynamic columns for a particular material........the scenario is as follows....
    1) there r 7 fixed columns describing the material...
    2)when the material returns back to the plant for some reason , i need to insert a column which shows the date and reason(char) of return.
    3)again after dispatching the material for some reason it comes back again a new column shld be displayed showin the date and reason(char).
    4)if the material doesnt come back...the report shows only 7 columns.
    any solution?

    try <a href="http://www.alvrobot.com.ar/home.php">here</a>  ......its a useful tool for dealing with ALV
    <b>reward points if useful</b>

  • Dynamic Columns in BI Report

    Hi,
    In my report i have dynamic columns and i am achieving this using <?split-column-header:header?> , <?split-column-data:variable?>
    I need to define width for the dynamically created columns.
    How do i achieve this.
    i have seen <?split-column-width:name?>,<?split-column-width:@width?>
    I tried <?split-column-header:header?><?split-column-width:@200pt?><?heading?><?end split-column-data?> but didn't succeed.
    Please advice.
    Regards
    Jeethi George

    Hi User
    Try this link
    Dynamic columns in OBIEE

  • Designing Dynamic column in BI Report Template

    Hi,
    In one of my report i have a table grid where the columns are dynamic.How do i design dynamic column in BI rtf Template
    Is it possible to hide/Show column for BI report
    Please advice
    Regards
    Jeethi

    Hi ,
    Check the below link
    http://download.oracle.com/docs/cd/E10091_01/doc/bip.1013/b40017/T421739T481157.htm#4535400
    search for the Column Formatting you will find the example for dynamic cloumn creation.
    Thanks,
    Ananth

  • To increase dynamically columns in ALV report

    hi everyone,
    Could any one give me a sample code ,to increase columns in ALV report output dynamically as record increase, i need to increase columns so that i can keep all the years data of a particular project in one row

    Please refer to the code piece
    *& Report  ZTEST_DYNAMIC_ALV
    REPORT  ztest_dynamic_alv.
    DATA: gt_fcat TYPE lvc_t_fcat,
          gw_grid TYPE REF TO cl_gui_alv_grid.
    SELECTION-SCREEN: BEGIN OF BLOCK b1 WITH FRAME TITLE text-s01.
    PARAMETERS: p_number TYPE i.
    SELECTION-SCREEN : END OF BLOCK b1.
    ** Start of Selection
    START-OF-SELECTION.
    *1) Create Base Catalog
      PERFORM sub_create_base_catalog.
    *2) Add additional fields
      PERFORM sub_fill_addtional.
    *3) Display output data.
      PERFORM sub_display_output.
    *&      Form  SUB_CREATE_BASE_CATALOG
    *       Create Base catalog for display
    FORM sub_create_base_catalog .
      CALL FUNCTION 'LVC_FIELDCATALOG_MERGE'
        EXPORTING
          i_structure_name       = 'ZSTRCT'
        CHANGING
          ct_fieldcat            = gt_fcat
        EXCEPTIONS
          inconsistent_interface = 1
          program_error          = 2
          OTHERS                 = 3.
    ENDFORM.                    " SUB_CREATE_BASE_CATALOG
    *&      Form  SUB_FILL_ADDTIONAL
    *       text
    FORM sub_fill_addtional .
      DATA: lw_fcat  TYPE lvc_s_fcat,
            lw_from  TYPE i,
            lw_data  TYPE REF TO data,
            lw_fname TYPE stfna,
            lw_index(2) TYPE n.
      FIELD-SYMBOLS: <l_output> TYPE table.
      DESCRIBE TABLE gt_fcat LINES lw_from.
      DO p_number TIMES.
        lw_from = lw_from + 1.
        lw_index = sy-index.
        CONCATENATE 'DYNA' lw_index INTO lw_fname SEPARATED BY '-'.
        lw_fcat-col_pos = lw_from.
        lw_fcat-fieldname = lw_fname.
        lw_fcat-tabname = '1'.
       lw_fcat-scrtext_l = lw_fcat-scrtext_m = lw_fcat-scrtext_s = lw_fname.
        APPEND lw_fcat TO gt_fcat.
        CLEAR lw_fcat.
      ENDDO.
    ** Convert gt_fcat to internal table.
      CALL METHOD cl_alv_table_create=>create_dynamic_table
        EXPORTING
          it_fieldcatalog           = gt_fcat
        IMPORTING
          ep_table                  = lw_data
        EXCEPTIONS
          generate_subpool_dir_full = 1
          OTHERS                    = 2.
      IF sy-subrc = 0.
    ** Create the internal table form field catalog.
        ASSIGN lw_data->* TO <l_output>.
    ** display the ALV data.
        CREATE OBJECT gw_grid
          EXPORTING
            i_parent          = cl_gui_container=>screen0
          EXCEPTIONS
            error_cntl_create = 1
            error_cntl_init   = 2
            error_cntl_link   = 3
            error_dp_create   = 4
            OTHERS            = 5.
        IF sy-subrc = 0.
          CALL METHOD gw_grid->set_table_for_first_display
            CHANGING
              it_outtab                     = <l_output>
              it_fieldcatalog               = gt_fcat
            EXCEPTIONS
              invalid_parameter_combination = 1
              program_error                 = 2
              too_many_lines                = 3
              OTHERS                        = 4.
          IF sy-subrc = 0.
            MESSAGE s000(zrak) WITH p_number 'DISPLAYED DYNAMICALLY'.
          ENDIF.
        ENDIF.
      ENDIF.
    ENDFORM.                    " SUB_FILL_ADDTIONAL
    *&      Form  SUB_DISPLAY_OUTPUT
    *       text
    FORM sub_display_output .
      CALL SCREEN '9001'.
    ENDFORM.                    " SUB_DISPLAY_OUTPUT
    *&      Module  STATUS_9001  OUTPUT
    *       text
    MODULE status_9001 OUTPUT.
      SET PF-STATUS ' '.
      SET TITLEBAR 'MAIN00'.
    ENDMODULE.                 " STATUS_9001  OUTPUT
    *&      Module  USER_COMMAND_9001  INPUT
    *       text
    MODULE user_command_9001 INPUT.
      CASE sy-ucomm.
        WHEN 'BACK' OR
             'CANC' OR
             '%EX'.
          SET SCREEN 0.
      ENDCASE.
    ENDMODULE.                 " USER_COMMAND_9001  INPUT

  • Building dynamic columns in BO Report (BO 4.0)

    Hi All
    To start with I am new to BO and using reporting tool
    I have a requirement to create a WEBI report which contain a table with a feature to hide / remove columns based on input selection. ( dynamic columns)
    I tried to do this by following concept
    In my test scenario table has 3 columns. user will select which columns to show when refreshing the report.
    I created 4 tables .
    table 1: column 1, column 2 and colum 3
    table 2: column 1, column 2
    table 3: column 1, column 3
    table 4: column 2, column 3
    all tables were overlapped in display.
    I am trying to hide the table using the property which is available in table properties "Hide when following formula is true"
    to display table 1: formula is as follows
    =UserResponse("Enter Column") = "column1;column2;column3"
    The problem doing this way is
    1. selection should happen in a given order
    2. If there are mulitple columns , it doesn't make sense to create multiple tables as combination of columns increases.
    Is there a better formula to set using user response to achieve the above.
    Is there any better way to achieve the above generally.
    any suggestion and guidance will be appreciated.
    Thanks.

    Hello Guruprasad,
    PFB link to a good explanation how to display columns dynamically.
    http://blog.davidg.com.au/2011/09/dynamic-measures-in-webi-on-any-data.html
    hide formula for different tables will not be easy when you have more number of columns.
    another option is conditional formatting of columns based on a variable value. ie, indirectly hiding it by making background and value color white and keeping dynamic width for column.
    Regards,
    Nikhil Joy

  • Display Dynamic Columns in Crystal Report

    Hello,
    We are currently using Crystal Reports XI and connecting to an ADO .NET XML file as our data source. In this data souce we have a data table called IDENTIFIERS where every column, except for the ones used for joining tables is dynamic. These column will be different for each database thats its run against.
    Is there any way to display these dynamic columns without having consistent column names?
    You help is much appreciated.
    Thanks,
    Adam

    Thanks Carl,
    We do have control over the data table and a solution like this had crossed my mind. But this might not be practical for other reports that use this data table.
    I think another solution would be to create a new data tabl that has all identifiers on their own row as opposed to columns.
    id
    dentifier
    identifier_name

  • Dynamic column in ALV Report

    Hi,
    We need to display amount fields in the ALV and that fields should be able to display both 3 decimals or 2 decimals at the same time.When we refer this as a character field it is not allowed for totals/subtotals .
    if we refer it as 3 decimals ,it is adding zero for 2 decimal  values.
    if we refer it as 2 decimals ,it is adding rounding off  for 2 decimal  values.
    How can we dynamically refer this field in order to handle both these cases at the same time?
    We tried with reference of CURR ,but no use.
    Any pointers in this regard are highly appreciated.
    Regards,

    Hi Kranti,
    if you want to display amount then you should use amount fields. Then you need another column for the currency displayed. In the field catalog, you reference the amount field to the currensy field using fieldcat component CFIELDNAME.
    Then all values are displayed with the number of decimals defined for the respective currency.
    Additionally, you will get separate subtotal lines for each currency.
    --  asked several times, answered several times --
    What serach term did you use?
    Kind regards,
    Clemens

  • Creating dynamic columns in rdlc report

    Hi,
    I want to generate an rdlc report where columns are not fixed and decided on the basis of user input.
    So I can not design the report before and it should be done dynamically at run time. I have the data in datatable.
    Can anyone help how to achieve this.

    Hi,
    You can do this by creating a crosstab report so that the column heading is from an item in the folder.
    You cannot have dynamic headings for a table report.
    Rod West

  • Dynamic columns in crosstab report

    Hello,
    I'm using CR 2008.
    I've created a dynamic crosstab report. The number of columns could be any, depending on the data.
    I need to replace the original column headers with the formula, so the headers would look like this:
    Set1  Set2   Set3... etc., where 1, 2, 3... etc. are the column indexes (or just sequential numbers).
    Could you please recommend me a formula for it? I'm not sure how to insert these sequential numbers to the column headers.
    Thank you.

    Please re-post if this is still an issue or purchase a case and have a dedicated support engineer work with you directly:
    http://store.businessobjects.com/store/bobjamer/DisplayProductByTypePage&parentCategoryID=&categoryID=11522300?resid=-Z5tUwoHAiwAAA8@NLgAAAAS&rests=1254701640551

  • Dynamic columns in Bex report

    Hi Experts
    I have a requirement where i need to populate result columns based on user input.
    for Example if user inputs Fiscal year period as 001.2010,002.2010,003.2010 then report should have 3 columns based on inputs and display value of pertucular keyfigure for that perticular fiscal period.
    youser may input multiple fiscal periods here.
    Is it possible to do this?
    Regards
    Sudeep

    Hi
    when i drag fiscper in columns i see only 1 column and agreegated values for all inputs entered by user.
    Regards
    Sudeep

  • Dynamic Column Headings in Report Layout

    I am using Report Query/Report Layout for a custom report in BI publisher. My Column Headings are stored in the database. On my pages, I am using the replacement format ' &FIELD_NAME.' to have them show up correctly. How can I do that on my Report Layout?

    Hi -
    1) Add Query just for column headings under Source Query (you can obviously pass in bind variables to select the correct column values if need be).
    2) For layout, pull in the headers from data model (just like any other field) and use them to replace any existing "hard coded" headers.
    Good luck.

  • Handling ALV Layout & Dynamic Columns

    I have a custom report for Purchasing / Finance.
    1) I create 5 dynamic columns for the purchase rder invoices based on the report run date.
    Example:
    Previous Quarter   [Q4 2009]  [Q1 2010]   [Q2 2010]  [Q3 2010]
    My query is that this report has layouts defined. I want to add the dynamic columns to the report output.
    Example:  In the below scenario i have dynamic columns in the  fieldcat[] but the report shows only the columns defined in the layout selected. 
    disvariant-VARIANT has the layout selected from the seelction screen of the report.
    Also fieldcat-tabname = '<fs_table> '.
    CALL METHOD alv_grid->set_table_for_first_display
       EXPORTING
          is_variant                    = disvariant
          i_save                         = 'A'
          is_layout                     = layout
          is_print                        = print
       CHANGING
          it_outtab                     = <fs_table>
          it_fieldcatalog             = fieldcat[]
          it_sort                         = sort[]
       EXCEPTIONS
         invalid_parameter_combination = 1
         program_error                 = 2
         too_many_lines                = 3
         OTHERS                        = 4
    Appreciate if anyone knows the solution.

    I don't believe you can display the dynamic columns and still use the variant from the selection screen.
    Have you considered using multiple table rows for the multiple time periods?
    If you will always have 5 dynamic columns, maybe you can make them not dynamic and just make the column header text dynamic?

  • SSRS 2005 - Dynamic Query handling.

    Hello All,
    I need to generate a report based on some dynamic query. I am passing a query string to SQL Server procedure (from .Net UI), this procedure returns dynamic set of columns. These columns and number of columns can vary from query to query. I want to show these
    columns on report dynamically.
    Please suggest. Thanks in advance.
    -Regards
    -Kumud Vaish

    Hi Kumud,
    I don't think it is possible do display the dynamic columns on the report since the columns and number of columns are dynamically.
    In a SQL Server Reporting Services report, we need to get the column name and use it on a column of a tablix control if we want to display it on a report. In your scenario, the columns name are dynamic. When reference to a column which not
    exist on the dataset, we will get the error
    "Report item expressions can only refer to the fields within the current dataset scope or if inside an aggregate, the specified dataset scope."
    Thank you for your understanding.
    Regards,
    Charlie Liao
    TechNet Community Support

Maybe you are looking for