Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Sreehari
Partner - Contributor III
Partner - Contributor III

Filtering Data and Creating New Columns in Qlik Replicate Based on Substring Condition

Hi Qlik Community,

I have a requirement in Qlik Replicate where I need to extract specific substrings from a column (mesg) in my source table (table_1) and create two new columns based on these conditions.

Use Cases:

  1. mesgoutput1column

    • Extract  from the mesg column using:
      SUBSTRING(mesg, 290, 4)
    • Store this in a new column called mesgoutput1column.
  2. mesgoutput2column

    • Extract from the mesg column using:
      SUBSTRING(mesg, 194, 6)
    • Store this in a new column called mesgoutput2column.

Question:

  • Can I apply these transformations directly in Replicate within the replication task?
  • If yes, how can I create 2 computed columns to extract these substring values?

Thanks,

Sreehari

 

 

 

 
 
Labels (4)
1 Solution

Accepted Solutions
john_wang
Support
Support

Hello @Sreehari ,

Qlik Replicate provides rich built-in transformations to support various functions for different purpose.

For your sample, you may define 2 new columns as below:

john_wang_0-1739503924293.png

The column mesgoutput1column expression is as below:

john_wang_1-1739504003982.png

Where the computed column mesgoutput1column retrieves substring from column NAME of the source table.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!

View solution in original post

1 Reply
john_wang
Support
Support

Hello @Sreehari ,

Qlik Replicate provides rich built-in transformations to support various functions for different purpose.

For your sample, you may define 2 new columns as below:

john_wang_0-1739503924293.png

The column mesgoutput1column expression is as below:

john_wang_1-1739504003982.png

Where the computed column mesgoutput1column retrieves substring from column NAME of the source table.

Hope this helps.

John.

Help users find answers! Do not forget to mark a solution that worked for you! If already marked, give it a thumbs up!