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})
)
)
Hi @praveen.gp,
Apologies for missing your last response on this!
While a bit tedious and long, this logic seems accurate to me, did it work out in your scenario?
Yeah it worked for my scenario.