Forum Discussion

mbailey's avatar
mbailey
Helper II
6 years ago
Solved

New Column calculation incorrect

Hi,

I have a DirectQuery table in my report called DMTA_OnTimeShipping with two columns: number_of_order_lines_to_ship, and number_or_order_lines_shipped.  On the table, I selected to Create Column and entered
Daily Carry-Over = ( DMTA_OnTimeShipmentSummary[number_of_order_lines_to_ship] - DMTA_OnTimeShipmentSummary[number_of_order_lines_shipped] ).
To check it out the result I put all three in a matrix and the carry-over is giving wrong results. Ex: to_ship = 2, shipped = 0, carry-over = 6. Why would that be?
-Mike 
 

 

 

  • mbailey you added a new column, not measure correct? And the values you used in the matrix, is this sum or avg, what is aggregation on the columns?

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

2 Replies

  • mbailey you added a new column, not measure correct? And the values you used in the matrix, is this sum or avg, what is aggregation on the columns?

     

    I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos whoever helped to solve your problem. It is a token of appreciation!

    Visit us at https://perytus.com, your one-stop-shop for Power BI-related projects/training/consultancy.

    • mbailey's avatar
      mbailey
      Helper II

      Hi,

       That was it. The carry-over column was set to SUM. Changed it to Don't Summarize and it's correct now.