I have a table with very few dimensions but 20+ metrics. I want to visualize the metrics in different ways. A few key scenarios:
- Month over Month to Date (e.g. comparing metric A Nov 1-10 2016 with Oct 1-10 2016). Obviously the November date range would always use the latest availble date in the Table within the Month as the MaxDate.
- Month over Month LastYear to Date. Similar scenario as above only that I would compare Nov 1-10 2016 with Nov 1-10 2015.
If I would just do this one or two metrics, it would be acceptable to create measurements for each of the scenario. However, with 20+ metrics this is probably not the route to go (there are also Week over Week, Year over Year or Day over Day (same year and last year) scenarios).
I am wondering if there is a way to create a set of column (probably one each for year, month, week and day) in the table that would classify the inidividual dates.
For example:
Date | Metric 1 | Metric 2 | Metric 3 | Metric 4 | Metric 5 | Metric 6 | YtD Classification | MtD Classification | WtD Classification | Day Classification |
11/10/2016 | 1 | 1 | 1 | 1 | 1 | 1 | This Year | This Month | This Week | Last Day |
10/10/2016 | 1 | 1 | 1 | 1 | 1 | 1 | This Year | This Month | This Week | Previous Day |
11/3/2016 | 1 | 1 | 1 | 1 | 1 | 1 | This Year | This Month | Last Week | Other Day |
10/9/2016 | 1 | 1 | 1 | 1 | 1 | 1 | This Year | Previous Month | Other Week | Other Day |
11/10/2015 | 1 | 1 | 1 | 1 | 1 | 1 | Previous Year | Month Previous Year | Week Previous Year | Last Day Previous Year |
The goal is to create those column values and use them as visual filters and enable them for multiple metrics then within the visual.
Is this the right approach and if to how can it be accomplished?