Join us at FabCon Atlanta from March 16 - 20, 2026, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.
Register now!The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more
Hi everyone !
I already made some research but what I found did not help me.
I want to have the cumulative sum for each month in a third column for actual year and in 4th column for last year.
The two first columns are built like this :
Hello,
You could consider a measure similar to your first one. Depending on how your month column is set up, you can consider doing it a couple different ways.
If you have month as numbers (e.g. 1 - 12) you can consider:
VolLastYear =
VAR _LastMonthJan =
IF('COMPANY$Commision Entries'[MonthNumber] = 1, 12,'COMPANY$Commision Entries'[MonthNumber]-1)
VAR _LastMonthJanCalc =
CALCULATE(
Sum('COMPANY$Commision Entries'[Volume]),
FILTER('COMPANY$Commision Entries','COMPANY$Commision Entries'[MonthNumber]=_LastMonth && 'COMPANY$Commision Entries'[Annee]-1)
)
VAR _LastMonthCalc = CALCULATE(
Sum('COMPANY$Commision Entries'[Volume]),
FILTER('COMPANY$Commision Entries','COMPANY$Commision Entries'[MonthNumber]=_LastMonth))
RETURN
IF('COMPANY$Commision Entries'[MonthNumber] = 1, _LastMonthJanCalc,_LastMonthCalc)
Proud to be a Super User! | |
Hi, I'm sorry, it's not working, I want to result to be just as cumul AY for the previous year
The measure proposed by Power Bi for the actual year is this one, but when I try to adapt it, it is blank
The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!
Check out the November 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 20 | |
| 10 | |
| 9 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 32 | |
| 31 | |
| 18 | |
| 12 | |
| 11 |