Hi there. i need to select records by earliest date in a report.
what i am exactly trying to do is select only customers who started a billing with us in a specific quarter only if they became a new customer during that quarter. Here's my select expert for selecting by quarter:
if ({?QuarterNum} = 1) then
{VIEW_SPR_AR_COMPANIES.ENTRY_DATE} in Calendar1stQtr
and year({VIEW_SPR_AR_COMPANIES.ENTRY_DATE})={?YearNum}
else if ({?QuarterNum} = 2) then
{VIEW_SPR_AR_COMPANIES.ENTRY_DATE} in Calendar2ndQtr
and year({VIEW_SPR_AR_COMPANIES.ENTRY_DATE})={?YearNum}
else if ({?QuarterNum} = 3) then
{VIEW_SPR_AR_COMPANIES.ENTRY_DATE} in Calendar3rdQtr
and year({VIEW_SPR_AR_COMPANIES.ENTRY_DATE})={?YearNum}
else if ({?QuarterNum} = 4) then
{VIEW_SPR_AR_COMPANIES.ENTRY_DATE} in Calendar4thQtr
and year({VIEW_SPR_AR_COMPANIES.ENTRY_DATE})={?YearNum}
and i found this grouping formula elsewhere at this site :
{INVC_HEADER.DATE_CREATED} = minimum({INVC_HEADER.DATE_CREATED})
what i am exactly trying to do is select only customers who started a billing with us in a specific quarter only if they became a new customer during that quarter. Here's my select expert for selecting by quarter:
if ({?QuarterNum} = 1) then
{VIEW_SPR_AR_COMPANIES.ENTRY_DATE} in Calendar1stQtr
and year({VIEW_SPR_AR_COMPANIES.ENTRY_DATE})={?YearNum}
else if ({?QuarterNum} = 2) then
{VIEW_SPR_AR_COMPANIES.ENTRY_DATE} in Calendar2ndQtr
and year({VIEW_SPR_AR_COMPANIES.ENTRY_DATE})={?YearNum}
else if ({?QuarterNum} = 3) then
{VIEW_SPR_AR_COMPANIES.ENTRY_DATE} in Calendar3rdQtr
and year({VIEW_SPR_AR_COMPANIES.ENTRY_DATE})={?YearNum}
else if ({?QuarterNum} = 4) then
{VIEW_SPR_AR_COMPANIES.ENTRY_DATE} in Calendar4thQtr
and year({VIEW_SPR_AR_COMPANIES.ENTRY_DATE})={?YearNum}
and i found this grouping formula elsewhere at this site :
{INVC_HEADER.DATE_CREATED} = minimum({INVC_HEADER.DATE_CREATED})