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

Announcements
Join us to spark ideas for how to put the latest capabilities into action. Register here!
cancel
Showing results for 
Search instead for 
Did you mean: 
pascos88
Creator II
Creator II

Change field in Table

Hello everyone,

I have a problem.

From the name of a file, I generate the field of the table with SubField.

The name of file is

Pas_Gia_88.qvd

Table1:

Load

SubField(FileBaseName(),'_',1) as Name.

SubField(FileBaseName(),'_',2) as Surname.

SubField(FileBaseName(),'_',3) as Year.

from....

Table 1:

Name        Pas    

Surname   Gia

Year           88

My problem now is that I can't modify the name of the file, and I would like to have 89 for each 88.

My table should not have 88 in this file but 89.

Table 1:

Name        Pas    

Surname   Gia

Year           89

Thanks for any help

Pasquale

11 Replies
pascos88
Creator II
Creator II
Author

Hi Jagan,

really thanks, but I need also :

if in a table already exist turbine name like T1, T2, T3, T4, the name not change..

With this ApplyMap('TurbineChange', turbine) AS turbine this appen?

Regards

Pasquale

jagan
Partner - Champion III
Partner - Champion III

Then try like this

TurbineChange:

LOAD

*

INLINE [

OldName, NewName

E1, T1

E2, T2

E3, T3

E4, T4];

Table1:

LOAD

farm,

ApplyMap('TurbineChange', turbine, turbine) AS turbine

FROM DataSourc;


Regards,

Jagan.