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,
in power bi desktop I have
1)following dataset which is calculating amount for each quarter means from January to March,April to June,July to September and October to December.
select datepart(QUARTER, entrydate_inrevenue) revenuequarter
,sum(amount)Amount
from Accounts
where
datepart(year, entrydate_inrevenue) = datepart(year,getdate())
group by datepart(QUARTER, entrydate_inrevenue)
But For my report I need to calculate cumulative values from january to March,January to June,January to September,January to December.which means from starting of year to end of each quarter.
I also have dimdate table in my database.
Can someone please explain how to implement this.
Thanks.
Solved! Go to Solution.
hi, @kan
After my research, you could try this way as below:
Add a Quarter NO column for date table
Quarter NO = INT ( FORMAT ( [Date], "q"))
Step2:
Add a measure by this formula
result =
CALCULATE (
SUM ( 'Table'[Amount] ),
FILTER (
ALL ( 'Date' ),
AND (
'Date'[Quarter NO] <= MAX ( 'Date'[Quarter NO] ),
YEAR ( 'Date'[Date] ) = YEAR ( TODAY () )
)
)
)Result:
here is pbix, please try it.
Best Regards,
Lin
hi, @kan
After my research, you could try this way as below:
Add a Quarter NO column for date table
Quarter NO = INT ( FORMAT ( [Date], "q"))
Step2:
Add a measure by this formula
result =
CALCULATE (
SUM ( 'Table'[Amount] ),
FILTER (
ALL ( 'Date' ),
AND (
'Date'[Quarter NO] <= MAX ( 'Date'[Quarter NO] ),
YEAR ( 'Date'[Date] ) = YEAR ( TODAY () )
)
)
)Result:
here is pbix, please try it.
Best Regards,
Lin
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!