Forum Discussion

BishwaR's avatar
BishwaR
Helper V
5 years ago
Solved

Cumulative sum

HI I am calculation the cumulative sum of the product sold with the sold date but getting some unwanted result for some dates with multiple sells.   Sold Date    Item     No Of Product sold        ...
  • parry2k's avatar
    5 years ago

    BishwaR based on your data, it is not going to work, you need to break the ties between the dates. You can add index column in PQ and then instead of date use that column for cumulative sum.

     

    Follow us on LinkedIn

     

    Check my latest blog post The Power of Using Calculation Groups with Inactive Relationships (Part 1) (perytus.com) I would  Kudos if my solution helped. 👉 If you can spend time posting the question, you can also make efforts to give Kudos to 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.