Hi,
In webi report, user wants data filtered dynamically by YeartoMonth.
Once user schedule a report once per month, report runs by yearto month every month. User will not have change the date every month.
For this month May 2013 it runs for
from 1/1/2013 to 4/30/2013
For month of June 2013 it runs for
from 1/1/2013 to 5/30/2013
CanSQL dateadd function used here…
Eg.
Begin date=dateadd(mm,datediff(m,0,getdate())-1,0)
End Date=dateadd(mm,-1,dateadd(mm,datediff(m,0,getdate()),0))
Need help with end date .
MP
patelm (BOB member since 2012-04-10)