Vendor No.
Date No. Code LineNo. Amount
--------------------------------------------
000774001
9/9 000774001 1000 Z013005010 43000
Subtotal 43000
--------------------------------------------
369088001
9/9 000774006 1000 Z013005010 43000
9/9 000774010 1000 Z013005010 40000
9/10 000774012 1000 Z013005010 40000
9/10 000774015 1000 Z013005010 40000
Subtotal 83000
--------------------------------------------
I can make function like below function
=NL("Rows=4","Purch. Inv. Header","Code","Posting Date",Options!$G$6)
However, I would like to add one more grouping like below
How can I do that
Code
Date No. Code LineNo. Amount
--------------------------------------------
000774001
9/9 000774001 1000 Z013005010 43000
daily subtotal 43000
Subtotal 43000
--------------------------------------------
369088001
9/9 000774006 1000 Z013005010 43000
9/9 000774010 1000 Z013005010 40000
daily subtotal 83000
9/10 000774012 1000 Z013005010 40000
9/10 000774015 1000 Z013005010 40000
daily subtotal 80000
Subtotal 163000
--------------------------------------------