Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
6 years ago
Solved

Formula calculation not working

Hello,

 

I have a matrix visual that all data points are correct except for my last column called "Total Sales Diff Per Week".

 

The answer for the top row should be the sum of the 4 items below it and $2,244,280.

The next set of numbers (the $371,951) should be the sum of the 4 items below it and $1,295,365 and finally the last total row should be the $2,244,280 + 1,295,365 = $3,539,645

 

Right now the formula is working correctly but not at the aggregated area so I know I need to change my formula but not sure how. 

 

 

Any ideas!

  • Anonymous I think it should be SUMX iterate over your column on the rows

     

    New Measure = 
    SUMX ( VALUES ( Table[Column On The Row] ), [Total Sales Diff Per Week Measure] )

     

    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