closedxml pivot table 报告过滤器默认值
closedxml pivot table report filter default value
如何设置默认的报表过滤器值?
Dim ws_pivot As IXLWorksheet = wb.Worksheets.Add("NAME")
Dim pivot_range As IXLRange = some_data.RangeUsed()
Dim pivot_table As IXLPivotTable = ws_pivot.PivotTables.AddNew("Pivot_Name", ws_pivot.Cell(9, 1), pivot_range)
pivot_table.ColumnLabels.Add("Column_Name")
pivot_table.RowLabels.Add("Row_Label_1")
pivot_table.RowLabels.Add("Row_Label_2")
pivot_table.Values.Add("Value_field").SummaryFormula = XLPivotSummary.Count
pivot_table.ReportFilters.Add("Filter_field") // Here I need to set a default value... *********** ????? *****************
谢谢!
数据透视表目前正在 ClosedXML
中进行。尚不支持默认筛选字段。
如何设置默认的报表过滤器值?
Dim ws_pivot As IXLWorksheet = wb.Worksheets.Add("NAME")
Dim pivot_range As IXLRange = some_data.RangeUsed()
Dim pivot_table As IXLPivotTable = ws_pivot.PivotTables.AddNew("Pivot_Name", ws_pivot.Cell(9, 1), pivot_range)
pivot_table.ColumnLabels.Add("Column_Name")
pivot_table.RowLabels.Add("Row_Label_1")
pivot_table.RowLabels.Add("Row_Label_2")
pivot_table.Values.Add("Value_field").SummaryFormula = XLPivotSummary.Count
pivot_table.ReportFilters.Add("Filter_field") // Here I need to set a default value... *********** ????? *****************
谢谢!
数据透视表目前正在 ClosedXML
中进行。尚不支持默认筛选字段。