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

Announcements
Want to see what's currently in public preview? We've pulled it all together in one place. Check it out here
cancel
Showing results for 
Search instead for 
Did you mean: 
cristian_av
Creator III
Creator III

Split code to edit repetitive Fields ¿SubRoutine?

Hi

I'm searching for some way to separate the code to edit just some repetitive fields. I don't want to repeat the code for fields that are equal but that are in different tables.

I thought that maybe with a subroutine I can do it, but I don't know how!

Is it any way to do that?

Thanks!

An Example:

LOAD *,

     num(ID_RUT) as ID_RUT2

;

[Table1]:

ID_RUT,

NAME

FROM file1.qvd (qvd)

LOAD*

     num(ID_RUT) as ID_RUT2

;

[Table2]:

ID_RUT

ANOTHER_FIELD,

ANOTHER_FIELD2,

FROM file222.qvd (qvd)

Labels (1)
0 Replies