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

Announcements
Posting on Qlik Community is temporarily paused. Thank you for patience and we'll update you soon!
cancel
Showing results for 
Search instead for 
Did you mean: 
bobbydave
Creator III
Creator III

Filename extension

So I have a filename with the

Date_Area_Service.xlsx

Filenames would be like

032016_BR_Telecoms.xlsx

042015_BR_Networks.xlsx

052016_BR_ADS.xlsx

062015_BR_ServiceDesk.xlsx

Because the Service names vary in the number of characters, how do I get just the Service?

Labels (1)
1 Solution

Accepted Solutions
sunny_talwar
MVP
MVP

May be this:

LOAD

SubField(FileBaseName(), '_', -1) as Service

or

LOAD

Replace(SubField(FileName(), '_', -1), '.xlsx', '') as Service

View solution in original post

3 Replies
sunny_talwar
MVP
MVP

May be this:

LOAD

SubField(FileBaseName(), '_', -1) as Service

or

LOAD

Replace(SubField(FileName(), '_', -1), '.xlsx', '') as Service

bobbydave
Creator III
Creator III
Author

Wow .... as simple as that.

Thanks

sunny_talwar
MVP
MVP

Absolutely