The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.
Hi,
If you want a running sum only within the month, wouldn't it be easier to use TOTALMTD() function ?
I do not know about the details of your project, but it seems to be the easiest way...
The formula you used is perfect when you need a running sum on all lines, but for monthly running sum the best is to use TOTALMTD or for quarter TOTALQTD...
Let us know if it suits your needs
Let us know
try like:
cum_tot =
CALCULATE (
[sum_trip_cost],
FILTER(
ALL(ff[Trip Date]),
ff[Trip Date] < MAX (ff[Trip Date] )
&& YEAR( ff[Trip Date]) = YEAR( MAX (ff[Trip Date] ))
&& MONTH( ff[Trip Date]) = MONTH( MAX (ff[Trip Date] ))
)
)
User | Count |
---|---|
15 | |
12 | |
8 | |
7 | |
7 |
User | Count |
---|---|
24 | |
20 | |
12 | |
10 | |
7 |