My goal is to create a table similar to the visualization matrix below. This works great except when the 3 month period straddles 2 differenct years. (December, January, February). I've tried to recreate this with the PreviousMonths function, but still have the same issue and have the additional problem of having the previous month next to the current month and not separated as below. Do I need to create separate measures for each of current month, current month minus 1 month, minus 2 months etc.? and how? I'm new to DAX Time Intelligence functions and with a lot of help from past postings have created a Dates table and the Prior Month Sales, but now am stuck.
2015 | 2015 Total | 2016 | 2016 Total | Grand Total | |||||
February | March | April | February | March | April | ||||
Customer A | 93 | 134 | 139 | 366 | 88 | 78 | 82 | 248 | 614 |
Customer B | 52 | 55 | 94 | 202 | 65 | 53 | 93 | 211 | 413 |
Customer C | 138 | 113 | 14 | 265 | 265 | ||||
TOTAL | 283 | 302 | 247 | 832 | 153 | 131 | 175 | 459 | 1,291 |