Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

190
Vistas
Pivot Table Filtering Office Scripts

I have an excel Pivot Table titled PivotTable1. Utilizing Office Scripts I am trying to automate the filtering. There are two columns prescriber and spent amount. I am trying to add a filter to the sum of the spent amount when it’s greater than $325. Essentially trying to automate the filter value function in excel. enter image description here

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

I think the below Office Script should be similar to what you are trying to do. The Office Script Pivot Table interface is in documentation but there aren't a lot of great samples matching your goals, at least they aren't readily available. I poked around in the forum and swear I saw a previous post with similar question but lost that tab.

function main(workbook: ExcelScript.Workbook)
{
  // declare the target pivot table
  let moviesPivot = workbook.getPivotTable("PivotTable4");

  // declare the field you are filtering
  let filterField = moviesPivot.getHierarchy("Title");

  // declare the filter to only include rows with budget over...
  let filter: ExcelScript.PivotValueFilter = {
    condition: ExcelScript.ValueFilterCondition.greaterThan,
    comparator: 2000000,
    value: "Sum of budget"
  };

  // apply the value filter to the field
  filterField.getPivotField("Title").applyFilter({ valueFilter: filter });

}
about 4 years ago · Juan Pablo Isaza Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda