Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I need to set up a list box with 4 monthly periods in addition to the quarterly periods which have already been set up in QlikView.
What is the best way going about setting this up?
Thanks
Shamit
Hi Shamit,
For trimester, I don't think +1 in your expression is required.
If I consider:
Jan, Feb, Mar, Apr - 1
May, Jun, Jul, Aug - 2
Sep, Oct, Nov, Dec - 3
Then 'Q' & (mod(Ceil(Month(Date)/4),4)) would resolve the issue.
Thanks!
can u explain more with sample data?
"4 Monthly Periods", does it mean you need to divide each month in 4 equal period?
I currently have the following in the script for quarters:
'Q' & (mod(Ceil(Month(Date)/3)+1,4)+1) as Quarter
However , I require a trimester breakdown as well. Is it simply a matter of adding an additional line as
'Q' & (mod(Ceil(Month(Date)/4)+1,4)+1) as TQuarter ?
Thanks
Shamit
Hi Shamit,
For trimester, I don't think +1 in your expression is required.
If I consider:
Jan, Feb, Mar, Apr - 1
May, Jun, Jul, Aug - 2
Sep, Oct, Nov, Dec - 3
Then 'Q' & (mod(Ceil(Month(Date)/4),4)) would resolve the issue.
Thanks!
Hi,
Ceil(Month(Date)/4) would do it.
Thanks,
Carlos
Thanks Carlos,
That works as well.
Shamit