Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
Jogi
Contributor III
Contributor III

Get data from cell value

Hi guys, 

I have a table with qvd path, and does anybody know how successfully get from cell month and year: 

C:\QlikResource\BI\Application\QVD\Data\2016-10 Products.qvd 

Expected result: 

YearMonth
201610

 

Labels (2)
1 Solution

Accepted Solutions
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

load *,SubField(FileName(),'-',1) as FileYear,mid(FileName(),index(FileName(),'-',1)+1,2)as FileMonth from [2016-10 Products.qvd](qvd);

View solution in original post

2 Replies
Arthur_Fong
Partner - Specialist III
Partner - Specialist III

Try this:

load *,SubField(FileName(),'-',1) as FileYear,mid(FileName(),index(FileName(),'-',1)+1,2)as FileMonth from [2016-10 Products.qvd](qvd);

Brett_Bleess
Former Employee
Former Employee

Jogi, did Arthur's post get you what you needed?  If so, be sure to give him credit by using the Accept as Solution button on his post, which will also let others know the recommendation did work for the use case too.  If you are still working on things, please leave an update.

Regards,
Brett

To help users find verified answers, please do not forget to use the "Accept as Solution" button on any post(s) that helped you resolve your problem or question.
I now work a compressed schedule, Tuesday, Wednesday and Thursday, so those will be the days I will reply to any follow-up posts.