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

Current and Previous Quarter

Hi,

I have atable that has Quarter as follow:

Quarter

2011/1

2011/2

2011/3

...

...

..

2013/4

2014/1

...

I need to define the Current and the previous Quarter based on today's date..

Anybody has a solution?

Thxs

1 Solution

Accepted Solutions
Josh_Good
Employee
Employee

Try this expression:

Today's Quarter:

=Year(Today()) & '/' & Ceil(Month(Today())/12*4)

Last Quarter:

=Year(AddMonths(Today(),-3)) & '/' & Ceil(Month(addMonths(Today(),-3))/12*4)

View solution in original post

6 Replies
mphekin12
Specialist
Specialist

You can try using Autonumber().  Here is an article that might point you in the right direction:

     Set Analysis: Nested If Statement into Set Analysis

Josh_Good
Employee
Employee

Try this expression:

Today's Quarter:

=Year(Today()) & '/' & Ceil(Month(Today())/12*4)

Last Quarter:

=Year(AddMonths(Today(),-3)) & '/' & Ceil(Month(addMonths(Today(),-3))/12*4)

Not applicable

Hi,

     If you want Quarter Date then use:

       QuarterStart (Today())          //For Quarter Date

              

      QuarterName:    QuarterName(Today())          //For Quarter Name

For Previous Quarter:

          QuarterStart (Today(), -1)      // For Quarter Date

        QuarterName:    QuarterName(Today(), -1)            //For Quarter Name

If your requirement not fullfill then please attach any sample file for more clarification.

Regards,

Ashutosh

VishalWaghole
Specialist II
Specialist II

Hi,

PFA attachment....

Thanks and Regards,

Vishal Waghole

Not applicable

Hi, Try This hope it will help

Dimension: Quarter

Expression:

=Sum({<CommonDateField={">=$(=Date(QuarterStart(vMaxDate, -1)))<=$(=Date(floor(QuarterEnd(vMaxDate))))"}>}Sales)

Variable:

vMaxDate: =Date(max(CommonDateField),'DD/MM/YYYY')

Not applicable

Hi,

Try below:

Current Year and Quarter  = Year(QuarterStart(Today()))     & '/' & Ceil(Month(QuarterStart(Today()))/3)

Previous Year and Quarter= Year(QuarterStart(Today(),-1))  & '/' & Ceil(Month(QuarterStart(Today(),-1))/3)