title: Adding parameters to custom sql query using 'in' clause in Tableau
body: <p>Source Database - Teradata<br />
  BI Tool - Tableau</p>
  <p>I have created a report in Tableau where in am fetching some data using custom sql query, the query is accessing data from Teradata database. Consider the below sql query as an example:</p>
  <pre><code>    Select Tab1.Col1, Tab1.Col2, Tab2.Col3 from Tab1 
      inner join Tab2 on Tab1.col1 = Tab2.col1 
      where Tab1.Col1 in ('Alpha','Beta','Gamma')
  </code></pre>
  <p>Tableau reports works fine and data is retrieved.</p>
  <p>Created a string parameter in Tableau with name P_RAYS. And passed this parameter to the custom sql query as shown below:</p>
  <pre><code>    Select Tab1.Col1, Tab1.Col2, Tab2.Col3 from Tab1 
      inner join Tab2 on Tab1.col1 = Tab2.col1 
      where Tab1.Col1 in (&lt;Parameters.P_RAYS&gt;)
  </code></pre>
  <p>When only Alpha is passed to the parameter, tableau retrieves the data and report is generated accurately but when Alpha, Beta and Gamma is passed to the parameter, no data is returned in tableau.</p>
  <p>It looks like inside custom sql query, the parameters are being processed incorrectly as 'Alpha,Beta,Gamma' and not as 'Alpha','Beta','Gamma'</p>