Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 10482

Re: Dynamically calculating Past 12 months data in WEBI through input controls

$
0
0

Hi Sunny,

 

If you can change your input control to Yearmonth in yyyymm in number format, then it becomes much simpler to deal with this, as you would capture selected yearmonth using

 

Useryyyymm=ToNumber(ReportFilter([YearMonthyyyymm]))

 

Yearmonth-12=If(Right(ReportFilter([YearMonthyyyymm]);2)="12";ToNumber(ReportFilter([YearMonthyyyymm]))-11;If(Right(ReportFilter([YearMonthyyyymm]);2) InList("1";"2";"3";"4";"5";"6";"7";"8";"9";"10";"11");ToNumber(ReportFilter([YearMonthyyyymm]))+1-100))

 

You can build a flag to filter out the data as below

 

Flag=If(([YearMonthyyyymm]>=[Yearmonth-12]  AND [YearMonthyyyymm]<=[Useryyyymm]);1;0)

 

Apply block filter or report filter on [Flag]=1

 

Thanks

Mallik


Viewing all articles
Browse latest Browse all 10482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>