}
if (!columnFields.isEmpty() && pivotModel.isShowGrandTotalForRow()) {
for (PivotField dataField : dataFields) {
if (dataField.getFieldCalculation() != null) {
double grandTotalValue = PivotUtils.getSummary(dataField, Collections.emptyList(),
new FieldValueProvider() {
@Override
public Object getFieldValue(PivotField field) {
// If the field is not in the regular
// data, we can not return a sum of it
if (!grandTotal.containsKey(field))