Power BI is turning 10, and we’re marking the occasion with a special community challenge. Use your creativity to tell a story, uncover trends, or highlight something unexpected.
Get startedJoin us for an expert-led overview of the tools and concepts you'll need to become a Certified Power BI Data Analyst and pass exam PL-300. Register now.
Good morning,
I want to create a running total that changes from data series 1 to data series 2 at a certain date.
As an example, a forecast could be used, which adds up the actual costs until a defined date and then continues to add up the planned costs. This should result in an S-curve, which shows the actual values with a solid line up to this defined point in time and then indicates the planned values with a dashed line.
How could I implement this?
Love greetings 🙂
@Anonymous , if you use date table the both series will have their won running total
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(all('Date'),'Date'[date] <=max('Date'[date])))
or
Cumm Sales = CALCULATE(SUM(Sales[Sales Amount]),filter(allselected(date),date[date] <=max(date[Date])))
You can also consider window function
Power BI Window function Rolling, Cumulative/Running Total, WTD, MTD, QTD, YTD, FYTD: https://youtu.be/nxc_IWl-tTc
Running Total/ Cumulative: https://www.youtube.com/watch?v=h2wsO332LUo&list=PLPaNVDMhUXGaaqV92SBD5X2hk3TMNlHhb&index=41
Thanks for your message @amitchandak . I want to create a running total from the data, which should sum the values of one data series up to a certain date and then continue to sum the values of another data series. Before the change, the second data series should be ignored and after the change, the first data series should be ignored to avoid a gap or jump in the line.
User | Count |
---|---|
14 | |
9 | |
7 | |
7 | |
6 |
User | Count |
---|---|
21 | |
11 | |
10 | |
9 | |
8 |