I'm using this formula to calculate my quarters:-
Local NumberVar Quarter := DatePart("q",{HIST.HIST_DATE});
If Quarter = 1 then Quarter := 4 else Quarter := Quarter -1;
"Q"&ToText(Quarter,0);
but I need to create a total to count interactions in each quarter where the company is less than two years old at the end of each quarter ({COMS.STAR_DATE})
I was going to use datediff but can't work out how to calculate last date of each quarter.
Thanks
jcl5
Local NumberVar Quarter := DatePart("q",{HIST.HIST_DATE});
If Quarter = 1 then Quarter := 4 else Quarter := Quarter -1;
"Q"&ToText(Quarter,0);
but I need to create a total to count interactions in each quarter where the company is less than two years old at the end of each quarter ({COMS.STAR_DATE})
I was going to use datediff but can't work out how to calculate last date of each quarter.
Thanks
jcl5