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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
StephenDunn
Contributor III
Contributor III

Iteration for derived field

Hi, is it possible to simplify this code, using iteration?

[Split]:
DECLARE FIELD DEFINITION
FIELDS
SubField($1, '/', 1) as [Part1],
SubField($1, '/', 2) as [Part2],
SubField($1, '/', 3) as [Part3],
SubField($1, '/', 4) as [Part4],
SubField($1, '/', 5) as [Part5],
SubField($1, '/', 6) as [Part6],
;

Labels (1)
1 Reply
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

No. And you should almost never resort to iteration through tables. It will be sooooo much slower than doing thing inside the LOAD statement.


talk is cheap, supply exceeds demand