How to count rows when a cell is not - empty in a column BY GROUP
How to count rows when a cell is not - empty in a column BY GROUP
thegamechangerpro
Posts: 81Questions: 30Answers: 1
Essentially, In my group rowsI have the rows.count to show total records in each group. I would like to add the count of "complete" rows next to it.
So if Col[1] !== '' count that row for that group.
Everything i have tried breaks my solution.
Answers
Sounds like you are using the RowGroup extension. In the
rowGroup.startRender
orrowGroup.endRender
functions you can use therows
parameter to loop through all the rows, on the page, for the group. Userows().every()
, for example:If this doesn't help or you aren't using RowGroup then please post a link to your page or a test case replicating the issue so we can help debug.
https://datatables.net/manual/tech-notes/10#How-to-provide-a-test-case
Kevin