HI ,everyone;Share my BI WEBi empirical,Hope help more people.
Hope your Share your formulas,too.
*********************************************************
1.User defined week date range
For example:
June,calendar The first week,Second weeks,Third weeks,The fourth week,Fifth weeks day are 1-7,8-14,15-21,22-28,29-30.
but user defined week was no Fifth weeks ,for it only tow days.so user defined week date range is 1-7,8-14,15-21,22-30.
so I creat five Query Filters,the names was " The first week,Second weeks,Third weeks,The fourth week,Fifth weeks day".
Fifth Query Filter check "Optional Prompt",others not.
The formula of User defined week is as follows:
=If [data]<=UserResponse("The first week") Then "The first week"
ElseIf [data]<=UserResponse("Second week") And [data]>UserResponse("The first week") Then "Second week"
ElseIf [data]<=UserResponse("Third week") And [data]>UserResponse("Second week") Then "Third week"
ElseIf [data]<=UserResponse("The fourth week") And [data]>UserResponse("Third week") Then "The fourth week"
Else "Fifth week"