For more details about this recipe, please refer to the following links:
- ADDCOLUMNS: https://docs.microsoft.com/en-us/dax/addcolumns-function-dax
- SUMX: https://docs.microsoft.com/en-us/dax/sumx-function-dax
- MAX: https://docs.microsoft.com/en-us/dax/max-function-dax
- FILTER: https://docs.microsoft.com/en-us/dax/filter-function-dax
- DATEDIFF: https://docs.microsoft.com/en-us/dax/datediff-function-dax
- IF: https://docs.microsoft.com/en-us/dax/if-function-dax
- BLANK: https://docs.microsoft.com/en-us/dax/blank-function-dax
- ISBLANK: https://docs.microsoft.com/en-us/dax/isblank-function-dax
- MAXX: https://docs.microsoft.com/en-us/dax/maxx-function-dax