Skip to main content
Question

Denormalise Spreadsheet

  • November 14, 2019
  • 3 replies
  • 22 views

Hi,

 

Having trouble describing my problem to Google it, so apologies if I've used the wrong term or missed something obvious here. I'm just starting to use FME so please be nice! :D

 

I have a spreadsheet which contains owners of properties in this format:

PropertyOwner 1 NameOwner 1 Addr1Owner 1 Addr2Owner 2 NameOwner 2 Addr 1Owner 2 Addr 2

 

And so on for up to 4 owners per property. Properties with one owner have blanks in the Owner 2/3/4 columns.

 

I'd like to reformat this to individual records for each owner, like this:

 

PropertyOwner 1 NameOwner 1 Addr 1Owner 1 Addr 2PropertyOwner 2 NameOwner 2 Addr 1

 

Owner 2 Addr 2

 

PropertyOwner 3 NameOwner 3 Addr 1

 

Owner 3 Addr 2

 

PropertyOwner 4 NameOwner 4 Addr 1

 

Owner 4 Addr 2

 

 

In the real file there are several property columns that I'd like to copy down to all other rows for that property, and obviously if there is blanks I don't want to create new rows.

Is this possible in FME? Can anyone point me in the right direction?

 

Thanks,

 

Iain

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3427 replies
  • November 14, 2019

One possible solution - explode the attributes, set the Owner attribute from the attribute name, remove the owner element from the attributenames, create the attributes from the attribute name values, then aggregate by Owner

split_row_to_multiple.fmwt


  • Author
  • 1 reply
  • November 15, 2019

Suitably chided by the newsletter I just wanted to say I'm still working through this answer as my FME learning time is limited. But it looks good. I can't set it as accepted until I've managed to go through it though.

Thanks for the reply, it's way above and beyond what I expected!


mark2atsafe
Safer
Forum|alt.badge.img+56
  • Safer
  • 2554 replies
  • November 22, 2019

Suitably chided by the newsletter I just wanted to say I'm still working through this answer as my FME learning time is limited. But it looks good. I can't set it as accepted until I've managed to go through it though.

Thanks for the reply, it's way above and beyond what I expected!

Awesome! Thanks Iain. Welcome to the community and I'm glad we're able to help out.