Unpivot Data From a File Load Activity | Community
Skip to main content
rss1
Level 2
May 1, 2020
Solved

Unpivot Data From a File Load Activity

  • May 1, 2020
  • 1 reply
  • 2987 views

Hi All -

 

I am creating a workflow that I hope will be able to map one file layout to another. I am making plenty of progress, but I have hit one sticking point.

 

The inbound data format is something like:

Person IDFavorite FoodFavorite ColorFavorite Drink
AChickenRedWater
BVeggiesBlueSoda

 

Ideally, I would like to be able to emulate the "Unpivot Columns" function in Excel Power Query to un-pivot the data so it reads more like

Person IDAttributeValue
AFavorite FoodChicken
AFavorite ColorRed
AFavorite DrinkWater
BFavorite FoodVeggies
BFavorite ColorBlue
BFavorite DrinkSoda


If this data were already in the Adobe DB in separate tables (ex. individual, individual-surveys, and surveys), I could use an enrichment activity with a one-to-many link between the tables to load out the rows.

 

However, I am curious if this is something that could be done with an activity entirely within a workflow.

 

Anyone have any good tricks for this?

 

Thanks

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Marcel_Szimonisz

Hello @rss1 

There is no Out of the box functionality to do the mentioned. But you can run any SQL query you want by JSAPI sqlExec() where you can "unpivot"

 

Marcel

1 reply

Marcel_Szimonisz
Community Advisor
Marcel_SzimoniszCommunity AdvisorAccepted solution
Community Advisor
May 8, 2020

Hello @rss1 

There is no Out of the box functionality to do the mentioned. But you can run any SQL query you want by JSAPI sqlExec() where you can "unpivot"

 

Marcel