Dynamic comparison column in Bex report

Hi Gurus
I have the following request, could any of you kindly help me out?
Content example in Cube:
GL Act| Fiscyear| Fiscper3| Amount
10001 |2004     |12       |100
Report: Cross-year comparison determined by period
Specifying fiscyear and period range is enabled as user-input, e.g. choose year 2003 to 2005 and period 01 to 03
The following layout is our target:
header: period 01-03
GL Act| Y2003| Var2003-2004| Y2004|  Var2004-2005| Y2005
10001 | 100 | 200         | 300 |  -100        | 200
10002 | 300 | 500         | 800 |  200         |1000
I think the point is to achieve the "variance" column which is dynamically determined by fiscyear where user inputs, since restricted key figure cannot achieve the "dynamic" solution.
Thanks in advance!

Hi Eric,
My approach is somewhat not flexibible but it may suit your needs.
Will try to describe it in more details.
Let’s assume that this periods contain full information: a year and a period within a year and that there are 12 periods in the year. A user enters a a range of periods P1 – P2 (let’s say of 2005) and wants to compare some KF for the given time period with that for 2004, 2003 and calculate difference between periods.
Solution:
Create two – for P1 and P2. All vars are user entry ones. If P1 is always the first period in the year then P1 might be determined in the user exit.
Create a structure in rows.
New selection. Name it as Y2003. Put here your KF and Fiscal year/period. Restrict it with P1 – 24, P2 – 24.
New selection. Name it as Y2004. Put here your KF and Fiscal year/period. Restrict it with P1 – 12, P2 – 12.
New selection. Name it as Y2005. Put here your KF and Fiscal year/period. Restrict it with P1, P2.
New formula for Var2003-2004. Place into formula Y2004 - Y2003.
New formula for Var2004-2005. Place into formula Y2005 - Y2005.
Regardless of selection’s names this query will show values for given periods of 3 years: entered, year before entered and entered -2. 
Best regards,
Eugene

