The only problem I see is that you would need to also show all dimensions present in the chart, e.g. all dimensions in a table. Some expressions wont calculate correctly otherwise.
For those that would, you can already evaluate the expression in the editor: