Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

192
Views
Filtrado de tablas dinámicas Scripts de Office

Tengo una tabla dinámica de Excel titulada PivotTable1. Utilizando Office Scripts, estoy tratando de automatizar el filtrado. Hay dos columnas prescriptor y cantidad gastada. Estoy tratando de agregar un filtro a la suma del monto gastado cuando es mayor a $325. Esencialmente tratando de automatizar la función de valor de filtro en Excel. ingrese la descripción de la imagen aquí

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Creo que el siguiente script de Office debería ser similar a lo que está tratando de hacer. La interfaz de la tabla dinámica de scripts de Office se encuentra en la documentación, pero no hay muchas muestras excelentes que coincidan con sus objetivos, al menos no están fácilmente disponibles. Busqué en el foro y juro que vi una publicación anterior con una pregunta similar pero perdí esa pestaña.

 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 Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!