title: Is there a POWER BI or DAX code that can make a cumulative or running total of a column made by measure?
body: <p>I am currently trying to make a running total for a cumulative plot of some temprature data in Power BI Desktop, but cannot get it to work.</p>
  <p>I can see from similar posts on forums that im not the only one. My problem is that I have temperature data from a large table (20-30 degrees) and then made a measure that count the instances of each specific temperature and returns the percentage of the total instances. I want to make a running total which enables me to plot the cumulative distribution.</p>
  <p>I have tried ranking the tempertures, and ranking by dates does not make sense. I feel like it is a pretty simple problem but i have not spend 3 days without luck.</p>
  <p>I have added some screenshots of my data and progress so far and the code i use to calculate the percentage of the cumulative total, which is the one i want made into a running total.</p>
  <p>Hope some of you can help me with some guidance or examples of how to tackle this issue.</p>
  <p>Sincerly Lasse</p>
  <ul>
  <li><a href="https://i.stack.imgur.com/YKUZt.png" rel="nofollow noreferrer">Code</a></li>
  <li><a href="https://i.stack.imgur.com/JhvCm.png" rel="nofollow noreferrer">Canvas so far</a></li>
  <li><a href="https://i.stack.imgur.com/xFgvu.png" rel="nofollow noreferrer">Data to sum</a></li>
  <li><a href="https://i.stack.imgur.com/GUWUU.png" rel="nofollow noreferrer">Fault when ranking</a></li>
  <li><a href="https://i.stack.imgur.com/d7KQs.png" rel="nofollow noreferrer">Example of a ranking</a></li>
  </ul>