Forum Discussion

Anonymous's avatar
Anonymous
Not applicable
4 years ago
Solved

Filter Data Based on specific time range

I am trying to create a page that will filter sales based on a timeframe I have built into the main query. Within the query I have 4 ranges YOY, Pre, Transition, and Post. I have my data defined as belows.

ScheduleSalesWeeksDetails (not actually a column)
YOY - 110varies based on PostYOY Selected Month from Post
Pre - 2201313 weeks that remain static
Transition - 31544 weeks that remain static
Post - 440What every is selected Selected Month 

 

So Ideally, I select the current previous month and I get the correct sales from the YOY data along with the static sales from Pre and Transition. 

 

I have been trying different ways including adding a custom column within Transformation that identifies the specific data and i could filter the page on that. Also tried using a combination of previousmonth & previous year, however, I cant seem to get this to work. All of my data has an associated date so I wont have any building a measure based on dates. 

2 Replies