Forum Discussion
How to add subtotal in table visual
- 1 year ago
Hello j_w
Yes, this can be done through Matrix visual. When you set up your visual, drag your fields 'Customer', 'InvoiceNo.', 'Item', 'Price' and 'InvoiceDate' to 'Rows', your Measures 'Qty', and 'Amount' to Values.
When you 'Format your Visual' for Matrix, have your 'Row Subtotal' turned on but only leave 'Show Subtotal' On for 'Customer' and 'InvoiceNo.'. You can rename 'Subtotal label' for 'InvoiceNo.' to 'Subtotal'. as in below picture.
(For the Matrix layout and Style, i used 'Minimal' for Style and 'Tabular' for Layout. )
Then you can use your date table to filter your Matrix visual.
Hope this helps:)
Hi MasonMA , thanks for your post. I’m not sure if the sample data and columns in my question were too simplified, the actual table visual has many more columns. After following your suggested steps using a matrix, my matrix now looks like the one below, which is hard for the user to read, any suggestion please?
Also, the Subtotal label setting doesn’t seem to be working. I set it to "Subtotal", but the matrix still shows "Sub":
Thanks