Pivoting over column having null data as a flexmonster row does not display aggregated values

Open
Jun Jie asked 1 day ago

Issue Description

This issue happens when I pivot a dataset by 1 or more rows and 0 columns over 1 or more aggregated measures. When the dataset column I choose as a pivot row contains NULL data, the aggregated values does not display.

Version Details

  • ngx-flexmonster: 2.9.133
  • @angular/cli: ^18.2.12
  • Node Version: 20.11.1

Attached Files Details

Refer to the reference.zip file for reference materials on the issue.

  • mock dataset.txt - mock dataset used for this ticket for non-working scenario
  • pivoting dataset on column with all non-null data display aggregation.png
  • pivoting dataset on column with some null data does not display aggregation.png

Data Server API - non-working scenario vs working scenario

non-working scenario: this scenario pivots the dataset "filename" column, where the column is having some null data 

non-working api: /select

non-working api payload: {"type":"select","index":"1933903","query":{"aggs":{"by":{"rows":[{"uniqueName":"operation"},{"uniqueName":"filename"}]},"values":[{"func":"count","field":{"uniqueName":"command"}},{"func":"count","field":{"uniqueName":"who"}}]},"filter":[{"field":{"uniqueName":"operation"},"include":[{"member":"execution"}]}]},"querytype":"expand","page":0}

non-working api response: {"fields":null,"hits":null,"aggs":[{"keys":{},"values":{"command":{"count":3},"who":{"count":3}}},{"keys":{"operation":"execution"},"values":{"command":{"count":3},"who":{"count":3}}},{"keys":{"filename":null},"values":{"command":{"count":3},"who":{"count":3}}},{"keys":{"filename":null,"operation":"execution"},"values":{"command":{"count":3},"who":{"count":3}}}],"pageTotal":1,"page":0,"nextPageToken":null}

 

working scenario: this scenario pivots the dataset "filename1" column, where the column data are all non-null

working api: /select

working api payload: {"type":"select","index":"1933908","query":{"aggs":{"by":{"rows":[{"uniqueName":"operation"},{"uniqueName":"filename1"}]},"values":[{"func":"count","field":{"uniqueName":"command"}},{"func":"count","field":{"uniqueName":"who"}}]},"filter":[{"field":{"uniqueName":"operation"},"include":[{"member":"execution"}]}]},"querytype":"expand","page":0}

working api response: {"fields":null,"hits":null,"aggs":[{"keys":{},"values":{"command":{"count":3},"who":{"count":3}}},{"keys":{"operation":"execution"},"values":{"command":{"count":3},"who":{"count":3}}},{"keys":{"filename1":"empty"},"values":{"command":{"count":3},"who":{"count":3}}},{"keys":{"operation":"execution","filename1":"empty"},"values":{"command":{"count":3},"who":{"count":3}}}],"pageTotal":1,"page":0,"nextPageToken":null} 

 

Attachments:
reference.zip

Please sign in or register to submit your answer