I have a use case to use the regular expressions in the calculated field. But not finding the regex function in QuickSight.
I see the below posts regarding that. any updates please. It would be great if we have the regex function available soon.
I have a use case to use the regular expressions in the calculated field. But not finding the regex function in QuickSight.
I see the below posts regarding that. any updates please. It would be great if we have the regex function available soon.
Hi @praveen.gp,
Unfortunately, the ‘regex’ function, or something similar to, is still a feature limitation in Quick Sight. I had suggested a few work arounds in regards to regex functions at the post below:
If you could explain your scenario that requires this function a bit more in depth, what you’re trying to complete and what an ideal outcome is, I can try and suggest additional work arounds that could be used.
Additionally, I’ll keep this tagged as a feature request to promote visibility to the support team.
I want to capture a value for my field which is only in this format ‘12-AB-1234’ all the other values should be as ‘- -’.
I have the other values like ‘1234’, ‘New’, Nulls.,
Right now I use contains to capture those required format. But If I have Regex available. The calculated field is straight.
The calculated field Which i am using for my testing. Please suggest if there is any better way to use it.
ifelse(
isNull({Value})
OR toString({Value}) = ‘0’
OR isNull({Type_CD})
OR {Type_CD} = ‘0’
OR {Record_Type} = ‘–’,
‘–’,
ifelse(
{Type_CD} = ‘F’,
ifelse(
contains(toString({Value}), ‘–’)
OR contains(toString({Value}),‘A’) OR contains(toString({Value}),‘a’)
OR contains(toString({Value}),‘B’) OR contains(toString({Value}),‘b’)
OR contains(toString({Value}),‘C’) OR contains(toString({Value}),‘c’)
OR contains(toString({Value}),‘D’) OR contains(toString({Value}),‘d’)
OR contains(toString({Value}),‘E’) OR contains(toString({Value}),‘e’)
OR contains(toString({Value}),‘F’) OR contains(toString({Value}),‘f’)
OR contains(toString({Value}),‘G’) OR contains(toString({Value}),‘g’)
OR contains(toString({Value}),‘H’) OR contains(toString({Value}),‘h’)
OR contains(toString({Value}),‘I’) OR contains(toString({Value}),‘i’)
OR contains(toString({Value}),‘J’) OR contains(toString({Value}),‘j’)
OR contains(toString({Value}),‘K’) OR contains(toString({Value}),‘k’)
OR contains(toString({Value}),‘L’) OR contains(toString({Value}),‘l’)
OR contains(toString({Value}),‘M’) OR contains(toString({Value}),‘m’)
OR contains(toString({Value}),‘N’) OR contains(toString({Value}),‘n’)
OR contains(toString({Value}),‘O’) OR contains(toString({Value}),‘o’)
OR contains(toString({Value}),‘P’) OR contains(toString({Value}),‘p’)
OR contains(toString({Value}),‘Q’) OR contains(toString({Value}),‘q’)
OR contains(toString({Value}),‘R’) OR contains(toString({Value}),‘r’)
OR contains(toString({Value}),‘S’) OR contains(toString({Value}),‘s’)
OR contains(toString({Value}),‘T’) OR contains(toString({Value}),‘t’)
OR contains(toString({Value}),‘U’) OR contains(toString({Value}),‘u’)
OR contains(toString({Value}),‘V’) OR contains(toString({Value}),‘v’)
OR contains(toString({Value}),‘W’) OR contains(toString({Value}),‘w’)
OR contains(toString({Value}),‘X’) OR contains(toString({Value}),‘x’)
OR contains(toString({Value}),‘Y’) OR contains(toString({Value}),‘y’)
OR contains(toString({Value}),‘Z’) OR contains(toString({Value}),‘z’),
toString({Value}),
‘–’
),
toString({Value})
)
)