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

Join the FabCon + SQLCon recap series. Up next: Power BI, Real-Time Intelligence, IQ and AI, and Data Factory take center stage. All sessions are available on-demand after the live show. Register now

Reply
Caitlin_Knox
Advocate III
Advocate III

Calculating current Quarter

I'm trying to create a calculated column to return the current quarter like I do for current month. I use these mostly as a visualization filter so the report updates to the current information.

This is the formula I use for Current Month:

CurrentMonth = IF(YEAR('LST Report'[EffectiveDate])&MONTH('LST Report'[EffectiveDate])=YEAR(NOW())&MONTH(NOW()),1,0)

This is what I'm trying for Current Quarter, it is not working as I would expect.

CurrentQuarter = IF(YEAR('LST Report'[EffectiveDate])&MONTH('LST Report'[EffectiveDate]+2/3)=YEAR(NOW())&MONTH(NOW()+2/3),1,0)

 Any thoughts are appreciated

 

1 ACCEPTED SOLUTION
Flori_Abb
Helper I
Helper I

Hi Caitlin_Knox

 

i guess you enter this formula in a date table and you want to add a column what shows you 1 if the date is the current quater. In this case i added before a quaternumber column:

 

QuaterNumber = if(dim_Date[Year] = year(now());roundup(dim_Date[MonthNumberOfYear]/3;0);0) and then

 

Current QTD = if(dim_Date[QuaterNumber] = roundup(month(now()-1)/3;0);1;0)

That works for me fine, maybe it helps you also.

KR

Florian

View solution in original post

3 REPLIES 3
SBoraste
Regular Visitor

You can calculate the current Quarter Sales using below DAX:

CY Quarter = CALCULATE(SUM('Sample Data'[Total Budget]),YEAR('Sample Data'[Project Start Date])=YEAR(TODAY()),
'Date Table'[QuarterOfYear]=ROUNDUP(MONTH(TODAY()) / 3, 0))
v-sihou-msft
Microsoft Employee
Microsoft Employee

@Caitlin_Knox

 

You can also use following expression to get the Quarter number.

 

Quarter Number = INT(FORMAT(NOW(),"q"))

Regards,

 

Flori_Abb
Helper I
Helper I

Hi Caitlin_Knox

 

i guess you enter this formula in a date table and you want to add a column what shows you 1 if the date is the current quater. In this case i added before a quaternumber column:

 

QuaterNumber = if(dim_Date[Year] = year(now());roundup(dim_Date[MonthNumberOfYear]/3;0);0) and then

 

Current QTD = if(dim_Date[QuaterNumber] = roundup(month(now()-1)/3;0);1;0)

That works for me fine, maybe it helps you also.

KR

Florian

Helpful resources

Announcements
April Power BI Update Carousel

Power BI Monthly Update - April 2026

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

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.

FabCon and SQLCon Highlights Carousel

FabCon &SQLCon Highlights

Experience the highlights from FabCon & SQLCon, available live and on-demand starting April 14th.