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

Slicing

Hi,

How to slice the below text using QlikView Script.

E:\Source_files\HISTORIC_0308171515.csv

Expected Output: 0308171515

Thanks,

Lawrance. A

Labels (1)
4 Replies
m_woolf
Master II
Master II

purgechar(Subfield(YourText,'_',-1),'.csv')   as ExpOutput;

sunny_talwar
MVP
MVP

You can try like this

SubField(SubField(FieldName, '_', -1), '.', 1) as ExpectedOutput

aarkay29
Specialist
Specialist

KeepChar('E:\Shared_Common_Files\Static_Data\Meter_Read_Rate_Source_files\COMED_MTR_RDG_HISTORIC_0308171515.csv','0123456789')

Anonymous
Not applicable

load left(right('E:\Shared_Common_Files\Static_Data\Meter_Read_Rate_Source_files\COMED_MTR_RDG_HISTORIC_0308171515.csv',14),10) as field
AutoGenerate (1);