Unlock a world of possibilities! Login now and discover the exclusive benefits awaiting you.
I want to group a string into another group using wildmatch but the problem is that this string has a special character inside of it (see code)
=if(WildMatch(Group, 'MARKETING & TRADING ,RESEARCH & DEV'T FEEDSTOCK SUPPLY', ) , 'COMMERCIAL OPERATIONS' , Group)
The MARKETING & TRADING , RESEARCH & DEV'T FEEDSTOCK SUPPLY has a apostrophe between it.
Is there a way around this problem?
See if this helps:
If(WildMatch(Group, 'MARKETING & TRADING ,RESEARCH & DEV*'), 'COMMERCIAL OPERATIONS', Group) as Group
Since you are using WildMatch, try this (use *)
=If(WildMatch(Group, 'MARKETING & TRADING ,RESEARCH & DEV*T FEEDSTOCK SUPPLY'), 'COMMERCIAL OPERATIONS' , Group)
Hi sunindia
Although the script works, it still doesn't group it to the COMMERCIAL OPERATIONS string.
Can you share a sample?
Hi sunindia,
as requested.
See if this helps:
If(WildMatch(Group, 'MARKETING & TRADING ,RESEARCH & DEV*'), 'COMMERCIAL OPERATIONS', Group) as Group
PFA and reload the app; check with "NewGroup" field. Hope it will help you.
Hi,
Try this
If(Match(
Category,
'MARKETING & TRADING ,RESEARCH & DEV' & chr(39) & 'TFEEDSTOCK SUPPLY') , 'COMMERCIAL OPERATIONS', Category) AS Group
Sample Load Script:
LOAD
*,
If(Match(
Category,
'MARKETING & TRADING ,RESEARCH & DEV' & chr(39) & 'TFEEDSTOCK SUPPLY') , 'COMMERCIAL OPERATIONS', Category) AS Group
INLINE [
Category
"MARKETING & TRADING ,RESEARCH & DEV'TFEEDSTOCK SUPPLY"
Test1
Test2 ];
Regards,
Jagan.
Hi Jarlee,
Write this :
This works precisely.
if(WildMatch(Group, 'MARKETING & TRADING ,RESEARCH & DEV'&chr(39)&'T'&chr(10)&'FEEDSTOCK SUPPLY', ) , 'COMMERCIAL OPERATIONS' , Group)
as there is a problem with this actual value. after DEV'T , there is a new line. So write above expression for this.
Find app attached.
hi sunindia its working now thanks.