0
如何設置默認報告過濾器值?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... *********** ????? *****************
謝謝!