New column - all-time rolling sum in Repository

Hi all
I need to build a new column in the repository.(ALL TIME ROLLING SUM TO DATE) and # Month Roll over on that.
I am looking for a way to easily compute rolling sums (etc.) for ranges of dimensional values that are not included in the result set.
I want to show a table of monthly unit count for 6 months:
I have the values forall months ,starting from years 2000.
Month unit Count
Jan07 100
Feb07 150
Mar07 - 100
Apr07 125
May07 - 200
Jun07 210
In another column I want to show an all-time rolling sum of the transaction activity
(sum the metric for all rows in the fact table <= the month in the row of the report).
Month Unit Count Rolling Sum To Date (Balance) 3 month Rollover
Jan07 100 3400
Feb07 150 3550
Mar07 100 3650 10600
Apr07 125     3775 10975
May07 200 3975 11400
Jun07 210 4185 11935
I tried RSUM for Rolling Sum To Date, but it dosent give rolling sum values above the considered result set time period.
Immediate help is appreciated, kind of urgent help required.
Thanks in advance.
Edited by: user11939829 on Sep 16, 2010 10:20 AM

Hi Deepak,
When i gave the example i forgot to add that i am showing the pivot chart in the report and showing the RSUM in Line Graph for 3 years..where i have year at the column and i have one dimension at the page section of the prompt.
So i m just showing the line graph where i have RSUM at the Vertical axis...Month at the horizontal Axis.
Sorry for the confusion

