Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreWe've captured the moments from FabCon & SQLCon that everyone is talking about, and we are bringing them to the community, live and on-demand. Starts on April 14th. Register now
Hi Power BI community,
I have strugle with creating cumulative column, when making measureI managed. Can somebody help?
I have table like one below and I want to make cumulative column which will show sales in last 12 monhts filtered by country and product. Example is simple. Products can be different .
| Date | Country | Product | Sales | Cumulative column 12 months |
| 31.1.2022 | Germany | Apple | 10 | 10 |
| 28.2.2022 | Germany | Apple | 20 | 30 |
| 31.3.2022 | Germany | Apple | 50 | 80 |
| 30.4.2022 | Germany | Apple | 30 | 110 |
| 31.5.2022 | Germany | Apple | 20 | 130 |
| 30.6.2022 | Germany | Apple | 10 | 140 |
| 31.7.2022 | Germany | Apple | 50 | 190 |
| 31.8.2022 | Germany | Apple | 15 | 205 |
| 30.9.2022 | Germany | Apple | 25 | 230 |
| 31.10.2022 | Germany | Apple | 30 | 260 |
| 30.11.2022 | Germany | Apple | 40 | 300 |
| 31.12.2022 | Germany | Apple | 15 | 315 |
| 31.1.2023 | Germany | Apple | 32 | 337 |
| 31.1.2022 | France | Apple | 98 | 98 |
| 28.2.2022 | France | Apple | 20 | 118 |
| 31.3.2022 | France | Apple | 30 | 148 |
| 30.4.2022 | France | Apple | 10 | 158 |
| 31.5.2022 | France | Apple | 40 | 198 |
| 30.6.2022 | France | Apple | 50 | 248 |
| 31.7.2022 | France | Apple | 34 | 282 |
| 31.8.2022 | France | Apple | 55 | 337 |
| 30.9.2022 | France | Apple | 35 | 372 |
| 31.10.2022 | France | Apple | 32 | 404 |
| 30.11.2022 | France | Apple | 78 | 482 |
| 31.12.2022 | France | Apple | 54 | 536 |
| 31.1.2023 | France | Apple | 45 | 483 |
I couldn't find similar example on forum.
Thanks in advance.
Solved! Go to Solution.
Here are a couple of examples
Hi,
PBI file attached.
Thanks a lot!
You are welcome.
Thanks a lot for examples!
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.
Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.
| User | Count |
|---|---|
| 51 | |
| 37 | |
| 35 | |
| 19 | |
| 17 |
| User | Count |
|---|---|
| 70 | |
| 64 | |
| 39 | |
| 33 | |
| 23 |