private PivotInfo getPivotInfo(PopulationPivotAnalysis pivotAnalysis, Aggregate aggregate) { return(new PivotInfo( rowFields: pivotAnalysis.AllFieldNamesOn(PivotArea.RowArea), columnFields: pivotAnalysis.AllFieldNamesOn(PivotArea.ColumnArea), dataFields: pivotAnalysis.AllFieldNamesOn(PivotArea.DataArea), aggregates: new[] { aggregate }, mode: PivotInfo.PivotMode.FlatTable, dataFieldColumnName: DATA_FIELD_NAME)); }