Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
nikhilgarg
Specialist II
Specialist II

Script prob

Hey,

I have a doubt that:

I am writing script where i ahve to fetch data for current fiscal year only as:

Table1:

Load a,

b,c from def.qvd(qvd) where TRANS_DATE >= if(num(month(Today())) < 11 , (year(Today()) - 1)-11-01 , year(today()-11-01)) and

TRANS_DATE <=today();

does my script after where clause is correct ?

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III
Partner - Champion III

Use the Fiscal offset in YearStart:

Where TRANS_DATE >= YearStart(Today(), 0, 11) And TRANS_DATE <= Today()

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
jonathandienst
Partner - Champion III
Partner - Champion III

Use the Fiscal offset in YearStart:

Where TRANS_DATE >= YearStart(Today(), 0, 11) And TRANS_DATE <= Today()

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein
Gysbert_Wassenaar

(year(Today()) - 1)-11-01 = 2014-11-01 = 2014-12 = 2002 = the 26th of june 1905.


talk is cheap, supply exceeds demand
sunny_talwar

1) (year(Today()) - 1)-11-01

2) year(today()-11-01))

Everything looks good, but what exactly you are trying to do with these two above??