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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
sirikonta
Contributor
Contributor

Help Adding Underscore At End of Number

Hi, I have a set of account numbers that I need to add an underscore to the end of, so 1234 to show as 1234_ I recall doing this a while ago but cannot remember how, I know it ended & "_" as .... but cannot remember? I've look online, but cannot find the solution? Any suggestions please?

Labels (1)
2 Solutions

Accepted Solutions
anat
Master
Master


load *,val&chr(95) as newfield;
load * inline [
dt,val
2014,14
2015,18
2016,11
2017,12
2018,20
2019,21
];

 

exit script;

View solution in original post

Vegar
MVP
MVP

The solution above by @anat  should work.

When using " " QlikView  expects a field name, but when using '  ' QlikView expects a string

The syntax below will also get you the desired output.

AccountNumber & '_' 

View solution in original post

2 Replies
anat
Master
Master


load *,val&chr(95) as newfield;
load * inline [
dt,val
2014,14
2015,18
2016,11
2017,12
2018,20
2019,21
];

 

exit script;

Vegar
MVP
MVP

The solution above by @anat  should work.

When using " " QlikView  expects a field name, but when using '  ' QlikView expects a string

The syntax below will also get you the desired output.

AccountNumber & '_'