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!Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Hi guys! How are you? I need some help!
I dont know how to calculate a DAX measure. I tried several ways and failed to do it.
On one hand, i have a measure that cumulatively summarizes "operation fee" (and indicator that calculates the accumulated income for the current month) with this DAX:
Fee Mensual = CALCULATE(sum(TradeOrder[operationFee]))
And, on the other hand, i need to calculate that accumulated "operation fee" for the same date of the previous month. Example: if i do it today, i compare the accumulated income for October with the accumulated income until September the 8th.
The measure i used to calculate the second indicator es:
AcumuladoMovilMesAnterior = CALCULATE(SUM(TradeOrder[operationFee]), FILTER(Dim_Calendario,
Dim_Calendario[Date] <= EOMONTH(MAX(Dim_Calendario[Date]), -1)
&& DAY(Dim_Calendario[Date]) <= DAY(MAX(Dim_Calendario[Date])) ) )
But for some reason, it doesnt return the correct value.
Hope you can help me with this!
Thanks
Solved! Go to Solution.
Hi! You can use the below DAX:
Then, I added the date to filters on this page (you could also use all pages) and set it to relative date for in this month:
Proud to be a Super User! | |
Hi! You can use the below DAX:
Then, I added the date to filters on this page (you could also use all pages) and set it to relative date for in this month:
Proud to be a Super User! | |
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!
| User | Count |
|---|---|
| 101 | |
| 76 | |
| 56 | |
| 51 | |
| 46 |