pivottable icon indicating copy to clipboard operation
pivottable copied to clipboard

PivotUI with Comparison for multiple input-data

Open Gykonik opened this issue 3 years ago • 4 comments

Hey, also from me many thanks for the great library and the excelent support!

I have managed to display data in the pivot table.

Now I am interested in comparing two data sets. So, for example, one has two input arrays (same type, same structure, different data). Now in the pivot table I want to display in the data cells for a special aggregator (so NOT multi-aggregator, as so often asked :D) e.g. the value of input1 on the left and input2 on the right. Is this somehow possible or how would I have to proceed for this? You can see an example in the image attached. For example, the left value is the one from input1 and the right from input2

I was thinking if this is somehow possible similar to the HeatMap, that I somehow add this afterwards. I would be hugely appreciative of an answer. Thanks!

Unbenannt

Gykonik avatar May 26 '21 14:05 Gykonik

It sounds like you could concatenate the data sets and add a field to differentiate them, and then map that differentiation-field to the column area, so you'd have the two side by side.

nicolaskruchten avatar Jun 07 '21 12:06 nicolaskruchten

Thanks for the answer! If I understand this right, I would basically end up having a new "dragable" box (in the pvtHorizList-container) e.g. called Input, where I have two values either 1 (for input 1) or 2 (for input 2)? Or did I get you wrong?

Gykonik avatar Jun 21 '21 13:06 Gykonik

That's about what I was suggesting, yes :)

nicolaskruchten avatar Jun 21 '21 13:06 nicolaskruchten

Sounds like an excelent idea - thanks man! Additionally, I could add another value 3 (or something similar) which stores each value from field 1 / each value from field 2 - couldn't I? (I mean, this would be a huge data-overload, but is there a simpler solution without having to create custom aggs or similar?

Gykonik avatar Jun 21 '21 14:06 Gykonik