Quantcast
Channel: Developer topics
Viewing all articles
Browse latest Browse all 18111

How to use Date slicer with column for each month

$
0
0

I have a table that I am trying to filter using a date slicer.  The problem is that the table is set up with a month/year column for each month, and a row for each of over 300 sites, and an event count for each location during any given month. (example below)

 

I have a separate "Date" table that I am using as a Dim table, but I cannot create a relationship with 16 month columns.

 

I have thought of transposing the data into 3 columns, Site, Date, Quantity, then I can have a 1 to many relationship with the date.  The data transposition will mean writing a macro i guess which is possible, but hoping for a better way.  The database is updated monthly by adding a new column for the new month.

 

Any suggestions would be appreciated.

Site #JanFebMarAprilMayJuneJulyAugSepOctNovDevJanFebMarAprilMayTotal 
4382 1325232 12 412 30
5232  21 11212 1121 17
784  1 11 31311  32 17
792 2    1  3  11 1110
800   1 113 1 1 111 11

 


Viewing all articles
Browse latest Browse all 18111

Trending Articles