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

249
Vistas
How to summarize data in a single row in datatables

I have a JSON dataset coming from a REST query in SharePoint (i.e. all my data is coming from a list). I am currently using tabs through colvisGroup to show different slices of data. To do this I have tabs that a user can click to automatically show the filtered data... I am looking to add a new tab that summarizes all the data in the datatable in one row with multiple summaries shown in columns. The catch is, unlike the total function, this would capture new columns that dont exist in the dataset and run functions like count, min/max, etc.

so lets say i had a data set with rows for apples, oranges and bananas, each has count, expiration date, and store

I want datatables to display a tab that only shows a single summary row that summaries the data in that says, something like "most product", "average expiration date", and "freshest store" (this is all just a super generalized example) -- so this row would then say "Apples" "January 22, 2022" and "Acme"

So this row is doing calculation on multiple different variables and functions of the data set but in of itself isnt a new record. Is this possible?

Before anyone asks -- yes I can do it in a separate javascript function but i was trying to keep things clean and within datatables... I am just getting lost in how.

My thought here is using the table.row.add() function and drawing it. But then im stuck on how the columns line up -- unless i make a bunch of dummy columns. Does anyone have any ideas?

about 4 years ago · Juan Pablo Isaza
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