Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago

SumX on the table

I'm trying to do something I thought would be simple, but it's not working.

I have a column involving defective products that need to be returned. The column is "Number of line items to return", depending on the item.

I can get the Number of line items to return column to display the correct value ONLY by selecting "do not summarize" in the field settings.... otherwise, it displays the incorrect values (4 in this case).

I thought that by using a SUMX function, I could get the correct row level amount..... but it also says 4... when I should say 1.

My goal, besides having the right amount at row level, is also to have a total at the bottom... that is not currently happening in the column that shows the correct quantity value. So my goal, again, would be to have a column that shows the correct row level value, and also a correct total at the bottom.

SumX Qty to Return - SUMX ( Merge1, CALCULATE ( SUM ( Merge1[RMA Item Item Qty To Return])))

sumx .png

3 Replies

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

    Hi, Anonymous 

    Not very clear what you want.

    It seems that everything  works well in my test.

    Pbix attached

     

     

    It is suggest to share you sample data and you excepted result (pbix file /excel ) which will make it easiler to solve your issue.

     

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

  • Anonymous ,The information you have provided is not making the problem clear to me. Can you please explain with an example.

    To me, it seems you are creating a column not measure like

    SumX Qty to Return = SUMX ( Merge1, Merge1[RMA Item Item Qty To Return])

    SumX Qty to Return = CALCULATE ( SUM ( Merge1[RMA Item Item Qty To Return]))