public PivotTable PreparePivotTable(OlapDataSource dataSource) { PivotTable result = new PivotTable(this, Aggregators, GroupTitles, ValueTitles); foreach (var dataVector in dataSource) { result.Process(dataVector, ResolveGroups(dataVector)); } return(result); }
public PivotTable PreparePivotTable(OlapDataSource dataSource) { var result = new PivotTable(this, Aggregators, SortOrder.Asc, GroupTitles, ValueTitles); foreach (var dataVector in dataSource) { var groups = ResolveGroups(dataVector).ToList(); if (groups.Any()) { result.SortOrder = groups.First().SortOrder; } result.Process(dataVector, groups); } return(result); }