Skip to main content
Solved

I am looking to split an attribute, create a list containing the split attributes and when writing to an Excel, I need to display the list elements as the row names. How do I go about doing this?


Forum|alt.badge.img

For example, I am splitting 'label' - TCY/D/N3000000. In this case, I only need the 'TCY' to be part of the list. I have multiple labels with different values instead of 'TCY'. I then need to display these as row names in Col A. upon writing to Excel as below: (Col B should count how many 'TCY' labels in the dataset.

 

DA_List Count

TCY 150

BGS 20

CUR 50

Best answer by nielsgerrits

manca_ent wrote:

The first part has worked, thank you! Which count field do you mean? In the aggregator transformer?

Indeed, in the Aggregator check Group Processing, then choose Group By the field you created using the AttributeCreator and enter a field in "Number of Aggregated Features".

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

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+55

Sounds like a job for the AttributeSplitter, this will create a list with a list element for each splitted item. Next can use an AttributeCreator to create an attribute from a listelement.

Then use an Aggregator to group items by this new attribute and fill the Count field.


Forum|alt.badge.img
  • Author
  • October 3, 2022

The first part has worked, thank you! Which count field do you mean? In the aggregator transformer?


nielsgerrits
VIP
Forum|alt.badge.img+55
  • Best Answer
  • October 3, 2022
manca_ent wrote:

The first part has worked, thank you! Which count field do you mean? In the aggregator transformer?

Indeed, in the Aggregator check Group Processing, then choose Group By the field you created using the AttributeCreator and enter a field in "Number of Aggregated Features".


Forum|alt.badge.img
  • Author
  • October 4, 2022

Thank you, this helped a lot!


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