Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
I have cummulative aggregate within the quarter
I want to calculate Revnue for specific month
Solved! Go to Solution.
Hi @krkumar2 ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
cummuluative =
SUMX(FILTER(ALL('Table'),YEAR('Table'[Date])=YEAR(EARLIER('Table'[Date]))&&MONTH('Table'[Date])=MONTH(EARLIER('Table'[Date]))),[Amount])Revenue =
SUMX(FILTER(ALL('Table'),'Table'[Year-Qtr]=EARLIER('Table'[Year-Qtr])&&'Table'[Month]=EARLIER('Table'[Month])),[Amount])
-
SUMX(FILTER(ALL('Table'),'Table'[Year-Qtr]=EARLIER('Table'[Year-Qtr])&&'Table'[Month]=EARLIER('Table'[Month])-1),[Amount])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Hi @krkumar2 ,
I created some data:
Here are the steps you can follow:
1. Create calculated column.
cummuluative =
SUMX(FILTER(ALL('Table'),YEAR('Table'[Date])=YEAR(EARLIER('Table'[Date]))&&MONTH('Table'[Date])=MONTH(EARLIER('Table'[Date]))),[Amount])Revenue =
SUMX(FILTER(ALL('Table'),'Table'[Year-Qtr]=EARLIER('Table'[Year-Qtr])&&'Table'[Month]=EARLIER('Table'[Month])),[Amount])
-
SUMX(FILTER(ALL('Table'),'Table'[Year-Qtr]=EARLIER('Table'[Year-Qtr])&&'Table'[Month]=EARLIER('Table'[Month])-1),[Amount])
2. Result:
Best Regards,
Liu Yang
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly
Thanks Liu , but it is giving me error
@krkumar2 Maybe:
Calculation Column =
VAR __YearQtr = [Year-Qtr]
VAR __Month = [Month]
VAR __Previous = MAXX(FILTER('Table',[Year-Qtr] = __YearQtr && [Month] = __Month - 1),[Monthly]) + 0
RETURN
__Previous + [Monthly]
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
Check out the October 2025 Power BI update to learn about new features.
| User | Count |
|---|---|
| 8 | |
| 6 | |
| 4 | |
| 4 | |
| 4 |
| User | Count |
|---|---|
| 25 | |
| 17 | |
| 8 | |
| 8 | |
| 7 |