I guess DAX is the way to solve my problems.
I have many tables with many date columns, but fot this example I limitied it to one table and two date columns like in TicketTable1 below. My task is to present a graph for how many tickets has been closed per day/month/year. But I also need to show how many tickets that are open and not closed.
TicketTable1(, 2, 3, 4, ...):
TicketNumber | OpenDate | CloseDate |
1 | 2016-01-01 | 2016-02-01 |
2 | 2016-01-01 | 2016-01-02 |
3 | 2016-01-01 | 2016-01-03 |
4 | 2016-01-01 |
What I did was to first create a "DIM Date" table using CALENDARAUTO(). This will create a date dimension table over all my dates in all my tables (I guess). I then end up with a second "DIM Date" table as below
DIM Date:
Date |
2016-01-01 |
2016-01-02 |
... |
2016-12-31 |
My problem is that I don't understand how to relate data between the tables to be able to plot my diagram. As I understand, I can't relate all date-columns in all tables to the DIM Date table, so there must be an other way
I would then like to show a bar graph showing something like
Representing graph table
Date | Closed tickets sys 1 | Still open tickets sys 1 | Closed tickets sys 2 | Still open tickets sys 2 |
2016-01-01 | 1 | 3 | xxx | xxx |
2016-01-02 | 1 | 2 | xxx | xxx |
2016-01-03 | 1 | 1 | xxx | xxx |
2016-01-04 | 0 | 1 | xxx | xxx |
2016-01-05 | 0 | 1 | xxx | xxx |
Anyone understanding my problem that could help me in the right direction?