Let's say I have two tables that look like this:
Sales:
Id | LocationId | Amount($) | DateOfTransaction | YearNumber | MonthNumber | DayNumber |
1 | 42 | 12345.67 | 2012-10-22 | 2012 | 10 | 22 |
2 | 42 | 23456 | 2012-11-23 | 2012 | 11 | 23 |
3 | 45 | 987.12 | 2012-10-22 | 2012 | 10 | 22 |
4 | 45 | 500 | 2012-11-23 | 2012 | 11 | 23 |
Projections:
Id | LocationId | Amount($) | DateOfTransaction | YearNumber | MonthNumber | DayNumber |
1 | 42 | 10000 | 2012-10-22 | 2012 | 10 | 22 |
2 | 42 | 20000 | 2012-11-23 | 2012 | 11 | 23 |
3 | 45 | 15000 | 2012-10-22 | 2012 | 10 | 22 |
4 | 45 | 1000 | 2012-11-23 | 2012 | 11 | 23 |
I'd like to have two bar charts such that the numbers are initially aggregated by Location ID, which is fine. But when I drill into that Location, I want to then aggregate by Year-Month (I have a computed column that shows "2012-10" and "2012-11") then next drill-down level into the Day. I'd also like the filtering on one visualization to drive the filtering on the other visualization. This is fine for Location ID but this is problematic when I'm in a drilled-down view aggregated by Month and Day. When I click on the Month in one chart, it doesn't filter by month in the other one since these Month values are in two different tables.
How can I get these to drive one another?