1
Help for ParamQuery Pro / Re: Pivot Grid - Default Aggregate function for Columns
« on: April 28, 2025, 09:34:59 pm »
Ah! Lovely - thank you sir!
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
function (evt, ui) {
//previous code to concat field value to column header
...
//Code to change from sum to count
ui.CM.forEach(col => {
if (col.dataType == "date" && col.summary.type == "sum") {
col.summary.format = "";
col.summary.type = "count";
}
if (col.dataType === "date") {
if (col.summary.type === "count") {
col.summary.format = "0";
} else {
col.summary.format = "mm/dd/yy hh:mm:ss";
}
}
});
}