Skip to main content
Solved

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


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.

View original
Did this help you find an answer to your question?

2 replies

takashi
Supporter
  • 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
takashi wrote:

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.

 

 


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