Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

Calculating current Quarter

$
0
0

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

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles