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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

how to change from in Load dynamically

Hi Friends,

I have text files in D drive with names JAN, FEB and  MAR. I am trying to load data for that month only and flag it with a column.

I used if filetime('D:\JAN.txt') then

Load * ,filebasename() as Flag.

from ....JAN.txt.

I want a code where if the month is FEB the code automatically loads the FEB data with flag FEB.

I dont want to change only FROM rest code remains the same.

Thanks


1 Solution

Accepted Solutions
anbu1984
Master III
Master III

Let vMthNm= Upper(Month(Today()));

Load * ,filebasename() as Flag.

from ....$(vMthNm).txt.

View solution in original post

1 Reply
anbu1984
Master III
Master III

Let vMthNm= Upper(Month(Today()));

Load * ,filebasename() as Flag.

from ....$(vMthNm).txt.