diff options
| -rw-r--r-- | lib/axlsx/workbook/worksheet/pivot_table.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/axlsx/workbook/worksheet/pivot_table.rb b/lib/axlsx/workbook/worksheet/pivot_table.rb index 745aaeca..baa08988 100644 --- a/lib/axlsx/workbook/worksheet/pivot_table.rb +++ b/lib/axlsx/workbook/worksheet/pivot_table.rb @@ -191,7 +191,7 @@ module Axlsx unless data.empty? str << '<dataFields count="' << data.size.to_s << '">' data.each do |datum_value| - str << '<dataField name="Sum of ' << datum_value << '" ' << + str << "<dataField name=\"#{@subtotal} of " << datum_value << '" ' << 'fld="' << header_index_of(datum_value).to_s << '" ' << 'baseField="0" baseItem="0" subtotal="' << @subtotal << '"/>' end |
