Skip to main content
Question

Excel writing issue


2eight
Contributor
Forum|alt.badge.img+2

hello 

i am trying to write something in excel format but the result are like in the picture, how to write the data from the start of each row

please suggest

 

6 replies

nielsgerrits
VIP
Forum|alt.badge.img+52

I suspect the data in your workbench is also not in one and the same row.


liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • March 19, 2024

@2eight Are you saying that there should be only 6 features/rows in your data? If so, is there some attribute which they all have in common, like the features name or id? It looks like you have multiple sources of calculations that perhaps should all relate to the same 6 features, but are currently separate in FME, leading them to be separate in the Excel output.


hkingsbury
Celebrity
Forum|alt.badge.img+50
  • Celebrity
  • March 20, 2024

As mentioned above by @liamfez if you do have a common attribute between them, you can use the aggregator with that common attribute set as the groupby and ‘Accumulation Mode’ set to ‘Merge Incoming Features’


2eight
Contributor
Forum|alt.badge.img+2
  • Author
  • Contributor
  • March 20, 2024
liamfez wrote:

@2eight Are you saying that there should be only 6 features/rows in your data? If so, is there some attribute which they all have in common, like the features name or id? It looks like you have multiple sources of calculations that perhaps should all relate to the same 6 features, but are currently separate in FME, leading them to be separate in the Excel output.

hello liam

I've extracted those values from the microstation DGN file, there were only six features,

the goal is to find the difference in terms of XY position of two lines as shown in the picture.

please suggest if any other option/method to find that

 


liamfez
Influencer
Forum|alt.badge.img+34
  • Influencer
  • March 20, 2024

Okay, so since there are 6 features, then I would recommend @hkingsbury ‘s solution to aggregate all of those rows back into 6 features. If there is no common key attribute like a name or id to use, you could create one. If there are 6 features being read in initially, you could add a counter and then use that count attribute as the unique attribute for the group by.


hrgisolutions
Contributor
Forum|alt.badge.img+1

@liamfez Thanks so much for this answer. I have been struggling writing to Excel with “blanks” in the columns. This solved my problem perfectly. Kudos to you!!!


Reply


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