Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. Bubba059

    Previous quarter query

    Sorry but made a mistake in the second formula. if datepart("q",currentdate)=1 then datepart("q",{INIDP.INVDAT})=4 and datepart("yyyy",{INIDP.INVDAT})=datepart("yyyy",dateadd("yyyy",1,currentdate)-1) else datepart("q",{INIDP.INVDAT})=datepart("q",dateadd("q",-2,currentdate)-1) and...
  2. Bubba059

    Previous quarter query

    I am trying to calculate sales for the previous quarter both this year and for last. I am using the following: Previous qtr same year if datepart("q",currentdate)=1 then datepart("q",{INIDP.INVDAT})=4 and datepart("yyyy",{INIDP.INVDAT})=datepart("yyyy",dateadd("yyyy",-1,currentdate)) else...

Part and Inventory Search

Back
Top