# Pivot component example

**URL:** <https://forum.cloverdx.com/t/pivot-component-example/1423>\
**Category:** CloverDX Platform\
**Created:** [June 12, 2014, 12:00am UTC](https://forum.cloverdx.com/t/pivot-component-example/1423 "2014-06-12T00:00:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bongki.jeong](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bongki.jeong](https://forum.cloverdx.com/u/bongki.jeong)\
**Post date:** [June 12, 2014, 12:00am UTC](https://forum.cloverdx.com/t/pivot-component-example/1423/1 "2014-06-12T00:00:00Z")

</div>

Dear CloverETL,

I have a basic question, I am testing to use Pivot component.

But I got an error below,

ERROR [main] - Error during graph initialization !  
Component [Pivot:PIVOT] initilization failed.  
Normalizer initialization failed: Value for output field is not defined; define valueField or getOutputFieldValue function.

I read CloverETL manaual about that, but I could not find the error.

I think I would miss something, so is there any sample graph?

Manual document is not help to me, this is the just definition about the component.  
[http://doc.cloveretl.com/documentation/ … pivot.html](http://doc.cloveretl.com/documentation/UserGuide/index.jsp?topic=/com.cloveretl.gui.docs/docs/pivot.html)

Is there any real example for the beginner?

Thank you very much,

Bongki.

---

<div class="post-metadata">

**Author:** ![slechtaj](https://avatars.discourse-cdn.com/v4/letter/s/59ef9b/32.png) [@slechtaj](https://forum.cloverdx.com/u/slechtaj)\
**Post date:** [June 12, 2014, 1:09pm UTC](https://forum.cloverdx.com/t/pivot-component-example/1423/2 "2014-06-12T13:09:37Z")

</div>

Hi Bongki,

Please find attached example with pivot component.

In the component‘s dialog, there are two important attributes:

- Field defining output field name  
_Selected input field‘s value tells Clover the name of target output field name (into that field values from the next attribute will be mapped)_

- Field defining output field value  
_Selected input field’s value will be mapped to the field name selected in the previous attribute._

I believe the example is pretty straightforward. See the difference between input and output data and check them against the values set in the component’s attributes.

Hope this helps.

- [PivotExample.grf](https://cdn.cloverdx.com/forum/16494%5Fbd88629b908b089654e8d733a41d1861/PivotExample.grf)

---

<div class="post-metadata">

**Author:** ![bongki.jeong](https://avatars.discourse-cdn.com/v4/letter/b/9f8e36/32.png) [@bongki.jeong](https://forum.cloverdx.com/u/bongki.jeong)\
**Post date:** [June 16, 2014, 2:32am UTC](https://forum.cloverdx.com/t/pivot-component-example/1423/3 "2014-06-16T02:32:14Z")

</div>

Dear CloverETL,

Thank you for your guide and help,

It really helps me,

I really appreciate again and agian,

Best Regards,

Bongki.
