Sorry about that link below. It is corrected now in the original article below, but here it is as well:
Link to cube formulas spreadsheet fixedRob Collie
One of the original engineering leaders behind Power BI and Power Pivot during his 13-year career at Microsoft, Rob Collie founded a consulting company in 2013 that is 100% devoted to “the new way forward” made possible by Power BI and its related technologies. Since 2013, PowerPivotPro has rapidly grown to become the leading firm in the industry, pioneering an agile, results-first methodology never before seen in the Business Intelligence space. A sought-after public speaker and author of the #1-selling Power BI book, Rob and his team would like to help you revolutionize your business and your career.