subtotal icon indicating copy to clipboard operation
subtotal copied to clipboard

Auto-derive: change rowAttrs duplicate first row.

Open ilyaguy opened this issue 8 years ago • 3 comments

Hi.

I'm working on auto deriving date attributes.

I've changed SubtotalPivotData.processKeys to replace attribute name to list, if derivedAttributes returns array instead of string.

But I have an issue there: first row of result set is duplicated.

Link to example: http://pivot.src.ilyaguy.me/examples/subtotal_pivotui_autodate.html Link to source code: https://github.com/ilyaguy/pivottable-subtotal-renderer/blob/master/subtotal.coffee#L20

Could you take a look on this?

ilyaguy avatar Nov 25 '16 10:11 ilyaguy

Sorry... I couldn't understand what you mean by "first row of result set is duplicated"

Please detail the steps to reproduce the scenario.

Thanks for your feedback.

nagarajanchinnasamy avatar Nov 25 '16 20:11 nagarajanchinnasamy

screen shot 2016-11-25 at 23 17 04

Do you see two rows with "2016 - 01 - 01" keys and "6" as totals? The first of them is generated by mistake. Thank you for help.

ilyaguy avatar Nov 25 '16 21:11 ilyaguy

Yes. Thanks. Got it :)

Will need more time to understand the implications of your change:

I've changed SubtotalPivotData.processKeys to replace attribute name to list, if derivedAttributes returns array instead of string.

Will go through your code changes and let you know.

nagarajanchinnasamy avatar Nov 27 '16 07:11 nagarajanchinnasamy