Skip to main content
Best Answer

How to flatten a multi-record tab table into a single record Excel table...and some stats?

  • April 3, 2018
  • 2 replies
  • 132 views

Forum|alt.badge.img

Hi all.

I've got a tab file that I run a few queries against it to pull out some values which based on a published parameter used for the query. The results are then written into an Excel table

In this case the publish parameter ‘LEASE NAME’ used in the query has extracted the Collingwood 3 data from dataset. Seven records were extracted however I’d like to make those into a single record that contains data from each attribute where present. Additional I want to sum the values in the length columns.

At the moment it looks like this.

But I want it to look like this.

What should I be doing to get this result?

Thanks a heap

Michael

Best answer by takashi

Remove (i.e. Map to Missing) all the Empty and Null attributes with the NullAttributeMapper, and aggregate the records with the Aggregator transformer.

  • Group By: LEASE NAME
  • Accumulation Mode: Merge Incoming Attributes
  • Attributes to Sum: length

Then, create a published parameter from the Group By parameter in the Aggregator.

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.

2 replies

takashi
Celebrity
  • Best Answer
  • April 3, 2018

Remove (i.e. Map to Missing) all the Empty and Null attributes with the NullAttributeMapper, and aggregate the records with the Aggregator transformer.

  • Group By: LEASE NAME
  • Accumulation Mode: Merge Incoming Attributes
  • Attributes to Sum: length

Then, create a published parameter from the Group By parameter in the Aggregator.


Forum|alt.badge.img
  • Author
  • April 3, 2018

Remove (i.e. Map to Missing) all the Empty and Null attributes with the NullAttributeMapper, and aggregate the records with the Aggregator transformer.

  • Group By: LEASE NAME
  • Accumulation Mode: Merge Incoming Attributes
  • Attributes to Sum: length

Then, create a published parameter from the Group By parameter in the Aggregator.

Hi Takashi. That looks to have worked. I'll do some testing on other values but it's now coming out as a single record. Thanks, Michael.