Discussion board where members can get started with Qlik Sense.
My bad, I thought it was the file extension..
you can do a lot of things to remove xlmx, like this one
=purgechar(SubField(Filebasename() ,'RPM -',2),'.xlmx')
I have load script like below.
vFilename=lib://DEV - QVD Extracts/Intake_Carstar_USA/StateFarm_RPM/CARSTAR - State Farm MSO RPM - 2017-11.xlsm
subfiled($(vFilename),-) as date
I want to get date like 2017-11
How Can I get it?
I don't know how you created the variable on the script, but I suppose that it give you this:
lib://DEV - QVD Extracts/Intake_Carstar_USA/StateFarm_RPM/CARSTAR - State Farm MSO RPM - 2017-11.xlsm
you can try this:
PurgeChar(SubField($(vFilename) ,'RPM -',2),' .xlsm') as date
Its giving '-' result. I want like 2017-11
Create a sample QVF file on which you have just your variable and your wrong output '-' and attach it.