Display multiple measures simultaneously in Angular Pivot Grid

1 Answer 150 Views
PivotGrid
Trevor
Top achievements
Rank 1
Trevor asked on 02 Feb 2024, 03:57 PM

I'm struggling to find a way to display 2 different measures in the Angular Pivot Grid at the same time. 

When I provide multiple measures, it appears to just aggregate both values together. One is supposed to represent a dollar amount, and the other is the number of hours worked.

  public measures: Measure[] = [
    {
      name: 'Cost',
      value: (item) => item.GpCosts,
      aggregate: sumAggregate,
    },
    {
      name: 'TotalHours',
      value: (item) => item.TotalHours,
      aggregate: sumAggregate,
    },
  ];

It looks like this behavior is available on the JQueryUI version of the grid. I'm not sure what I'm missing, configuration wise on the Angular one.

1 Answer, 1 is accepted

Sort by
0
Yanmario
Telerik team
answered on 07 Feb 2024, 08:09 AM

Hi Trevor,

Thank you for the provided details.

I suspect that the specific measure that you want to display isn't part of the measureAxes. Feel free to check the following example where "Total" and "Average" are rendered as measure axis:

https://stackblitz.com/edit/angular-y5rzsf?file=src%2Fapp%2Fapp.component.ts

If the issue is different, could you provide an example with our PivotGrid and the desired end goal(which can be a jQuery demo)?

I hope this helps.

Regards,
Yanmario
Progress Telerik

Stay tuned by visiting our public roadmap and feedback portal pages! Or perhaps, if you are new to our Kendo family, check out our getting started resources
Tags
PivotGrid
Asked by
Trevor
Top achievements
Rank 1
Answers by
Yanmario
Telerik team
Share this question
or