You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

咨询MS Graph Excel筛选条件中filterOn与dynamicCriteria的合法取值

Microsoft Graph Excel筛选接口Filter:apply中filterOn和dynamicCriteria的合法取值

filterOn属性合法取值

filterOn用于指定筛选的依据类型,合法取值如下:

  • value:基于单元格具体值筛选
  • cellColor:基于单元格填充颜色筛选
  • fontColor:基于单元格字体颜色筛选
  • icon:基于单元格内的条件格式图标筛选
  • dynamic:使用动态条件筛选(需配合dynamicCriteria属性)

dynamicCriteria属性合法取值

当filterOn设为dynamic时,dynamicCriteria用于指定具体动态筛选规则,合法取值包括:

  • 数值类:aboveAverage(高于平均值)、belowAverage(低于平均值)
  • 日期类:
    • 单日:today(今天)、tomorrow(明天)、yesterday(昨天)
    • 周度:thisWeek(本周)、nextWeek(下周)、lastWeek(上周)
    • 月度:thisMonth(本月)、nextMonth(下月)、lastMonth(上月)
    • 季度:thisQuarter(本季度)、nextQuarter(下季度)、lastQuarter(上季度)
    • 年度:thisYear(今年)、nextYear(明年)、lastYear(去年)、yearToDate(年初至今)
    • 固定周期范围:allDatesInPeriodQuarter1至allDatesInPeriodQuarter4、allDatesInPeriodJanuary至allDatesInPeriodDecember、allDatesInPeriodYear(全年所有日期)

动态筛选请求示例

POST https://graph.microsoft.com/v1.0/me/drive/items/{id}/workbook/tables/{id|name}/columns/{id|name}/filter/apply
Content-type: application/json
{
  "criteria": {
    "filterOn": "dynamic",
    "dynamicCriteria": "today"
  }
}

内容的提问来源于stack exchange,提问作者Rex Sheridan

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.08.06 00:35:17