Reputation: 230
My table has two columns,
X_ID Code
234324_sfsdf_ADA, INT ADA, INT `
343424_gdfg234_LMR LMR
1233_dfgdfg_QXT QXT
5423_tsdg_OLI OLI
I want to create a new filter in Tableau which has unique values of codes as [ADA, INT, LMR, QXT, OLI] and then I need to check in X_ID Column if the code appears in X_ID.
For now, what i have done is
IF CONTAINS([X_ID],[Parameter1]) THEN [Parameter1] END
The output of above step is ,
parameter1 = [ADA,INT,LMR,QXT,OLI]
The problem here is that Parameter1 only checks for its first value. So, In my case the Parameter1 has first value as ADA. So, the condition of CONTAINS([X_ID],[Parameter1])
is checked only for value ADA and not other values of parameter1.
My questions are:
Upvotes: 1
Views: 2197
Reputation: 1967
I am not really sure what exactly you are doing there, but try it this way:
CodeFilter
with CONTAINS(LOWER([Code]), LOWER([Parameter]))
(The LOWER()
makes sure that you don't run into problems in case there are mixed case values)[CodeFilter]
to the filter shelf and filter for True
valuesThat should create a filter to fit your requirements
Upvotes: 1