Comments and answers for "Summarising an OD matrix"
https://knowledge.safe.com/questions/3257/summarising-an-od-matrix.html
The latest comments and answers for the question "Summarising an OD matrix"
-
gio发表评论
https://knowledge.safe.com/comments/11820/view.html
..added another statcalc for totals per row. Also inserted wsc for csv to excell:
![User-added image](//www.baooytra.com/cdn/community/attachments/http_download_1445975417698_11364.png)
result:
![User-added image](//www.baooytra.com/cdn/community/attachments/http_download_1445975418410_11364.png)
...ok..now back to work... :)
Thu, 21 May 2015 09:16:31 GMT
gio
-
Comment by zoerhiannon
https://knowledge.safe.com/comments/10783/view.html
Never mind-sorted it out! I will test this out now :)
Thu, 21 May 2015 09:01:08 GMT
zoerhiannon
-
Comment by zoerhiannon
https://knowledge.safe.com/comments/10972/view.html
Hi Gio
Thankyou so much ! I didnt expect anyone to go to so much effort. Much appreciated- this will be very handy for the future :)
Is there a way to show the script in a higher resolution? I can't make it out fully..
Thanks
Zoe
Thu, 21 May 2015 08:58:50 GMT
zoerhiannon
-
Answer by gio
https://knowledge.safe.com/answers/5648/view.html
Hi,
Here is the orrect version.
(your sample has different attributes for rows and columns..) I now keep the original row_names.
Also added a "totals" row to the sheet.
![User-added image](//www.baooytra.com/cdn/community/attachments/http_download_1445975326830_11364.png)
When written to excell (Csv2Excell)
![User-added image](//www.baooytra.com/cdn/community/attachments/http_download_1445975327575_11364.png)
Thu, 21 May 2015 08:53:59 GMT
gio
-
gio发表评论
https://knowledge.safe.com/comments/11765/view.html
..i see, it 's a mistake on my part, will fix it later...
Wed, 20 May 2015 15:14:52 GMT
gio
-
gio发表评论
https://knowledge.safe.com/comments/10873/view.html
嗨,< br > < br >这是一个方法。
![User-added image](//www.baooytra.com/cdn/community/attachments/http_download_1445975327946_11364.png)
You need to be aware that the FME excellreader will add a order number to columns with sme name. To cope with this i added a stringsearcher and a NullAttributeValueMapper. Latter because the normal ValueMapper does not allow for regexp.
The csv can be converted to excell using a simple:
![User-added image](//www.baooytra.com/cdn/community/attachments/http_download_1445975328673_11364.png)
For automation you can call the latter at the end of the fomr workbench usiing a workspacecaller.
..for some reason the Excell reader fails to read coulmn 1022..hav'nt solved that yet, alas.
Wed, 20 May 2015 14:47:37 GMT
gio