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?

  • October 3, 2022
  • 4 replies
  • 40 views

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

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".

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.

4 replies

nielsgerrits
VIP
Forum|alt.badge.img+60
  • 2937 replies
  • October 3, 2022

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
  • 11 replies
  • 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+60
  • 2937 replies
  • Best Answer
  • October 3, 2022

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
  • 11 replies
  • October 4, 2022

Thank you, this helped a lot!