Pivot Transformation in Magic ETL not Pulling in 4 columns? HELP
Aloha team:
Data is coming from Survey monkey; therefore, I have to transform the data from rows to columns.
I have 18 columns that I do this with; using one pivot transformation, since all the data is similar (i.e. #1, 2, & 5) (1st pic).
The issue is 12 columns are able to transform the data, however, four (2nd pic) is coming in null.
I have checked the actual labeling from the source data and it is correct; however, it pulls in null.
I know there is data because I isolated (using a filter) to see the data. It doesn't like something about the label or something. I tried taking away the HTML tags (didn't work). The labels and data are in the 3rd pic.
Any assistance would be greatly appreciated. I am at my wits end. ;-(.
Comments
-
Hi @Hulachic5 - Do you have any whitespace at the end of your string that isn't being accounted for? Have you copied and pasted the value into your Pivot tile?
**Was this post helpful? Click Agree or Like below**
**Did this solve your problem? Accept it as a solution!**0 -
HI GrantSmith:
Yes, the label is copied/pasted directly from the data table.
0 -
@Hulachic5 I have limited experience with the Survey Monkey Connector, but I see that there is a Questions_Question_ID column that seems to coincide with the Pages_Question_Heading column. Have you tried using that column as your pivot column rather than the Pages_Question_Heading column since matching a numeric value will be a lot easier than a long text string?
**Check out my Domo Tips & Tricks Videos
**Make sure to any users posts that helped you.
**Please mark as accepted the ones who solved your issue.1 -
What about adding a step before to make the pivoting more stable? You can use the formula tile to build a CASE statement that renames each observation, for example:
CASE WHEN 'PAGES_QUESTION_HEADING' LIKE '%What is your last name?%' THEN 'PFC Last Name'
WHEN 'PAGES_QUESTION_HEADING' LIKE '%Hours did you...%' THEN 'Hours Worked Day 1'
.....
ELSE 'Whatever you need'
END
I think you get the idea of this. Once you have covered all the questions and normalized the attributes, your pivoting should not have this problem, It seems that something is changing in your data source, either a space, character, or something else, hard to tell.
Hope that this idea helps :)
2 -
@ChristianW - Your recommendation was a success. I was able to clean up the label and then pivot the revised label name.
It is true that there were hidden spaces...as indicated by @GrantSmith; I just could not find them.
Truly appreciate this community of GREAT MINDS!
Kudus to you both.
Salina
2 -
@Hulachic5 I am glad that it worked!
0
Categories
- All Categories
- 1.8K Product Ideas
- 1.8K Ideas Exchange
- 1.5K Connect
- 1.2K Connectors
- 300 Workbench
- 6 Cloud Amplifier
- 8 Federated
- 2.9K Transform
- 100 SQL DataFlows
- 616 Datasets
- 2.2K Magic ETL
- 3.9K Visualize
- 2.5K Charting
- 738 Beast Mode
- 57 App Studio
- 40 Variables
- 685 Automate
- 176 Apps
- 452 APIs & Domo Developer
- 47 Workflows
- 10 DomoAI
- 36 Predict
- 15 Jupyter Workspaces
- 21 R & Python Tiles
- 394 Distribute
- 113 Domo Everywhere
- 275 Scheduled Reports
- 6 Software Integrations
- 124 Manage
- 121 Governance & Security
- 8 Domo Community Gallery
- 38 Product Releases
- 10 Domo University
- 5.4K Community Forums
- 40 Getting Started
- 30 Community Member Introductions
- 108 Community Announcements
- 4.8K Archive