Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
7 years ago
Solved

adding the data of different column in table

Hi,

I have 3 columns of data in which i have to add the data of 3 columns of each row individually.

 

SUMX(Table name,Table name[Column1] + Table name[Column2]....)

This syntax doesn't work with my requirement. It sum up data of whole column and then add the addition to sum up data of other column.

Give any suggestion if have.

 

Thanks in Advance.

 

  • Hi Anonymous

    What is your expected result?

    could you give me an example?

     

    in my test, with this formula, if you use it in a column

     

    use it in a measure

     

    Best Regards
    Maggie



    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

2 Replies

  • AlB's avatar
    AlB
    Icon for Community Champion rankCommunity Champion

    Hi Anonymous

     

    Try

     

    NewColumn = TableName[Column1] + TableName[Column2] + TableName[Column3]

  • v-juanli-msft's avatar
    v-juanli-msft
    Icon for Community Support rankCommunity Support

    Hi Anonymous

    What is your expected result?

    could you give me an example?

     

    in my test, with this formula, if you use it in a column

     

    use it in a measure

     

    Best Regards
    Maggie



    Community Support Team _ Maggie Li
    If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.