Jump to content

Spotfire script append rows without adding columns


V S

Recommended Posts

Hi,

I am trying to add all rows from Table B into Table A.

Both tables have some calculated columns added (same names)

When using 'addRows' and AddRowsSettings in script to add rows from one table to another it creates additional calculated columns such as calcCol(1) and so on.. any idea how can I not add extra/duplicate columns

Thanks

Link to comment
Share on other sites

Can you try to use the following method to create your calculated column:

 

Instead of Insert -> calculated column you use Insert -> Columns... then pick the same data table as source and chose the transformation 'calculate new column' and click 'add'. Type your formula for calculation there. 

 

The difference with this approach is that the calculated column is no longer dynamical. The values are fix (static). This column is treated like any other column.

 

As long you have a dynamical column you can't merge data on this column.

 

(If both of your tables have the same calcualtion, then just merge the tables first and do the calculation afterwards)

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...