Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
Hi,
I have an expression in load script as below.
Subfield(AppName,'(',1) as AppName,
I want to apply subfield only for App names like TEST(1) not for App names like TEST(w) or sample(w)
Essentially, don't apply sub field where app names do not contain (1)
How can I achieve it?
Thanks
if(AppName like '*(1)', Subfield(AppName,'(',1), '') as AppName,
-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com
another possible solution without subfield()
Left(AppName,Index(AppName,'(1)')-1)
if(AppName like '*(1)', Subfield(AppName,'(',1), '') as AppName,
-Rob
http://www.easyqlik.com
http://masterssummit.com
http://qlikviewcookbook.com
another possible solution without subfield()
Left(AppName,Index(AppName,'(1)')-1)
Thank you Rob!!
Thank you Marco
You're welcome.
Please close this thread by accepting a solution.
Thanks