A code sample to demonstrate how to improve SSAS Tabular distinct count performance by an order of magnitude.