For more details about the functions used in this recipe, refer to the following links:
- GENERATESERIES: https://docs.microsoft.com/en-us/dax/generateseries-function-dax
- ADDCOLUMNS: https://docs.microsoft.com/en-us/dax/addcolumns-function-dax
- FILTER: https://docs.microsoft.com/en-us/dax/filter-function-dax
- SUMX: https://docs.microsoft.com/en-us/dax/sumx-function-dax
- EARLIER: https://docs.microsoft.com/en-us/dax/earlier-function-dax
- MAXX: https://docs.microsoft.com/en-us/dax/maxx-function-dax