Similar Messages

  • Dynamic add column in Bex report

    Hi all,
             we have input parameter is month wise. For example if i have input 12.2011 - 03.2012
    Output:
    12.2011--01.2012--02.2012-----04.2012
       50kg -
    70--90--
    54
    Like above dynamically have to change column based on month input parameter. Please guide me how to design bex query.
    Thanks
    Saravanan

    hi,
    restrict calmonth with variable type manual input, and put this calmonth in columns on top of amount or quantity. It will give you your desired output.
    hope this helps,
    regards,
    ray
    Edited by: ray100 on Mar 9, 2012 2:54 PM

  • Concatenate out put of 2 or more columns in BEX Report in to one column

    Hi,
    I am working on service order report in BEX, and i would like to Concatenate out put of 2 or more columns in BEX Report in to one column.
    Please share me if any scenarios.
    Thank
    Neni

    Hi Ashutosh,
    Thanks for your reply,
    Actually in my report 4 different columns belongs to service orders information from different departments, i want see all 4 columns information in to single column, those four are virtual characteristics.
    As per your solution concatenate in workbook using function, can you please give me the steps how to do that.
    Thanks for your help.
    Thanks
    Neni.

  • HOW TO FIX COLUMN IN BEX REPORT

    Hello Gurus,
    I have created BEX report in which user want 1st two column (Material and its describtion) to be fixed as if he want to check all relavent result related to Material the first 2 column should not be move it should be fixed and rest other results and other column should move,

    Hi Wajid,
    The VBA code i gave earlier will do this automatically for your users. Please use it. It freezest columns A and B so that columns A and B dont move even if your users scroll to the right. It just stays there.
    In your workbook after you have inserted your query, go to Tools->Macro->Visual Basic Editor. Then go to Insert Menu->Module. Double click the module that have been created (probable name is Module1) and then on the code editor paste this code:
    Public Sub SAPBEXonRefresh(queryID As String, resultArea As Range)
       Range("C1").Select
       ActiveWindow.FreezePanes = True
    End Sub
    Everytime the users refresh your query it will freeze the first to columns. So at least you are sure that the columns A and B are frozen.

  • Dynamically selecting column names in report builder ???

    Dear members,
    I have a requirement in which the user dynamically selects the tables column names. Like suppose take DEPT table. My query would be
    select &P Report from dept;
    so if the user selects DNAME then i would get the dname values and so on... This is fine but if one gives the value for the lexical parameter as DEPTNO,DNAME then i should get two columns in my report output. The select statement then becomes
    select DEPTNO,DNAME Report from dept;
    But i am not able to do this in report builder(6i). If i use just one value for the parameter then i get the o/p but if i use more than one (eg: DEPTNO,DNAME) then its giving an error.when i run this query through toad or sql plus then i am getting the desired o/p but wher as in report builder i am not able to get the o/p.
    My report triggers are :
    Before Parameter form :
    :P := NULL;
    After parameter Form :
    function AfterPForm return boolean is
    begin
    IF :P = 'DNAME,DEPTNO' THEN
    :P := ' DNAME,DEPTNO ' ;
    ELSE
         :P := NULL;
         END IF;
    return (TRUE);
    end;
    Your comments and suggestions are welcomed.
    thanks
    regards
    sandeep

    Number of columns can not be changed at run time. If your data model has three columns, lexical parameter should pass 3 values. If you have query like this in data model:
    select &p_1 from table
    Whatevere you have as initial value in user parameter p_1, data model captures that info.

  • Dynamically assign column heading to Report columns

    I need to assign values to column headings of various Report Columns of my Report region based on current value of one of my application items. How can I do it?

    Never mind, there was another post like this. Duplicate. Just in case someone is looking for the answer, here is what worked for me:
    Assume the Application item is called app_item_My_dynamic_head_col1.
    Add a page computation before the page loads to set the value of the application item based on whatever condition.
    Edit the report column.
    In place of hard coded column heading "Project Name" (that was my column heading), replace it with
    &app_item_My_dynamic_head_col1.
    The key here is the period after &app_item_My_dynamic_head_col1.
    As the page loads, the column heading will be value of the app_item_My_dynamic_head_col1 (as assigned by the computation).

  • 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

  • Dynamically assign column names in reports

    I have a report that has to display the data for the years within the given date range.
    For example, for customer A I need to display order value placed in each year between the date range 01-dec-2010 till 31-dec-2014.
    From Date : 01-dec-2010 To Date :31-dec-2014
    Output should be a follows :
    Customer 2010 2011 2012 2013 2014
    A 50 40 60 100 20
    This means that if the date range is 2010 to 2015 then output will be as follows
    Customer 2010 2011 2012 2013 2014 2015
    A 50 40 60 100 20 50
    So the report column name must change accoding to the Fm/To Period range
    Please tell me the coding for dynamically changing report column names as per the parameters 'From Dt' and 'To Dt'.

    Hi,
    First and best option I will recommend is to create a MATRIX report.
    Second option if the number of columns are fixed,
    create fixed no of date ranges as parameters or placeholder columns (can be achieved even with 2 parameters start date and end date), you just need to use DATE is formula calculations cleverly.
    Now create formula columns and pass the date ranges as parameters to the respective column formulas.
    Best Regards
    Arif Khadas

  • Current Date column in BEx report

    Hi,
    I need to add a column to show today's day in the report using query designer. I've been trying to add this column by adding structure in the rows section using 0DAT under the selection. But this has caused no data is displayed in the report. Can someone show me the step by step procedure how to add a column like this. Thank you in advacne.
    Sharon

    Hi,
    You create a Formula variable in Report and the wrie code in CMOD, then give that variable in Formula it will display date.
    WHEN 'ZVCURDAY'.
    ** Current Date Value
          CLEAR: l_s_range.
          l_s_range-low = sy-datum.
          l_s_range-sign = 'I'.
          l_s_range-opt = 'EQ'.
          APPEND l_s_range TO e_t_range
    Thanks
    Reddy

  • Dynamic cumulative Value in Bex report

    Hi
    I need to implement the following report but meet problem,
    User-input variables:
    Year: (single value variable ready for input)
    for instance 2005
    Period: (interval variable ready for input)
    for instance from 4 to 6
    The report should display as follows:
    Period 4         | Period 5 | Period 6

    Sorry, continue as follows:
    For each Period there are two kfigs should display
    Amount and Cumulative amount, the cumulative amount means the amount accumulated from period 1 to current period, the report should display like
    Period 04 | Period 05 | Period 06
    Amout ***.Amount | Amount ***.Amount | Amount ***.Amount
    Normally we can enable "cumulative" flag in key figure setting, however, the cumulative function only works for the displayed columns, e.g. the ***.amount of period 05 is the sum of amount period 04 and amount period 05, but we need the sum of amount from period 01 to period 05.
    I am considering the following solutions but need your suggestion:
    1. Use customer-exit variable to add the selection "from period 1 to period X",here in this case "from period 1 to period 3", and calculate the ***. amout in virtual key figure, but I have no idea how to hide the column period 1 to period X in exit.
    2. Define 24 predefined fixed key figures(12 columns for amount and 12 for cumulative amount), but I have no idea how to let user filter on key figure name (1KYFNM?) when executing the query.
    3. Use VBA and Web Table interface to hide the columns at runtime, but I have no idea whether if it still works when user drill down the key figures to the rows.
    Any suggestion is highly appreciated!!!
    it's urgent!!!
    Thanks in advance,
    Patrick

  • Columns in BEx report

    Hello guys.
    I have quite a problem here with my key restricted key figures.
    I need to restrict for example SALES with date interval - so we have e.g. 09.2007 and 12.2007. Then I need one more key figure from the beginning of the year till first margin - 01.2007 and 09.2007. It is no problem - I get it via standard variable or user-exit variable. The problem is that when I have 0CALMONTH in columns I get my view like this:
    01.2007 02.2007...09.2007...12.2007
    SALES SALES     SALES
    but I need the sum from 01.2007 till 09.2007 as one column and sales  from 09.2007 till 12.2007 by month:
    01-09.2007 09.2007 10.2007...12.2007
    SALES*      SALES   .........................
    *sum of all sales for 8 months
    Does anyone have any ideas?
    Edited by: John  Smith on Dec 20, 2007 9:58 AM

    Hi,
    Take a new selection in the colums and restrict the sales with the 1 to 8 months. And take another selection restrict it with 8 to 12 months.
    Khaja

  • Summation of column in Bex Report

    Hi All,
    I have a requirement where user wants to see that no. of Materials belongs to each vendor. And at the end of query user wants to see the over all count of material.
    I am able to get  no. of Materials belongs to each vendor but I am not able to get Overall Material count at the bottom of report.
    Please help me how to achieve this?
    Many Thanks!
    Arvind

    HI,
    I am able to get  no. of Materials belongs to each vendor but I am not able to get Overall Material count at the bottom of report. :
    For this just change kfg properties in calculations tab : Calculate result as Summation/Counter for all detailed values.
    Thanks

  • Comparisons in BEx report

    Hi All,
    I have a BEx report requirement which seems to be pretty manageable but looks like I'm missing something..
    PROBLEM:
    I have a report in which should have the following columns
    1. Employee ID
    2. Revenue of Billing Partner
    3. Revenue of Engagement Partner
    4. Revenue of Lead Client Service Partner
    Billing Partner, Engagement Partner and Lead Client Service Partner characteristics reference employee id and are stored in the cube.
    Emp id  | Bill Prt Rev| Eng Prt Rev| Lead CSP Rev
    1000    | $500        | $600       | $400
    In the above example, Emp id=1000
    $500 is the revenue where Billing partner = 1000
    $600 is the revenue where Engagement partner = 1000
    $400 is the revenue where Lead CSP  = 1000
    I know I have to do characteristic comparisons but did not give right results.
    Appreciate your responses.
    Thanks,
    Krishna

    Hi CC,
    Here's the report format:
    Emplid|     Bill Prtnr Rev | Eng Partner Rev| Lead CSP Rev
    1000  |       1980418      |  1571906       |       0     
    2050  |        697789      |   732533     |   21090
    2490  |       3171992      |  1161446     | 3218770
    2500  |         41696      |    37673     |    8839
    3890  |       6921768      |  3858804     | 7031627
    Message was edited by: Krish
    Message was edited by: Krish

  • SSRS 2005 - Dynamically control the width of columns in Matrix report or Hide any column

    Hi All,
    I just want to hide some column without having white space in Matrix report in SSRS 2005. Although I am aware of that perhaps this feature is not available on SSRS 2005. So, I just want to know if we can handle the width of column dynamically(using expressions)
    in matrix report?
    Please help. Thanks in Advance.
    Regards
    Kumud

    Hi Kumud,
    Based on my test, SSRS is not support column dynamically width. It has property “CanGrow” of text box. If we configure the property to True, it will wraps to next line if needed. In SSRS 2008, we can hide some columns without white space. If possible, I
    recommend you update your SSRS 2005 to SSRS 2008.
    There is a similar issue, you can refer to it.
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/9e6043f1-c458-4540-be59-d37b02feab8a/dynamic-column-width-for-a-report?forum=sqlreportingservices
    Alternatively, I recommend you that submit a wish to the Microsoft Connect at
    https://connect.microsoft.com/SQLServer/Feedback. Your feedback is valuable for us to improve our products and increase the level of service provided.
    Regards,
    Alisa Tang
    Alisa Tang
    TechNet Community Support

  • How to create a dynamic action from link column in classic report

    I Have an apex page that display a modal window utilizing jquery. In the modal window I have a classic report with a link column that I want to capture its click event.
    I was thinking I could create a dynamic action with selection type=jquery selector. Not for sure if I need to do anything on link column and do not know the syntax
    for jquery selector. Would appreciate any help or direction???

    Thank you for your response. I am very new to Jquery so don't understand all that well.
    What I did:
    I created a dynamic action
    Event: Click
    Selection Type: jQuery Selector
    jQuery Selector: tdheaders
    Created True Actions
    I created an alert to see if this is being executed.
    Alert 'I made it here'
    What I have:
    I created a report region with the following query:
    Select empno, ename, 'SELECT' from emp
    where (ename like '%'||ltrim(rtrim(:P2_SEARCHPU))||'%'
    or :P2_SEARCHPU is null)
    I created 'SELECT' column as Link Column
    Report Attributes
    Link Text Select
    Target Page in this Application
    Page 2
    Region Header
    <div id="ModalForm2" title="Employee List" style="display:none">
    Region Footer
    </div>
    This report is displayed in a modal form when a button is clicked.
    Code for modal window in Page Header
    <script type="text/javascript">
    $( function() {
    $('#ModalForm2').dialog(
    { modal : true ,
    autoOpen : false ,
    buttons : {
    Cancel : function() {
    closeForm2();
    function openForm2()
    $('#ModalForm2').dialog('open');
    function closeForm2()
    $('#ModalForm2 input[type="text"]').val('');
    $('#ModalForm2').dialog('close');
    </script>
    I am trying to capture the click event on the link column of the report in the modal form. I want to pass a couple of column values
    back to the main form and close the modal window. I do not want to do the submit that happens if I click on the link column and link back to the main page(2)
    If I let the submit to happen, all other entered fields are cleared on my main form.
    Just don't understand the jQuery selector. I have no problem catching the button clicks on the modal form.

Maybe you are looking for

  • Error while transferring Data from PSA to DSO

    Hi all, We had a requirement to load data into the DSO.We are extracting it from R3. Problem is that while loading in PSA it is showing 1056 records ,But when we are trying to load it in DSO it is showing Transferred records as 1428 and added records

  • Error in the generation of check sums of library

    Hello I am getting below error when trying to logon to xMII. com.sap.engine.services.deploy.container.ExceptionInfo: Error in the generation of check sums of library files of application sap.com/xappsxmiiear in operation startApp. This is a new insta

  • CLASSPATH and extensions

    I have an executable JAR file that uses the CommAPI - which is installed properly - i.e. when I run the program in non-jar form it works fine: C:> java ISC_Knox/ISC_KnoxApplicationHowever when I run it in jar form I get an class-not-found exception C

  • How to give a user access to just 2 fields in a user account properties

    Is it possible to create a user that has basic access rights in Active Directory but give it access to just the users name and telephone number of every user in Active Directory?  We have a Windows 2003 AD level at the moment. Thanks.

  • Facebook and "Garden of Time" gifts that I can't send to my friends

    I have just switched to Firefox and having trouble with the game "Garden of Time", on facebook. I can't send gifts or send "help" details to my friends. Games also run slower or take a very long time to get to one page to the next. What can I do?