Skip to main content
Woohoo! Qlik Community has won “Best in Class Community” in the 2024 Khoros Kudos awards!
Announcements
Nov. 20th, Qlik Insider - Lakehouses: Driving the Future of Data & AI - PICK A SESSION
cancel
Showing results for 
Search instead for 
Did you mean: 
paulyeo11
Master
Master

How to display Current Qtr ?

Hi All

Below working fine for Display Current Month :-
=Date(AddMonths(today(), -1),'MMM YY')

Below working for display Current Year :-
='S$K' & Chr(10) & date(date#(Year(Today())-0,'YYYY'),'YY') /* Year(Today())

I try to Get Current Qtr using below :-

=Right(year(TempDate),2) & '-Q' & ceil(Month(TempDate)/3)

I dont know how to start.

Paul

 

4 Replies
Yousef_Amarneh
Partner - Creator III
Partner - Creator III

Try the below

=Right(year(TempDate),2) & '-Q' & ceil(Num(Month(TempDate))/3)

Yousef Amarneh
paulyeo11
Master
Master
Author

Hi Sir

Thank you for your sharing .
Your expression when I place at expression label , it does not display correct info. Also you can use the field name = TempDate , as this expression not place at load script.

Paul
Yousef_Amarneh
Partner - Creator III
Partner - Creator III

The expression that I mentioned should be used on the script, however, if you want to get the current quarter in the dashboard use the below

Right(year(Today()),2) & '-Q' & ceil(Num(Month(Today()))/3) 

it will give you 20-Q2

Yousef Amarneh
paulyeo11
Master
Master
Author

Hi Sir

Thank you very much , I try to modify your script to get 19Q4 , I am unable to get it . Look like Quarter is very tricky.

Paul