March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount! Early bird discount ends December 31.
Register NowBe one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now
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
March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!
Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.
Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.
User | Count |
---|---|
23 | |
16 | |
12 | |
9 | |
7 |
User | Count |
---|---|
38 | |
32 | |
28 | |
12 | |
11 |