This is awesome, thanks for writing it up. I tried it out and found
that ledger 3.0.0-20120217 complaints about not understanding
the format string:
While calculating format expression:
percent(market(display_total), market((parent.total)))
While evaluating value expression:
percent(market(display_total), market((parent.total)))
^^^^^^^^^^^^^^
While calling function 'market <#EXPR (parent.total)>':
While calling function 'percent (<#EXPR market(display_total)>, <#EXPR
market((parent.total))>)':
Error: Left operand does not evaluate to an object
While I did find that this appeared to work:
ledger balance -X '$' Allocation --current -%
Jim