Skip to main content
Announcements
Global Transformation Awards! Applications are now open. Submit Entry
cancel
Showing results for 
Search instead for 
Did you mean: 
baarathi
Creator III
Creator III

SQL Server Stuff function in qlik sense

I have a SQL query : SELECT STUFF('SQL Tutorial', 4, 0, 'HTML');

How to implement the same using Qlik Sense in load script ?

I have tried implementing it with replace function in qlik sense but we need pass character as argument, whereas i need to pass index as argument.

Is there any other solution to implement above query in qlik sense?

1 Reply
undergrinder
Specialist II
Specialist II

Hi Bharathi,

try this:

=mid([field],0,[indexToInsert]) & field_to_insert] & mid([field],[indexToInsert]))

In example:

SELECT STUFF('SQL Tutorial', 4, 0, 'HTML');

[field] = 'SQL Tutorial

[indexToInsert] = 4

[field_to_insert] = 'HTML'


G.