Visokio website     Downloads     Video tutorials     KnowledgeBase  
RUNNINGTOTAL() - Visokio Forums
RUNNINGTOTAL()
  • aknotts     aknotts July 17, 2012 5:24PM
    Hi

    I am using the runningtotal() function and I can't get it to work exactly as I want it. I have a column of countries, corresponding suppliers and amounts spend with each supplier in each country. I have aggregated the the table by country, supplier and um of amount and ordered it by country (asc), amount (desc) so the results look like this:

    UK, M&S, 1000
    UK, IBM, 950
    UK, Tesco, 850
    Germany, VW, 2000
    Germany, Audi, 1950
    Germany, Mercedes, 1800

    I want to put a running sum on this aggregated view so it sums the amounts in spend order eg:


    UK, M&S, 1000, 1000
    UK, IBM, 950, 1950
    UK, Tesco, 850, 2800
    Germany, VW, 2000, 2000
    Germany, Audi, 1950, 3950
    Germany, Mercedes, 1800, 5750

    When I so the runningtotal I can't get it to sum in the correct order. How can I do this?

    Thanks

    Andy
  • 1 Comment
  •     steve July 19, 2012 8:36AM
    In 2.8 we've updated RUNNINGTOTAL to have an optional 3rd argument, documented here:

    http://www.visokio.com/kb/functions-guide#RUNNINGTOTAL

    See attached file (2.8 only).

    Until 2.8 is available, you would have to do this as static data in the data source using sort operations, etc.

Welcome!

It looks like you're new here. If you want to get involved, click one of these buttons!

Sign In Apply for Membership

Tagged