我有两个要合并的项目,它们的共同点是列。
项目1具有“发布日期”,“类型”,“故事”,“子主题”和“作者”列 项目2包含PageTitle,UniquePageviews和AvgTimeOnPage列
PageTitle和Story具有相等的值。我想将UniquePageviews和AvgTimeOnPage添加到项目1。
当我使用GREL forEach(cross(cell,“ Project2”,“ PageTitle”),v,v.cells [“ AvgTimeOnPage”]。value)[0](手动或使用VIB位扩展)时,我收到通知,已经创建了两个新列...但是“通过填充0行”。除标题已正确添加外,新列为空白。
如何获取cell.cross来填充它表示正在填充的任何行?
编辑:此处的数据库示例:https://imgur.com/a/fRGhhNw
项目1:
Date published Type Story Subtopic(s) Author
4/30/2018 News in Brief Last year's solar eclipse set off a wave in the upper atmosphere Planetary Science, Earth Lisa Grossman
4/30/2018 News in Brief New genetic details may help roses come up smelling like, well, roses Plants, Genetics Susan Milius
4/30/2018 Science Visualized See (and hear) the stunning diversity of bowhead whales' songs Animals, Biophysics, Ecology Helen Thompson
4/29/2018 News New genetic sleuthing tools helped track down the Golden State Killer suspect Genetics, Science & Society Tina Hesman Saey
项目2:
PageTitle UniquePageviews AvgTimeOnPage
The truth about animals isn't always pretty 63398 Sun Dec 31 00:03:06 EST 1899
Birds get their internal compass from this newly ID'd eye protein 53566 Sun Dec 31 00:03:30 EST 1899
Last year's solar eclipse set off a heat wave in the upper atmosphere 35496 Sun Dec 31 00:07:03 EST 1899
City heat is getting hazardous for humans 32199 Sun Dec 31 00:05:49 EST 1899
答案 0 :(得分:0)
最后使它起作用。经验教训:
将智能报价转换为常规报价
value.replace(/ [\ u2018 \ u2019 \ u201A \ u201B \ u2032 \ u2035] /,“'”)