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

previous yearquarter from today()

Hi Qlikss,

I want 2 values in text object1) current yearquarter 2) previous yearquarter .

i know how to calculate current yearquarter:   = year(Today())&'-'& 'Q' & CEIL(NUM(MONTH(Today()))/3)

how can i calculate previous quarteryear??

Labels (2)
1 Solution

Accepted Solutions
stonecold111
Creator III
Creator III
Author

i figured it myself

year(Today())&'-'& 'Q' & CEIL(NUM(MONTH(QuarterStart(today(),-1)))/3)

View solution in original post

1 Reply
stonecold111
Creator III
Creator III
Author

i figured it myself

year(Today())&'-'& 'Q' & CEIL(NUM(MONTH(QuarterStart(today(),-1)))/3)