Forum Discussion

GD61's avatar
GD61
Helper III
10 years ago
Solved

SUM row by row

Hi, 

In my table, I want to add a new column to display the sum row by row :

Crime rate + Community well-being + Cost of living + Health care quality + Tax rate

What is the formula to do that?

Thanks for help

 

  • If I understand correctly, you would create a custom column with the formula:

     

    MySum = [Crime rate] + [Community well-being] + [Cost of living] + [Health car quality] + [Tax rate]

     

    You could also create a measure with the same formula and place it in a table visualization.

4 Replies

  • Greg_Deckler's avatar
    Greg_Deckler
    Community Champion

    If I understand correctly, you would create a custom column with the formula:

     

    MySum = [Crime rate] + [Community well-being] + [Cost of living] + [Health car quality] + [Tax rate]

     

    You could also create a measure with the same formula and place it in a table visualization.

    • Anonymous's avatar
      Anonymous
      Not applicable

      hello sir, i have the same issue and i did what u mentioned but the column shows total sum and not the individual sum...i even tried dont summerize option but its not working.. pls help Greg_Deckler 

    • kbrewer's avatar
      kbrewer
      Frequent Visitor

      i want to use this calc and then also divide this number by the number of columns i used.. to get the average   ex: i have 12 columns and sometimes a row may only have 6 columns that have a number "1" so if the sum is 6 and i want to average it throught the 12 columns. i want the average to return ".5 " not averaging it through only the 6 filled columns returning "1".  

      Greg_Deckler