Similar Messages

  • New column in Time report

    Hi expertes,
    It´s been my first contact with time management and i hope you can bring some light to this issue.
    I would like to see in my time report the "flextime" hours. should i use pe51 to edit and manage the existing form?
    How can i link my time report ( rptime00 ) with my form once the changes are done?
    Thanks a lot.
    KR.

    As per my knowledge Best way you have to design the "SMART FORM" for PE51 & time report ( rptime00 )  take help of Abap
    MHPO

  • Adding new columns in a JTable?

    How can i add a new column every time a button is pressed? I have
    String columns[][] = {{"1", "2", "3"}}But i don't know how to add a new {} row...
    Help?
    Or can someone show me a better way to do it?

    Use a Collection instead of arrays.
    Arrays are fixed-size. If you need a bigger array, you need to create the new one, copy the old content over and fill in the new values.
    Collections hide all that complexity from you by providing simple .add() and .remove() methods.
    Arrays: low-level mechanism.
    Collections: more comfortable high-level mechanism

  • Making a new column out of the values from another column

    I am trying to query the transaction table and the promotion table to get the following output..
          select t.no, t.date,p.groupid,p.promocode,sum(t.salesamt)
          from trans t, promo p
          where t.id=p.tid
          group by t.no,p.groupid,p.promocode,t.date
          order by t.date
    no
    date
    groupid
    promocode
    promodesc
    sum(t.salesamt)
    m12
    01-jun-2012
    09
    p12
    Promotion1
    7890.00
    m12
    01-jun-2012
    09
    p13
    Promotion2
    345.56
    m12
    01-jun-2012
    09
    p14
    Promotion3
    2345.90
    m12
    01-jun-2012
    09
    p12
    Promotion1
    345.12
    m12
    01-jun-2012
    09
    p13
    Promotion2
    23678.00
    m12
    01-jun-2012
    09
    p14
    Promotion3
    3456.78
    I want to remove the promodesc and the sum(t.salesamt) and add Promotion1,Promotion2,Promotion3 as three new columns and their respective sum(t.salesamt) as their data value.
    I am thinking about using three separate case statements to achieve this...
    sum( case when promocode='p12' then t.salesamt end) Promotion 1
    Please let me know if there is any other optimal way to achieve this.
    Thank you!

    Hi,
    What you want is called a Pivot.  Using CASE expressions (like you described) is one common way to do pivots.  If you're using Oracle 11.1 (or higher) then you'd probably want to use the SELECT ... PIVOT feature instead.  See the SQL Language manual
    http://docs.oracle.com/cd/E11882_01/server.112/e26088/statements_10002.htm#sthref6809
    and the forum FAQ
    https://forums.oracle.com/message/9362005
    for details and examples.
    If you get stuck, post your best attempt, along with CREATE TABLE and INSERT statements for a little sample data, and the results you want from that data (if different from what you've already posted).
    Always say which version of Oracle you're using (for example, 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • Mapping tool creates new columns one at a time

    Hi All,
    I'm using Kodo 3.2.2 with MySql 4.1. I have a fairly large table (over
    2million rows) representing one persistent class. I need to add several
    new fields to the object, which will require a refresh mapping on the
    database to add new columns for the fields.
    It seems when I run refresh mapping on the database, Kodo is adding each
    new field individually in seperate ALTER TABLE statements, rather than
    adding all the columns in one ALTER TABLE statement.
    With MySQL and large tables, this can really increase the time required to
    refresh the mapping - I've tried with MSSQL and that database must handle
    ALTER TABLE commands differently because it doesn't take a fraction of the
    time that MySQL takes.
    Is this a bug (I doubt it), but rather a feature improvement?
    Thoughts?
    Thanks,
    Brendan

    Thanks Abe for the reply - I've been meaning to look at the process of
    creating SQL scripts to perform the refresh mappings on our databases.
    I'll have a look at this process before we talk contracting!
    Thanks,
    Brendan
    Abe White wrote:
    Unfortunately, we don't have any immediate plans to optimize ALTER TABLEsince
    it's not a runtime operation, and as you say most DBs don't have a problemwith
    it. Also, note that the documentation shows how to get Kodo to create SQL
    scripts rather than directly modify the DB; you could easily edit thescripts
    Kodo generates to make them more efficient before piping the SQL to MySQLusing
    its client app. (Note that Kodo 3.3 introduces the ability to generate SQL
    scripts directly from the mapping tool, rather than having to take an extrastep
    through the schema tool).
    If getting Kodo to combine ALTER statements is important to you, you couldalso
    contact [email protected] about contracting us to expedite this work.

  • I use Function Sum to add a column and a new column pops up filled with 0s

    In one of my spreadsheets, every time I try to add a column of numbers using the Sum Function, a new column is added filled with 0s. What's happening? And How do I get it to just add the column?

    can't you just write an SQL script to update the new column?
    Perhaps you can use the integration_id for this? or just another column(s)..

  • Since upgrading to FF v4, every time I open a "new window", all other instances of FF windows open, how can I keep this from happening?

    Since I started using FireFox version 4, every time I open a "new window", all other instances of FireFox windows open up. This is annoying as it often covers up instances I am currently using with instances that I don't wish to use right now. I can't seem to find a way to keep this behavior from occurring.

    Try go to '''about:config''' search for '''browser.startup.homepage''' change its value to:
    '''about:home''' - default page<br>
    '''about:blank''' - blank page<br>
    '''url''' - a page that you want
    Also:
    *[https://support.mozilla.org/kb/troubleshoot-firefox-issues-using-safe-mode Firefox in safe mode]
    *[https://support.mozilla.org/kb/reset-firefox-easily-fix-most-problems Reset Firefox]
    *[https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware Problems caused by malwares]
    *[https://support.mozilla.org/kb/how-to-fix-preferences-wont-save Preferences won’t save]
    *[http://kb.mozillazine.org/Preferences_not_saved]

  • Add a new column into repository

    hi
    In BI11g, how to add a new column into repository?
    Thanks
    kavi

    Hi kavitha,
    If your adding a new column to the physical layer or BMM layer the process is same as 10g.
    Steps:-
    1) Right click table where you want to add the column.
    2)Select new object >>physical column/BMM column
    3) Enter your choice labelling and data type,if needed formula.
    4) Click ok and you can see the column being added on to the table.
    CHeers,
    KK

  • HT1692 I use an iPhone 5, and want to sync my phone calendar and contacts with Outlook 7 calendar and contacts; twpo problems--I now get dozens of new calendars every time, and my calendar will not syncd at all.; meaning that date entries on Outlook do no

    I use an iPhone 5, and want to sync my phone calendar and contacts with Outlook 7 calendar and contacts; two problems--I now get dozens of new calendars every time, and my outlook calendar will not sync at all.; meaning that date entries on Outlook do not come across ot iPhone.

    It is unusual for the calendar to sync and not the contacts in Outlook. I've worked with Outlook for years. You didn't answer what computer OS you are using. If it is Windows, have you tried to reset the sync history in iTunes? Do that by opening iTunes, go to Edit>Preferences>Devices and click on reset sync history. If you have done this and it doesn't help, then we can try and run scanpst.exe on your Outlook file and see if there are any errors. Search your computer for that file, however it normally resides in one of the Microsoft Office folders in the folder Program files. After that, you can see if it will sync.

  • Looping multiple excel files at a time in ssis and create a new column to insert the files names

    Hi Friend,
    i have one requirement.
    I got around 200 excel files with date as file name like 120101.xls, 120102.xls (YYMMDD).
    I am able to loop all the files and insert data but i am unable to load the files names using ssis.
    Please can any one help to fix this using script task or any other code..
    It is very urgent

    Thank You Vaibhav,
    I want to insert the file name along with the other columns of data from excel.
    like this deriving a new column FILE_NAME
    Your ForEach Loop task must be returning the entire file path, I suppose.
    1. Get the file name from your file path. 
    New variable: FileName 
    Expression   : RIGHT(@[User::FilePath],FINDSTRING(REVERSE(@[User::FilePath]),"\\",1)-1)
    2. Inside Data flow, after Excel source use Dervied Column and use above @FileName
    3. At your OLEDB destinition, use MyFileName.
    -Vaibhav Chaudhari

  • Totals column that is the sum of all the data columns

    In a Report, I have several data columns, and then I want a totals column that is the sum of all the data columns. So for every row, the totals column will show the total of the data columns. How do I do this?
    Thanks, Wayne

    One way, create CF_total:
    function CF_totalFormula return Number is
    n number;
    begin
    select sum(coll) + sum(nvl(col2, 0)) + sum(col3)..... into n
    from tbl;
    return n;
    exception
         when others then
         return null;
    end;
    Another way, if you have SUMCOL1, SUMCOL2, ....:
    function CF_totalFormula return Number is
    begin
    return :SUMCOL1 + SUMCOL2 +.....;
    end

  • I am using Adobe Photshop Elements 11, I just transferred all of my data from an old computer to a new computer, all my pictures and documents transferred fine but, my albums are missing and the date and time that is usually under the picture are missing.

    I am using Adobe Photoshop Elements 11, I just transferred all of my data from an old computer to a new computer, all my pictures and documents transferred fine but, my albums are missing and the date and time that is usually under the picture are missing.. How do I get them back?

    Hi,
    Which operating system are you running on?
    The date & Time can be displayed by going to the View menu and checking Details - also File Names if you want them displayed.
    The Album information is saved within the catalog so it sounds as though you didn't do a catalog backup on the old computer and a catalog restore on the new computer which is the recommended way of transferring elements data. Did you just copy the photos over?
    Brian

  • Create a new column - convert minutes(mins) to time (HH: MM) in a day-OBIEE

    Hi..
    I have an issue in building the OBIEE repositoryin Administration tool.
    I have a column of minutes (24hrs X 60 = 1440 mins in a day) as its values.
    I need to build a column of Time ( convert minutes into time) using existing column of minutes.
    Say 300 mins = 5:00AM (since -------> (60 X 5 =300))
    315 mins = 5:15 AM
    330mins = 5:30 AM
    360mins = 6:00 AM.......so on in a day.
    I appreciate your help.
    Thank you.
    Edited by: user11939829 on Aug 11, 2010 9:00 AM

    Hi,
    In Admin Tools, if you want to create a new colume as time(HH:MM), you can do it like this:
    1. in "Business Model and Mapping", in the table which you want, create a logical column "Time"
    2. Check the checkbox "Use exist logical column as the source"
    3. In the expression builder, write the formula to convert minutes to time, like:
    concat(concat(cast (minutes/60 as varchar(2)) , ':'), cast(mod(minutes,60) as varchar(2)))
    Hope this helps you
    Marc

  • Rolling Sum

    Hi all,
    My dashboard contains a prompt to choose a year which when selected needs to display the rolling sum of revenue for previous 2 years including the present.
    For instance if the the year chosen is 2008, i need to get the rolling sum of the Revenue'08 +'07+'06.
    The catch is i cant use AGO function since i need to perform Year to Date, QTD and MTD upon this rolling sum and OBIEE doesnt permit to use nested time series functions upon varying levels. I mean MTD ( Ago(Revenue, Year,1)) is not permitted.
    We tried this FILTER function to achieve this but it didnt help .
    FILTER(Sales."Fact - Sales"."$ Revenue" USING Sales."Fact - Sales"."Year id1" - Sales."Fact - Sales"."Year id2" BETWEEN -(1) AND 3)
    the corresponding query with physical sources is
    FILTER(sum(Fact_W_SALES_F.DOLLARS) USING Dim_W_DAY_D.YEAR_NUM - Dim_W_DAY_D_1.YEAR_NUM between -1 and 3)
    Someone please clarify upon this....
    thanks,
    Sid

    hi,
    for rolling sum try this following blog
    http://shivabizint.wordpress.com/2008/09/19/rolling-months-data-for-year-month-prompt-in-obie
    for your requirement try the following
    in dashboard prompt year column value assign to presentation variable var1.
    Measure column write the following formula
    (case when calendar.year=@{var1} then "Sales Facts"."Amount Sold" end )+(case when calendar.year=(@{var1}-1) then "Sales Facts"."Amount Sold" end)+(case when calendar.year=(@{var1}-2) then "Sales Facts"."Amount Sold" end)
    hope it works for you
    Regards
    Naresh
    Edited by: Naresh Meda on Nov 6, 2008 9:27 PM
    Edited by: Naresh Meda on Nov 6, 2008 9:32 PM
    Edited by: Naresh Meda on Nov 6, 2008 9:37 PM

  • Can we add a new column in report which is not in table.

    Hi All,
    Can we create a new column in report which is not in table.
    I have two columns in my table completion_date, manufacture_date. If the difference between the completion_date and manufacture_date is 0, -1, 1 then the new column of the report will say on time against each record or else will display late. Any suggestion how to proceed on this
    Regards
    Edited by: User_Apex on May 16, 2011 5:54 AM

    Standard report then, NOT an interactive report (which if you were using, you could build a computation and report on that)..
    Then the adding a column in the query would be your best best...
    Thank you,
    Tony Miller
    Webster, TX
    There are two kinds of pedestrians -- the quick and the dead.
    If this question is answered, please mark the thread as closed and assign points where earned..

Maybe you are looking for

  • Base Value change for CST calculation

    Hi, I've a requirement that CST should get calculated on an assessible value and not on Net Price in the PO. e.g. Basic Price: 100 BED@10%: 10 ECess@2%: 2 SHECess@1%: 1 Subtotal 1: 113 Assessible Value for CST: 90 CST@4%: 3.60 Total: 116.60 How can w

  • Adobe applications don't appear under "open with"

    When I control-click an AI file on my desktop, or some graphic, I do not see any Adobe applications like Illustrator and Photoshop as available options UNLESS those applications are already open. I end up having to dig deep under "Other" everytime to

  • ActiveX Commands not listed

    I'm trying to add a date picker calendar to an excel 2010 worksheet. When I try to do so with VBA I can't find the Command for a "Month View"in the list of available commands. When I have tried using an ActiveX Control, there is no "Microsoft Date an

  • Is it possible to use the camera on my 6233 as a w...

    I am wondering if there is any way to connect my phone to my laptop via bluetooth and use it as a web cam. is this possible and how to.

  • Connecting directly to Macbook Air

    I just purchased a Time Capsule, and successully did a backup using my router. But is there a way to connect the Time Capsule directly to my Macbook Air? There isn't a Ethernet slot on the laptop.