US and Worldwide: +1 (866) 660-7555
Results 1 to 2 of 2

Thread: Conditional Running Sum possible?

  1. #1

    Default Conditional Running Sum possible?

    For example, saying i have a report grouped by Furniture Type, and model types in the details, with price.
    Type Model Price
    Chair Total Office Chairs: 40
    Office X2 30
    Home Y3 20
    Office Y5 10

    Table


    I want to sum the price of all the "office" chairs (i.e. 40), and I want that to show in the group header. How can I accomplish this?

    Thanks!

  2. #2
    Join Date
    Mar 2003
    Posts
    7,592

    Default

    Filter your data by creating a formula expression:

    =IF([Type] == "Office"; [Price]; 0)

    and then sum up that formula instead of the original price column.
    Get the latest news and tips and tricks for Pentaho Reporting at the Pentaho Reporting Blog.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •