Hi,
I am trying to use GroupBy summaries I want to format the row before displaying. Like its showing the ColumnName, operation and the value. However I just want a trim version of ColumnName and I don't want to show the operation and just the value.
For example, If Column is ProductName, its currently showing ProductName sum 0.10, I want it as Name 0.10
columnSettings: [ { columnKey: "ProductName", summaries: [ { summaryFunction: "sum", resultTemplate: "{1}", customSummary: function (data) { if (data < 0) { return "(" + data + ")"; } return data; } } ] },
Hello Hamza,
Setting text in grouping summaries can be accomplished by setting text option. This option specifies the summary text that will be shown before the value. For example:
features: [ { name: "GroupBy", type: "local", summarySettings: { summaryFormat: "#0" }, columnSettings: [ { columnKey: "Job", isGroupBy: true }, { columnKey: "TotalWgt", summaries: [ { summaryFunction: "sum", text: "Weight " } ] } ] } ]
When text option is set the aggregate function (sum in your scenario is not going to be displayed). Please keep in mind that the string set to the text option is going to be displayed after the header text of your column and currently this is the only option.
Steps to create your idea:
The Product Idea site puts you in the driver`s seat and allows you to track the progress of your ideas at any time, see how many votes it got, read comments from other developers in the community and see if someone from the product team has additional questions for you.