Skip to main content
Question

Create Rows Based on Column Values in a Google Sheet


Forum|alt.badge.img

Hello - I have a Google Sheet that is designed in such a way that some of the columns (8 total) are repeated 10 times. An example of the structure is:

Time|Name|Date|Report|From Time|To Time|Activity|Location|District|Neighborhood|Activity|More?

If "More" for the data entry of the form is set to "Y", the following columns are repeated for additional data entry:

  • From Time
  • To Time
  • Activity
  • Location
  • District
  • Neighborhood
  • Activity
  • More?

When the Google Sheet is added as a reader, the repeated columns have a 00 to 08 appended to them.

What I need to do is, based on "More" being set to "Y" for a user (i.e., Name, Date), create N number of rows taking the values from the 00 to 08 columns to create the subsequent rows.

I've played with AttributeExploder, Aggregator in my current workspace but I'm stuck! :)

A push would be great from the community.

Thanks in advance!

 

3 replies

Forum|alt.badge.img
  • Author
  • October 31, 2018

If you take a look at the AttributeCreator at the end of the workspace, I was getting ready to try something but I stopped.


chrisatsafe
Contributor
Forum|alt.badge.img+2
  • Contributor
  • November 2, 2018

Hi @bcrowley10,

 

Another suggestion is to test and rename the attributes for each AttributeName##.

 

This would require a series of Testers and AttributeRenamers or BulkAttributeRenamers to filter for each AttributeName##.

Test and Rename:

Input:

Output:

Test_and_Rename_Community_Suggestion.fmw


Forum|alt.badge.img
  • Author
  • November 6, 2018

Hello: I've been out of the country on vacation. Thanks for responding @ChrisAtSafe. I'll try your suggestion and post my progress. Thanks again.


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings