Forum Discussion
Filter Function Help
Hello,
I'm in the process of trying to pull before and after construction information. I'm struggling to connect my table of construction dates to the time intelligence functions. I believe using the "filter related" is the correct place to start, but had a few questions on how it functions and how I can make use of this combination.
I have 3 tables, one date key table, one construction info table that has [ID],[construction start],[construction end]. Also the transaction table with [id],[transaction date],[visitors],[revenue].
I have no issue creating the relationships between the tables, the problem is getting the formula to look for the construction start/end date and summing up visitors based on time intelligence functions. Understand that the construction info table has multiple ID's and multiple const/open dates.
I believe I would filter my transactions table and relate that to the construction info table, but how would I include time intelligence functions to give multiple breakouts?
Best,
JA
7 Replies
- AnonymousNot applicable
Might need a small pic of your model showing the relationships. Are the construction/transaction tables related by ID, with construction id a unique value?
- jsadamsFrequent Visitor
transaction table:
ID transaction date time segment room number visitors revenue 4652 1/1/2010 Morning 1 1 $ 7.50 7854 1/2/2010 Afternoon 2 5 $ 37.50 9635 1/3/2010 Before Noon 3 4 $ 30.00 7845 1/4/2010 Morning 4 6 $ 45.00 construction table
ID Construction Start Construction End 4652 1/1/2010 3/15/2010 7854 8/5/2011 12/7/2011 9635 9/7/2011 1/1/2012
Date key table
Date Year Month Week Day 1/1/2010 2010 1 1 5 1/2/2010 2010 1 1 6 1/3/2010 2010 1 1 7 Tables are linked together by unique Building ID and I also linked everything to the Date table (in hopes of being able to manipulate views/cuts of data later).
- AnonymousNot applicable
Ya, you will have an easy time w/ filtering transactions by date, and filtering transactions by construction... but you have an issue w/ your calendar table relating to construction table... since there are 2 dates.
If you make a relationship between your calendar table and construction on Construct Start... then filtering to June 2010 is going to show ONLY construction that STARTED in June, which is... maybe not what you want?
Let's talk about a specific measure to make this easier? Like... you want... revenue year to date, broken out by construction?