Hi team,
I need some help related to functions. Please go through below Scenario
Scenario:
I have Field (Eating Status) which is having Like " I Completed the Dinner at 9 PM Today " , " I Completed the lunch at 1 PM Today " ," I Completed the Breakfast at 10 AM Today ". I need to get the Values which is Having " Dinner" .
Which function i have to use to get the same. Thanks in Advance.
Note : I am a Novice user to Qlik Sense.
Regards,
Sai.
Hi,
Thanks for replying
I have to create a calculated field if filed contains "dinner" have to return Dinner else NA.
Regards,
Sai
It's not always necessary that your dinner value have in same case (upper,lower,capitalize), so instead use lower function to convert all string values to lower and then use wildcard.
if(WildMatch(lower([Eating Status]),'*dinner*'),'Dinner','NA') as FieldName
maye be :
load if(wildmatch([Eating Status],'*Dinner*')>0,'OK','KO') as DinnerStatus,* inline [
Eating Status
I Completed the Dinner at 9 PM Today
I Completed the lunch at 1 PM Today
I Completed the Breakfast at 10 AM Today
];
Hi Saik,
You can use the wildmatch function
How you want to represent those values?
Hi,
Thanks for replying
I have to create a calculated field if filed contains "dinner" have to return Dinner else NA.
Regards,
Sai
You can try like this:
if(WildMatch([Eating Status],'*Dinner*'),'Dinner','NA') as FieldName
It's not always necessary that your dinner value have in same case (upper,lower,capitalize), so instead use lower function to convert all string values to lower and then use wildcard.
if(WildMatch(lower([Eating Status]),'*dinner*'),'Dinner','NA') as FieldName
Thank you.