Quantcast
Channel: Desktop topics
Viewing all articles
Browse latest Browse all 213819

How to create columns to classify dates for "date over date to date" comparison of metrics?

$
0
0

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:

 

 

DateMetric 1Metric 2Metric 3Metric 4Metric 5Metric 6YtD ClassificationMtD ClassificationWtD ClassificationDay Classification
11/10/2016111111This YearThis MonthThis WeekLast Day
10/10/2016111111This YearThis MonthThis WeekPrevious Day
11/3/2016111111This YearThis MonthLast WeekOther Day
10/9/2016111111This YearPrevious MonthOther WeekOther Day
11/10/2015111111Previous YearMonth Previous YearWeek Previous YearLast 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? 

 

 


Viewing all articles
Browse latest Browse all 213819

Trending Articles