# Write pivoted data to a google sheet

**URL:** <https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231>\
**Category:** KNIME Analytics Platform\
**Created:** [October 20, 2022, 9:14am UTC](https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231 "2022-10-20T09:14:59Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JulesD](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@JulesD](https://forum.knime.com/u/JulesD)\
**Post date:** [October 20, 2022, 9:15am UTC](https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231/1 "2022-10-20T09:15:00Z")

</div>

Dear Knime community,  
I would like to write pivoted data to a google sheet, but I can’t get Knime to export the “Pivots”.  
It seems to aggregate them.

My workflow looks like this:  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/a/8/a806417db3a4c676757d8a9809eb927a545040ec.png)

Data should look like this:

 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/f/6/f6ec4c60e2eb5371a4c5532ac8bb0194134eca88.png)

But this is the result I get:  
 ![image](https://forum-cdn.knime.com/uploads/default/original/3X/2/8/28a37a7897c380df3c1ad4d8faf2c81fa7b2562a.png)

Any ideas?

---

<div class="post-metadata">

**Author:** ![JulesD](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@JulesD](https://forum.knime.com/u/JulesD)\
**Post date:** [October 20, 2022, 9:24am UTC](https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231/2 "2022-10-20T09:24:15Z")

</div>

Hi there, I have no clue why, but I just rebuilt the worklow and it started working as expected.

---

<div class="post-metadata">

**Author:** ![JulesD](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@JulesD](https://forum.knime.com/u/JulesD)\
**Post date:** [October 21, 2022, 7:26am UTC](https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231/3 "2022-10-21T07:26:46Z")

</div>

Hi everyone, men, it stopped working again for no reason I can explain.  
Can anyone help?  
Thanks,  
Julia

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [October 21, 2022, 2:55pm UTC](https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231/4 "2022-10-21T14:55:32Z")

</div>

My first thought here is that you are using both the top and middle outputs of the Pivoting node. For a “proper” pivot table, you probably want to be using just the top output. The middle output gives you group totals only.

If you’re still having trouble, can you upload your WF with just the configuration of the Pivoting and Excel Writer nodes? Let’s make sure you are writing the proper format before you worry about uploading anything to Google.

---

<div class="post-metadata">

**Author:** ![JulesD](https://forum-cdn.knime.com/letter_avatar_proxy/v4/letter/j/7bcc69/32.png) [@JulesD](https://forum.knime.com/u/JulesD)\
**Post date:** [October 27, 2022, 6:17am UTC](https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231/5 "2022-10-27T06:17:10Z")

</div>

Hey ScottF,  
hi wasn’t aware that there is a difference between top and mittle output. But this was the missing piece.  
Is the bottom one behaving differently, too?  
Thanks a lot.

Julia

---

<div class="post-metadata">

**Author:** ![ScottF](https://forum-cdn.knime.com/user_avatar/forum.knime.com/scottf/32/61316_2.png) [@ScottF](https://forum.knime.com/u/ScottF)\
**Post date:** [October 27, 2022, 4:52pm UTC](https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231/6 "2022-10-27T16:52:14Z")

</div>

More or less, the middle port provides row totals, and the bottom port column totals.

---

<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:** [November 3, 2022, 4:52pm UTC](https://forum.knime.com/t/write-pivoted-data-to-a-google-sheet/48231/7 "2022-11-03T16:52:18Z")

</div>

Closed on November 3, 2022, 4:52pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
