I have the need to create a filter for Last week, 2 weeks ago, 3 weeks ago, etc. Our week dimension table has a last week idicator so the filter for last week is straightforward. The week dimension table also has a field that is just a sequential number that increases by 1 for each week. I built a filter with applysimple logic that works, but is not a good strategic decision for maintenance purposes. Is there a way to build a relationship filter (or something else) to accomplish this? The code for the applysimple filter is as follows:
Filter-2 Weeks Ago
Filter-2 Weeks Ago
Code:
SEQ_NBR(ID) Exactly ApplySimple(
"(select SEQ_NBR-1
from DB.WEEK_DIM
where lst_wk_ind = 1)
",0)