I also made the same for Excel: https://beta.observablehq.com/@pallada-92/excel-3d-engine-em....
There are two explanation articles in Russian: https://habr.com/post/435390/ (SQL), https://habr.com/post/353422/ (Excel)