Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi guys,
I have an expression
=count({$<[Invoice Date] = {'>=$(=AddMonths( YearStart (Today()),-12))<=$(=AddMonths( MonthEnd (Today()),-12))'},invoice_value={"=invoice_value>0"}>}Distinct left(invoice_CustNo,5))
However this is doing a count up until the end of the month 2014. Can this be changed somehow to only show up until the same day of the current month but previous year? e.g. 09/06/2014
Hope this makes sense
Hi Jamel,
make it
=count({$<[Invoice Date] = {'>=$(=AddMonths( YearStart (Today()),-12))<=$(=AddMonths( Today(),-12))'},invoice_value={"=invoice_value>0"}>}Distinct left(invoice_CustNo,5))
remove Monthend function
Hi Jamel,
make it
=count({$<[Invoice Date] = {'>=$(=AddMonths( YearStart (Today()),-12))<=$(=AddMonths( Today(),-12))'},invoice_value={"=invoice_value>0"}>}Distinct left(invoice_CustNo,5))
remove Monthend function
Or you can use Addyears() fundtion:
=count({$<[Invoice Date] = {'>=$(=AddMonths( YearStart (Today()),-12))<=$(=AddYears(Today(),-1))'},invoice_value={"=invoice_value>0"}>}Distinct left(invoice_CustNo,5))
Hi,
Just remove MonthEnd()
Try below
=count({$<[Invoice Date] = {'>=$(=AddMonths( YearStart (Today()),-12))<=$(=AddMonths( Today(),-12))'},invoice_value={"=invoice_value>0"}>}Distinct left(invoice_CustNo,5))
Regards
Try this
=count({$<[Invoice Date] = {'>=$(=AddMonths( Today(),-12))'},invoice_value={">0"}>}Distinct left(invoice_CustNo,5))
Ah didn't realise there was a "MonthEnd" text slipped in there!
Thanks for your help everyone