Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

Next up in the FabCon + SQLCon recap series: The roadmap for Microsoft SQL and Maximizing Developer experiences in Fabric. All sessions are available on-demand after the live show. Register now

Reply
n5722
Helper I
Helper I

Sum from beginning of quarter to today's date

Hello,

I don't know how to do the following so could someone please give me some advice? I already checked multiple forum posts regarding similar issues but I could not implement it in a way that works.

Screenshot 2021-05-10 at 13.46.10.png

 

In the graph above (which shows the period of Q2) I want to calculate:

- the sum of the dark blue area (named "actual") that should start from the first day of the quarter and end on today's date
and add that to the
- sum of the light blue area (named "forecast") that should start from today's date and end on the last day of the quarter

Both of them are connected to a Date Helper table.

Any advice would be much appreciated!

Thanks!

1 ACCEPTED SOLUTION
Anonymous
Not applicable

Hello @n5722 ,

 

Create below measures,

 

Max Date QTR Start =
DATE ( YEAR(MAX('Date'[Date])), ROUNDUP ( DIVIDE ( MONTH (MAX('Date'[Date])),3 ),0 ) *3 -2, 1)
 
Max Date Qtr End =
EOMONTH ( [Max Date QTR Start],2 )
 
Actual =
CALCULATE(Sum('Table'[Actual]),DATESBETWEEN('Date'[Date],[Max Date QTR Start],TODAY()))
 
Forecast = 
CALCULATE(Sum('Table'[Forcast]),DATESBETWEEN('Date'[Date],TODAY(),[Max Date Qtr End]))

View solution in original post

2 REPLIES 2
Anonymous
Not applicable

Hello @n5722 ,

 

Create below measures,

 

Max Date QTR Start =
DATE ( YEAR(MAX('Date'[Date])), ROUNDUP ( DIVIDE ( MONTH (MAX('Date'[Date])),3 ),0 ) *3 -2, 1)
 
Max Date Qtr End =
EOMONTH ( [Max Date QTR Start],2 )
 
Actual =
CALCULATE(Sum('Table'[Actual]),DATESBETWEEN('Date'[Date],[Max Date QTR Start],TODAY()))
 
Forecast = 
CALCULATE(Sum('Table'[Forcast]),DATESBETWEEN('Date'[Date],TODAY(),[Max Date Qtr End]))

Works like a charm! Thank you so much!

Helpful resources

Announcements
New to Fabric survey Carousel

New to Fabric Survey

If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.

Power BI DataViz World Championships carousel

Power BI DataViz World Championships - June 2026

A new Power BI DataViz World Championship is coming this June! Don't miss out on submitting your entry.

Join our Fabric User Panel

Join our Fabric User Panel

Share feedback directly with Fabric product managers, participate in targeted research studies and influence the Fabric roadmap.

March Power BI Update Carousel

Power BI Community Update - March 2026

Check out the March 2026 Power BI update to learn about new features.