Hi Riddhi ,
afaik this is not doable in UDT/IDT .Only thing we can make is to run the report for last month by using magic dates concept.
Check below logic if it helps.
For a requirement to run a report for fiscal year starting date to last month if nothing selected .
@Select(Time\Yr-Mth Key) between@Prompt('From Date','A','Time\Month / Year',mono,primary_key,,{'JUL 2013'}) and | |||||||||||||||||
(case when @Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'})='JAN 1999' then to_char(add_months(sysdate,-1),'YYYYMM') | |||||||||||||||||
else |
@Prompt('To Date','A','Time\Month / Year',mono,primary_key,,{'JAN 1999'}) end)
This is on Oracle Database.
When you run webi report
From Date : JUL 2013 (fiscal year start date)
To date : JAN 1999( without changing this you can refresh the report for last month , else it'll refresh for selected month)