Forum Discussion

fbron's avatar
fbron
Frequent Visitor
6 years ago

SUM / SUMX Column

I'm working with a combined table - Current ERP data + Historical data (.xlsx) merged by query.

I used the following formula to create a custom column for weight (also to get rid of the "-") 

My current data turns out fine 2019, 2020 but within the historical data the weight values of identical rows end up summarized.

Using SUMX leaves me with the following error message:

 

Any thoughts on how to solve this?

4 Replies

  • Hi fbron ,

     

    SUMX is an aggregator calculation the first parameter is a table and the second the calculation you need. So your measure needs to be something similar to:

     

    SUMX(Table;SUM(Table[Weight))

     

    If you are just trying to replaced the negative to positives have you tried the ABS formula?

  • Hi fbron ,

     

    Try creating a measure rather than a column.

     

    If this helps please give Kudos and mark it as a Solution! 🙂

     

    Thanks,

    Pragati