Here’s one possible solution:
This however won’t work for multi-span dimensions. You’ll need a custom api solution for that.