# Transpose row to column and column to row

**URL:** <https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155>\
**Category:** KNIME Analytics Platform\
**Created:** [January 14, 2019, 10:15am UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155 "2019-01-14T10:15:09Z")\
**Posts on this page:** 8\
**Page:** 2

<div class="post-metadata">

**Author:** ![ipazin](https://forum-cdn.knime.com/user_avatar/forum.knime.com/ipazin/32/806_2.png) [@ipazin](https://forum.knime.com/u/ipazin)\
**Post date:** [September 6, 2021, 10:50am UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155/21 "2021-09-06T10:50:51Z")

</div>

Hello @fredrikt,

you can use _join()_ and _substr()_ functions from [String Manipulation](https://kni.me/n/eOn8ibZnxIkY7XhT) node to transform 2021 Jan to Jan-21.

Br,  
Ivan

---

<div class="post-metadata">

**Author:** ![Kenyx](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/7ba0ec/32.png) [@Kenyx](https://forum.knime.com/u/Kenyx)\
**Post date:** [December 29, 2021, 2:30am UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155/22 "2021-12-29T02:30:44Z")

</div>

> [@ipazin](#):
>
> no group columns, _Label_ as pivoting column and _Value_ as aggregation column with aggregation method _List_.

Hi @ipazin , this is really helpful.  
But I met some problem during the final execution, execution failed and inform

> Execute failed: Java heap space: failed reallocation of scalar replaced objects

Is there any method to fix this?

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [December 29, 2021, 9:23pm UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155/23 "2021-12-29T21:23:51Z")

</div>

@Kenyx maybe you could explain further what kind of operation you wer doing and what your system is like. If you have costly operations you might want to take a look at these discussions:

> [@Knime processing power blocking at every single step after finished flow](https://forum.knime.com/t/knime-processing-power-blocking-at-every-single-step-after-finished-flow/38233/2):
>
> @Gonzo welcome to the KNIME forum. You could try and give KNIME 10-12 GB but not more and not run any other jobs. Is this a Windows machine and does it have an SSD hard drive. Then you could explore this collection about [KNIME and performance](https://www.knime.com/blog/optimizing-knime-workflows-for-performance) You might try: [Garbage collection](https://forum.knime.com/t/execute-failed-cannot-read-file-knime-container-20200301-1905559478659870280-bin-snappy/21461/19)[columnar table backend](https://www.knime.com/blog/improved-performance-with-new-table-backend) splitting the workflow into several parts and [calling them](https://hub.knime.com/mlauber71/spaces/Public/latest/kn_example_call_workflow/a_001_main_workflow~uPGki0nVinczB7SZ) separately while [resetting](https://nodepit.com/node/ws.palladian.nodes.selenium.reset.ResetOnLoadNodeFactory) them at every start (maybe a last resort)

> [@Knime processing power blocking at every single step after finished flow](https://forum.knime.com/t/knime-processing-power-blocking-at-every-single-step-after-finished-flow/38233/4):
>
> @Gonzo I have no experience with Windows 11 as of now. These things come to my mind when you mention a large ungroup (or any other complex operation for that matter): the [Cache node](https://hub.knime.com/knime/extensions/org.knime.features.base/latest/org.knime.base.node.util.cache.CacheNodeFactory). Sometimes I have experienced that before complex operations after a long data manipulation stream KNIME ‘likes’ a Cache node in order to bring all the changes back to one place then you could see if forcing the node to write something to disk can help, also if you try different [underlying encodings](https://forum.knime.com/t/execute-failed-cannot-read-file-knime-container-20200301-1905559478659870280-bin-snappy/21461/2) in the knime.i…

---

<div class="post-metadata">

**Author:** ![Kenyx](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/7ba0ec/32.png) [@Kenyx](https://forum.knime.com/u/Kenyx)\
**Post date:** [December 31, 2021, 2:39am UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155/24 "2021-12-31T02:39:16Z")

</div>

Hi @mlauber71  
I am pivoting a large mount of unpivoted datasets, my config of memory is set up to 8G, when I executing the whole program is flashing and the Windows taskbar can see multiple knime program open and close.

---

<div class="post-metadata">

**Author:** ![mlauber71](https://forum-cdn.knime.com/user_avatar/forum.knime.com/mlauber71/32/73590_2.png) [@mlauber71](https://forum.knime.com/u/mlauber71)\
**Post date:** [December 31, 2021, 8:17am UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155/25 "2021-12-31T08:17:02Z")

</div>

@Kenyx maybe you open a new thread with some more details about your system and your data. Transpose can be a costly operation. 8 GB might not be that much.

---

<div class="post-metadata">

**Author:** ![aworker](https://forum-cdn.knime.com/user_avatar/forum.knime.com/aworker/32/36421_2.png) [@aworker](https://forum.knime.com/u/aworker)\
**Post date:** [January 6, 2022, 10:47am UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155/26 "2022-01-06T10:47:06Z")

</div>

Hi @Kenyx

> [@Kenyx](#):
>
> I am pivoting a large mount of unpivoted datasets, my config of memory is set up to 8G, when I executing the whole program is flashing and the Windows taskbar can see multiple knime program open and close.

Did you solve this problem ? If not, I would be happy to help with it if you open it in a new thread as suggested by @mlauber71 🙂

Best wishes,

Ael

---

<div class="post-metadata">

**Author:** ![Kenyx](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/k/7ba0ec/32.png) [@Kenyx](https://forum.knime.com/u/Kenyx)\
**Post date:** [January 6, 2022, 12:10pm UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155/27 "2022-01-06T12:10:01Z")

</div>

Hi @aworker ,

Thank you.  
I already solved this problem, I made mistake on pivots and aggregation method.

BR  
Ken

---

<div class="post-metadata">

**Author:** ![system](https://forum-cdn.knime.com/uploads/default/original/1X/ab3ccf34482a0329361734a18199390177204f15.png) [@system](https://forum.knime.com/u/system)\
**Post date:** [June 23, 2023, 8:32pm UTC](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155/28 "2023-06-23T20:32:13Z")

</div>



[Previous page](https://forum.knime.com/t/transpose-row-to-column-and-column-to-row/13155.md?page=1)
