Don't miss your chance to take the Fabric Data Engineer (DP-700) exam on us!
Learn moreNext up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now
Hi, I have two fields in my table. YYYY-MM which the year and month details. Due amount which has the due amount that is yet to come for respective year and month.
I need a Measure to find the Cumulative value which add the previous due amounts till the end. The first month will start with same due amount and from the next month the due amount gets added one by one.
Please help me to create a measure with DAX.
| YYYY-MM | Due Amount | Cumulative Value |
| 2021-01 | 1000 | 1000 |
| 2021-02 | 2000 | 3000 |
| 2021-03 | 3000 | 6000 |
| 2021-04 | 4000 | 10000 |
| 2021-05 | 5000 | 15000 |
Solved! Go to Solution.
Hi ,
Please try:
Measure = SUMX(FILTER(ALLSELECTED('Table'),'Table'[YYYY-MM] <= MAX('Table'[YYYY-MM]) ), 'Table'[Due Amount])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Hi ,
Please try:
Measure = SUMX(FILTER(ALLSELECTED('Table'),'Table'[YYYY-MM] <= MAX('Table'[YYYY-MM]) ), 'Table'[Due Amount])
Best Regards,
Liang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
@Anonymous ,
a new column = sumx(filter(Table, [YYYY-MM] = earlier([YYYY-MM]) ), [Due Amount])
a new measure= sumx(filter(allselected(Table), [YYYY-MM] = max([YYYY-MM]) ), [Due Amount])
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 |
|---|---|
| 53 | |
| 45 | |
| 44 | |
| 20 | |
| 19 |
| User | Count |
|---|---|
| 73 | |
| 71 | |
| 34 | |
| 33 | |
| 31 |