Forum Discussion

wynhodgkiss's avatar
wynhodgkiss
Icon for Advocate II rankAdvocate II
3 years ago
Solved

Cumulative total by category

Hi,

Has this ever been implemented in power bi? Seems like years since it was suggested but despite recent changes to quick measures the running total quick measure is still fairly useless.

I have a table with (CUMULATIVE being my requirement). There is an entry for each month, and 3 cycles per year but hopefully you get the idea.

YEAR_CYCLE (text)MONTHTOTALCUMULATIVE
2023 101/01/202355
2023 101/02/20231015
2023 201/05/202377
2023 201/06/2023613

 

As I do have a sequential date field, I'm hoping I don't need an index but can't quite get it right. Can anyone assist with the DAX for the cumulative total / running total by cycle?

  • lbendlin's avatar
    lbendlin
    3 years ago

    Yes, that's what the formula does. Two separate cumulations.

6 Replies

    • wynhodgkiss's avatar
      wynhodgkiss
      Icon for Advocate II rankAdvocate II

      Hi,

      Unless I'm missing something, that only gives me a running total. What I need is a running total that resets each time the Cycle changes.

      • lbendlin's avatar
        lbendlin
        Icon for Super User rankSuper User

        Yes, that's what the formula does. Two separate cumulations.

    • Anonymous's avatar
      Anonymous
      Not applicable

      How to get the Total right for Cumulative now?

  • Sorry, my mistake. The formula requires "Cycle" to be a field in the output and I'd removed it.

     

    Works great, thanks