Better way to refresh imported columns?

空扰寡人 提交于 2019-12-18 07:07:36

问题


I have a table in spotfire with a couple columns imported from another table as a lookup. As an example, Col2 is used to match for the import of ImportedCol:

+------+------+-------------+
| Col1 | Col2 | ImportedCol |
+------+------+-------------+
|    1 | A    | Val1        |
|    2 | B    | Val2        |
|    3 | A    | Val1        |
|    4 | C    | Val3        |
|    5 | B    | Val2        |
|    6 | A    | Val1        |
|    7 | D    | Val4        |
+------+------+-------------+

However, the data in Col2 is subject to change. In that event, I need ImportedCol to change with it, however Spotfire seems to just keep the old imported data. Right now I've been deleting the imported column and re-adding it to refresh the link. Is there a way to dynamically import the data as the document loads or with any refresh of the information links?


回答1:


I have found that this happens sometimes although I'm not exactly sure how to explain why. my workaround is to create "virtual" data tables based on your existing ones.

consider your linked table as A and your embedded table as B. start from a default state -- that is, before importing any columns.

add a new data table. the source for this table should be "From Current Analysis" and using A. we will consider this one as C, and it becomes your main data table, and C will update when any changes are made to A or B.

to illustrate:




回答2:


I found the issue.

Turns out that pivoting on data in the same table creates a circular reference which overrides the embed/link setting on that table. My workaround was to make the pivot as its own information link, then have the table join the original link and the new pivot one.



来源:https://stackoverflow.com/questions/32052850/better-way-to-refresh-imported-columns

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!