Generate MDX for subsets in Excel
Posted: Wed May 11, 2022 9:02 pm
Hi all,
A small fun side project of mine
Turn on the record function by clicking the cell next to "Record mode" if it's off.
Then click on the 1st column of the orange table to apply that particular MDX operation of the result in the yellow cell.
Fill out the 3rd column of the table when arguments are needed.
There's a bit of VBA code but I keep it deliberately small. The formulae in the sheet, notably, Lambda's and MAKEARRAY are much more interesting.
You do need a recent Excel version to use the file.
I like the input table on the right-hand side, whereby dynamic array formulas do things we could not do in the past.
You could extend it for instance by sending the MDX to the clipboard.
Enjoy.
A small fun side project of mine
Turn on the record function by clicking the cell next to "Record mode" if it's off.
Then click on the 1st column of the orange table to apply that particular MDX operation of the result in the yellow cell.
Fill out the 3rd column of the table when arguments are needed.
There's a bit of VBA code but I keep it deliberately small. The formulae in the sheet, notably, Lambda's and MAKEARRAY are much more interesting.
You do need a recent Excel version to use the file.
I like the input table on the right-hand side, whereby dynamic array formulas do things we could not do in the past.
You could extend it for instance by sending the MDX to the clipboard.
Enjoy.