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: 
sspawar88
Creator II
Creator II

How To change Row Value while creating Straight table

Hi Community,

How I can replace

* as CurrentYear

? as PreviousYear

# as PreviousYear

DataRevenue
*ACTUAL2
?ACTUAL3
Revenue#4

Table Should be like this

DataRevenue
2017ACTUAL2
2016ACTUAL3
REVENUE20164
Labels (1)
1 Solution

Accepted Solutions
antoniotiman
Master III
Master III

Hi Satish,

may be like (in Script)

LOAD Field,

Replace(Replace(Replace(Data,'*',Year(Today())),'?',Year(Today())-1),'#',Year(Today())-1)  as Data

From Table;

Or You can use Expression directly in straight table.

Regards,

Antonio

View solution in original post

3 Replies
antoniotiman
Master III
Master III

Hi Satish,

may be like (in Script)

LOAD Field,

Replace(Replace(Replace(Data,'*',Year(Today())),'?',Year(Today())-1),'#',Year(Today())-1)  as Data

From Table;

Or You can use Expression directly in straight table.

Regards,

Antonio

Anil_Babu_Samineni
MVP
MVP

May be this?

=Replace(Replace(Replace(Data,'*',Year(Today())),'?',Year(Today())-1),'#',Year(Today())-1)

Capture.PNG

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
Anil_Babu_Samineni
MVP
MVP

But not sure, How many field values you need to change?

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful