Author Topic: Merge single-groups  (Read 5758 times)

akraines

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 34
    • View Profile
Merge single-groups
« on: November 24, 2019, 10:43:56 pm »
Hi,

The groupby feature works really well when I group by a column that has more than 1 distinct value. It shows  the grand total cells for each grouping, and they are meaningful.
However, when there is only one distinct value, I want it to NOT show an ADDITIONAL grand-total row, since it is a duplicate of the previous grouping level.
Is there a way to "merge" duplicate grand total rows so that it only shows the grid doesn't output duplicate rows?

Thanks

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6113
    • View Profile
Re: Merge single-groups
« Reply #1 on: November 25, 2019, 10:25:35 pm »
It makes sense, however not available currently, so moving it to feature request board.

akraines

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Merge single-groups
« Reply #2 on: November 25, 2019, 11:11:21 pm »
How long does it take / what is the process for a feature request to be come reality? (Assuming that it is planned)

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6113
    • View Profile
Re: Merge single-groups
« Reply #3 on: November 26, 2019, 11:41:39 am »
This feature has been added, would be released in next upcoming version.

akraines

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Merge single-groups
« Reply #4 on: November 26, 2019, 07:29:45 pm »
Thanks for the quick response. I was looking into implementing it using pq_hidden, but then I realised that summary rows are not included in datamodel.data.

Can you post the patch here so I can modify my version of the library? (since we have an "Ultimate" subscription)


akraines

  • Pro Ultimate
  • Newbie
  • *
  • Posts: 34
    • View Profile
Re: Merge single-groups
« Reply #5 on: December 19, 2019, 07:08:08 pm »
Can you please post the diff for this feature so that I can update my copy of the code and don't have to wait for the next release? I sounded like it was a quick fix.

paramvir

  • Administrator
  • Hero Member
  • *****
  • Posts: 6113
    • View Profile
Re: Merge single-groups
« Reply #6 on: December 29, 2019, 02:17:36 pm »
v7 has been released