Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi All
i have this query in my edit script
if(DEPT_Code = 'COS',Date([lastSalesMatchDate] ,'YYYY-MM-DD'),Date(MonthStart(today()),'YYYY-MM-DD')) as [date]
In the above DEPT_Code i need to include even DOT also how do i write this
if(DEPT_Code = 'COS',DOT,......) ?
Try like this
if(DEPT_Code = 'COS' or DEPT_Code = 'DOT' ,Date([lastSalesMatchDate] ,'YYYY-MM-DD'),Date(MonthStart(today()),'YYYY-MM-DD')) as [date]
Try this
if(match(DEPT_Code = 'COS','DOT'),Date([lastSalesMatchDate] ,'YYYY-MM-DD'),
Date(MonthStart(today()),'YYYY-MM-DD'))
Thanks,
Balakrishnan.R
Try like this
if(DEPT_Code = 'COS' or DEPT_Code = 'DOT' ,Date([lastSalesMatchDate] ,'YYYY-MM-DD'),Date(MonthStart(today()),'YYYY-MM-DD')) as [date]
Match doesn't need an equal sign... may be this
If(Match(DEPT_Code, 'COS', 'DOT'), Date([lastSalesMatchDate], 'YYYY-MM-DD'),
Date(MonthStart(Today()), 'YYYY-MM-DD'))
Hi,
if(Match(DEPT_Code, 'COS', 'DOT')>0, Date([lastSalesMatchDate] ,'YYYY-MM-DD'),Date(MonthStart(today()),'YYYY-MM-DD')) as [date]
Yes, apologies.
Match does not need an equal sign.