Hi All,
Requirement
to build a bucketing logic in webi Report based on Activity Date and Current Date
Last 7 Days
Last 15 Days
Last 30 Days
Last 60 Days
Last 90 Days
Current Year
Previous Year
Current Month
Previous Month
Current Week
Last week
Bucket Logic
=If([vDtDif]Between(0;7)) Then "Last 7 Days"
ElseIf([vDtDif]Between(0;15)) Then "Last 15 Days"
ElseIf([vDtDif]Between(0;30)) Then "Last 30 Days"
ElseIf([vDtDif]Between(0;60)) Then "Last 60 Days"
ElseIf([vDtDif]Between(0;90)) Then "Last 90 Days"
ElseIf([vActDt_Yr]=[vCurYear]) Then "Current Year"
ElseIf([vActDt_Yr]=[vPrYear]) Then "Previous Year"
ElseIf(([vActDt_Wk]=[cCurWk])And([vActDt_Yr]=[vCurYear])) Then "Current week"
ElseIf(([vActDt_Wk]=[vPreWk])And([vActDt_Yr]=[vCurYear])) Then "Previous week"
ElseIf(([cActy_MonthNum]=[vCurMonth])And([vActDt_Yr]=[vCurYear])) Then "Current Month"
ElseIf(([cActy_MonthNum]=[vPreMnth])And([vActDt_Yr]=[vCurYear])) Then "Previous Month"
Issue
above logic doesnot work properly if i select last 7 days option its shows last 0-7days data
if i select last 15 days it shows 7to 15 days data rather than 0-15days data same is for remaining buckets
Regards
sushma