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: 
JustinDallas
Specialist III
Specialist III

Escape '$'-sign in Inline Load

Hello Folks,

 

I'm doing an Inline Load and one of the values has a dollar sign in it.  How do I get QliKSense to not try to expand it?

Below is a demo:

 

[Test Table]:
Load * Inline
[
SomeField
Test Field 1
Awd Tot $(by CAN)
]
;

Exit Script
;

 

 

Which outputs this:

Dollar Sign Expansion.PNG

 

I'm expecting it to have Awd Tot $(by CAN) in it's place.

 

Any help is greatly appreciated

Labels (2)
1 Solution

Accepted Solutions
SerhanKaraer
Creator III
Creator III

Hello Justin,

Just replace $( with another unique characters that you will replace later in the load statement.

[Test Table]:
Load Replace(SomeField,'###(','$'&'(') as SomeField Inline
[
SomeField
Test Field 1
Awd Tot ###(by CAN)
]
;
Exit Script
;

 I hope it resolves your issue.

View solution in original post

2 Replies
SerhanKaraer
Creator III
Creator III

Hello Justin,

Just replace $( with another unique characters that you will replace later in the load statement.

[Test Table]:
Load Replace(SomeField,'###(','$'&'(') as SomeField Inline
[
SomeField
Test Field 1
Awd Tot ###(by CAN)
]
;
Exit Script
;

 I hope it resolves your issue.

JustinDallas
Specialist III
Specialist III
Author

Following @SerhanKaraer 's advice, I replaced the dollar-sign with an @ since I know it will never appear in the fields.

 

[Test Table]:
Load Replace(SomeField,'@','$') as SomeField
;
Load * Inline
[
SomeField
Test Field 1
Awd Tot @(by CAN)
]
;

Exit Script
;