Quantcast
Channel: SQLServerCentral » Reporting Services » Reporting Services » Latest topics
Viewing all articles
Browse latest Browse all 2791

DATEPART to calculate financial year

$
0
0
HelloI have a report that uses the Datepart function to return the current, and previous, year's data:DATEPART(YEAR, a.Date);DATEPART(YEAR, a.Date) = DATPART(YEAR, GetDate())-1This brings through calendar year fine.Is it possible to amend this to bring through the financial year (e.g. 1/4/15 - 31/3/16)?Any advice much appreciated.

Viewing all articles
Browse latest Browse all 2791

Trending Articles