Thanks this helped me already for the first expense report.
In another one I need in the summarizing table again first the GL account, than the category , after that the Vat rate and then I want a total per item per VATrate.I have attached a template.You will see in the formula I have used I get the total per VATrate, but this is coming with every expense item again of that VATrate. I don't know how to fix it. It is infopath 2003 version
I also want that the expense type lines are hidden when they are not used. I hope you can help me with it.