September 2017
Intermediate to advanced
802 pages
37h 6m
English
The following example identifies the customers who purchased last year but haven't yet purchased this year.
Count of Last Year Customers ex Current Year = VAR Today = TODAY() VAR CurrentYear = YEAR(Today) VAR LastYear = YEAR(Today) - 1 VAR LYCustomers = SUMMARIZE(CALCULATETABLE('Internet Sales', FILTER(ALL('Date'),'Date'[Calendar Year] = LastYear)),Customer[Customer Alternate Key]) VAR CYCustomers = SUMMARIZE(CALCULATETABLE('Internet Sales', FILTER(ALL('Date'),'Date'[Calendar Year] = CurrentYear)),Customer[Customer Alternate Key])RETURNCALCULATE(DISTINCTCOUNT(Customer[Customer ...Read now
Unlock full access