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.
I want to create a running total per month based on sales amount of particular values.
Also, those particular values were not sold each month but still need running total of sales amount for all items for entire year.
Here's an example:-
Input Table Output Table
Item | Month | Sales | Item | Month | Sales | cumulative Total | |
Apple | Feb-24 | 236 | Apple | Jan-24 | 0 | 0 | |
Apple | Jun-24 | 112 | Apple | Feb-24 | 236 | 236 | |
Apple | Mar-24 | 404 | Apple | Mar-24 | 404 | 640 | |
Guava | Aug-24 | 442 | Apple | Apr-24 | 0 | 640 | |
Guava | Dec-24 | 226 | Apple | May-24 | 0 | 640 | |
Guava | Feb-24 | 274 | Apple | Jun-24 | 112 | 752 | |
Guava | Jan-24 | 285 | Apple | Jul-24 | 0 | 752 | |
Guava | Jun-24 | 146 | Apple | Aug-24 | 0 | 752 | |
Guava | Nov-24 | 423 | Apple | Sep-24 | 0 | 752 | |
Melon | Apr-24 | 438 | Apple | Oct-24 | 0 | 752 | |
Melon | Jul-24 | 391 | Apple | Nov-24 | 0 | 752 | |
Melon | Mar-24 | 188 | Apple | Dec-24 | 0 | 752 | |
Melon | Nov-24 | 221 | Guava | Jan-24 | 285 | 285 | |
Melon | Oct-24 | 477 | Guava | Feb-24 | 274 | 559 | |
Guava | Mar-24 | 0 | 559 | ||||
Guava | Apr-24 | 0 | 559 | ||||
Guava | May-24 | 0 | 559 | ||||
Guava | Jun-24 | 146 | 705 | ||||
Guava | Jul-24 | 0 | 705 | ||||
Guava | Aug-24 | 442 | 1147 | ||||
Guava | Sep-24 | 0 | 1147 | ||||
Guava | Oct-24 | 0 | 1147 | ||||
Guava | Nov-24 | 423 | 1570 | ||||
Guava | Dec-24 | 226 | 1796 | ||||
Melon | Jan-24 | 0 | 0 | ||||
Melon | Feb-24 | 0 | 0 | ||||
Melon | Mar-24 | 188 | 188 | ||||
Melon | Apr-24 | 438 | 626 | ||||
Melon | May-24 | 0 | 626 | ||||
Melon | Jun-24 | 0 | 626 | ||||
Melon | Jul-24 | 391 | 1017 | ||||
Melon | Aug-24 | 0 | 1017 | ||||
Melon | Sep-24 | 0 | 1017 | ||||
Melon | Oct-24 | 477 | 1494 | ||||
Melon | Nov-24 | 221 | 1715 | ||||
Melon | Dec-24 | 0 | 1715 |
Solved! Go to Solution.
hi @Aku_2800
Here are your fruits 😄
Step1:
Create a Calendar table, add year, month and month no. as well.
Step2: Create this measure
hi @Aku_2800
Here are your fruits 😄
Step1:
Create a Calendar table, add year, month and month no. as well.
Step2: Create this measure
This is your chance to engage directly with the engineering team behind Fabric and Power BI. Share your experiences and shape the future.
Check out the June 2025 Power BI update to learn about new features.
User | Count |
---|---|
10 | |
10 | |
10 | |
9 | |
7 |
User | Count |
---|---|
17 | |
12 | |
11 | |
11 | |
10 |