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 # | Jan | Feb | Mar | April | May | June | July | Aug | Sep | Oct | Nov | Dev | Jan | Feb | Mar | April | May | Total |
438 | 2 | 1 | 3 | 2 | 5 | 2 | 3 | 2 | 1 | 2 | 4 | 1 | 2 | 30 | ||||
523 | 2 | 2 | 1 | 1 | 1 | 2 | 1 | 2 | 1 | 1 | 2 | 1 | 17 | |||||
784 | 1 | 1 | 1 | 3 | 1 | 3 | 1 | 1 | 3 | 2 | 17 | |||||||
792 | 2 | 1 | 3 | 1 | 1 | 1 | 1 | 10 | ||||||||||
800 | 1 | 1 | 1 | 3 | 1 | 1 | 1 | 1 | 1 | 11 |