Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Crprtslv
Contributor

Reverse Generic Load?

Greetings,

I would like to set up my data that is like the Input to be in the format of the Output. How can this be achieved?

2019_04_29_13_47_14_54157_Generic_transformation4.png_Windows_Photo_Viewer.png

1 Solution

Accepted Solutions
jonathandienst
Partner - Champion III

If they are just additional data, then use  a LOAD* to collect all fields:

CrosssTable(label, value, 1)
Load *
From ...

If they are new attributes, then adjust the load so they are listed first and amend the crosstable attribute count:

CrosssTable(label, value, 2)
Load Key, newAttribute, Color, ....
From ...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein

View solution in original post

3 Replies
jwjackso
Specialist III

I think you are looking for the crosstable function.

Crprtslv
Contributor
Author

Yes that should work. I forgot to mention that it should account for additional columns added to the right. Is there a way for additional columns added to the right in the future to be loaded automatically?

jonathandienst
Partner - Champion III

If they are just additional data, then use  a LOAD* to collect all fields:

CrosssTable(label, value, 1)
Load *
From ...

If they are new attributes, then adjust the load so they are listed first and amend the crosstable attribute count:

CrosssTable(label, value, 2)
Load Key, newAttribute, Color, ....
From ...

Logic will get you from a to b. Imagination will take you everywhere. - A Einstein