1 Reply Latest reply: Dec 13, 2015 8:33 AM by Konrad Mattheis RSS

    Totals Row

    Philipp Wesseling

      Hi there,

       

      i am trying to create an extension that lists selected dimensions and measures as a simpe table.

      This works out fine so far.

       

      However, i would like to add a totals row where i sum up the values for every measure column and this is where i struggle. While looping through every row

       

      this.backendApi.eachDataRow(function(rownum, row) {
      

       

      and every cell in this row

       

      $.each(row, function(key, cell) {
      

       

      i seem to be able to sum up the total of all measures, but not per measure...

       

      How could i do this ? Is there a simple method for this ? How could i tell that a cell in a row belongs to this measure, but another cell in the same row to another measure ?

       

      Thanks a lot for some help on this!