Cognos Analytics

Cognos Analytics

Connect, learn, and share with thousands of IBM Cognos Analytics users! 


#Product
#Analytics
#CognosAnalytics
#Analyticstools
#TechXchange Partner
#TechXchange Session
#TechXchange Presenter
#AI
 View Only
  • 1.  Running-Totals in Data Module

    Posted 04/19/20 08:12 AM
    Is there a way to calculate running totals for measures in a Data Module?

    I have tried with Relative Date Analysis, but this works only for one point in time, not for all data points of the time dimension.

    ------------------------------
    Alex Santamarta
    ------------------------------

    #CognosAnalyticswithWatson


  • 2.  RE: Running-Totals in Data Module

    Posted 04/19/20 05:45 PM

    There's the running-total function, but it occurs to me that it is possible that your question is actually more complex than that and, consequently, you might want to describe in more detail what problem you are encountering.

    When you work with the relative time measures you need to understand that they contain a time element in addition to the fact itself.  Using them with your time dimension what can appear to be weird results if you don't keep in mind that the report is going to show you values only for those dates in the scope of the relative time period as set by the as of date setting.

    Here's a fragment of a list report for a CA server where the as of date is April 15,2012.

    It has a calculation which uses an expression which calculates the running total of the YTD relative time measure of a measure and another one which calculates the running total of the prior YTD.
    running-total ( SLS_SALES_FACT.QUANTITY.YTD)


     







    ------------------------------
    IAN HENDERSON
    ------------------------------



  • 3.  RE: Running-Totals in Data Module

    Posted 04/19/20 11:55 PM
    Hello Ian,

    I had used this function in Report Studio, but I was not aware that it is possible to use it also in Data Modules.

    I will test and let you know.

    Thanks!

    ------------------------------
    Alex Santamarta
    ------------------------------



  • 4.  RE: Running-Totals in Data Module

    Posted 04/20/20 12:27 AM

    https://community.ibm.com/community/user/businessanalytics/blogs/ian-henderson1/2019/10/17/cognos-analytics-modelling-expression-editor?CommunityKey=6b10df83-0b3c-4f92-8b1f-1fd80d0e7e58&tab=recentcommunityblogsdashboard

    Here is something which I hope helps you work with the expression editor to achieve your aims.



    ------------------------------
    IAN HENDERSON
    ------------------------------



  • 5.  RE: Running-Totals in Data Module

    Posted 04/22/20 03:08 AM
    Thanks Ian, it works as expected :)

    ------------------------------
    Alex Santamarta
    ------------------------------



  • 6.  RE: Running-Totals in Data Module

    Posted 04/23/20 03:43 PM
    Hi Ian,
    I just shared your post on LinkedIn, thanks!  Such a great resource!!

    ------------------------------
    Albert Valdez
    albert@intelalytics.com
    ------------------------------