Jump to content

Splitting Line Breaks as separate rows in Spotfire


Recommended Posts

Hi All,

I am having an input dataset which has line breaks in it. I would like to seperate the line break characters as seperate rows.

Input: (2 rows , 2 columns)

 

 

 

Fruits

Sold to

 

 

Apple

Ricky

John

Alfred

Michael

 

 

Orange

 

Ajay

Ram

 

 

 

 

 

Expected result: (6 rows, 2 columns)

 

 

 

Fruits

Sold to

 

 

Apple

Ricky

 

 

Apple

John

 

 

Apple

Alfred

 

 

Apple

Michael

 

 

Orange

Ajay

 

 

Orange

Ram

 

 

 

 

Please let me know the possibilities of achieving this result set. Thanks!

Link to comment
Share on other sites

Excel/csv is the source for the dashboard. In the source data i am getting values as mentioned in this post. 

 

Since the source data changes over time, looking for the ways to handle the line breaks within spotfire.

 

It is possible to acheive this result using "splitstackshape" library using R script. But this package need to be installed on spotfire server.

 

please let me know if there is a way to acheive this result using Iron python script

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...