Variance from total

@JonKemp good point. Yes it would be possible by dropping into “nasty custom code”. However this functionality is not documented (see Custom Mode) and its use has limited support.

I think the column expression would be something like:

^((sum({b}) over()/sum({a}) over())*100)-(({b}/{a})*100)