<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Split string and add single quotes in Report Server</title>
    <link>https://community.fabric.microsoft.com/t5/Report-Server/Split-string-and-add-single-quotes/m-p/3352083#M30681</link>
    <description>&lt;P&gt;Yes, it was the data provider (Simba Odbc driver) that was escaping single qoute after I was replacing , with ','&amp;nbsp;&lt;/P&gt;&lt;P&gt;Had to use expression in Query text to pass my complete query as a string which then worked.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 27 Jul 2023 00:29:26 GMT</pubDate>
    <dc:creator>csinusa</dc:creator>
    <dc:date>2023-07-27T00:29:26Z</dc:date>
    <item>
      <title>Split string and add single quotes</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Split-string-and-add-single-quotes/m-p/3344951#M30625</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my paginated report, one of the parameters has input value as:&lt;/P&gt;&lt;P&gt;'abc,def,ghi'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but I want it to be parsed and make the parameter value as:&lt;/P&gt;&lt;P&gt;'abc','def','ghi'&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I can use these with IN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;=Join(Split( Replace(Parameters!SiteIdList.Value, ",","','") ,"',"), ",")&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But then powerbi adds escape character with my quotes making the output as :&lt;/P&gt;&lt;P&gt;'\'abc\',\'def\',\'ghi\'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;which makes it useless.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any suggestion&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 22 Jul 2023 21:26:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Split-string-and-add-single-quotes/m-p/3344951#M30625</guid>
      <dc:creator>csinusa</dc:creator>
      <dc:date>2023-07-22T21:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Split string and add single quotes</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Split-string-and-add-single-quotes/m-p/3350307#M30668</link>
      <description>&lt;P&gt;Where are you seeing these escape characters? I just used the inner Replace() call from your example as the split then join seems redundant and I don't see any escaping going on. The top line below is the original parameter value and the bottom line is a text box using replace(). It possibly also depends how you are using this parameter are you concatenating it into your query with an expression or are you passing it into another parameter in the query? It could be the data provider doing the escaping to prevent SQL injection.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Jul 2023 06:44:53 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Split-string-and-add-single-quotes/m-p/3350307#M30668</guid>
      <dc:creator>d_gosbell</dc:creator>
      <dc:date>2023-07-26T06:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Split string and add single quotes</title>
      <link>https://community.fabric.microsoft.com/t5/Report-Server/Split-string-and-add-single-quotes/m-p/3352083#M30681</link>
      <description>&lt;P&gt;Yes, it was the data provider (Simba Odbc driver) that was escaping single qoute after I was replacing , with ','&amp;nbsp;&lt;/P&gt;&lt;P&gt;Had to use expression in Query text to pass my complete query as a string which then worked.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jul 2023 00:29:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Report-Server/Split-string-and-add-single-quotes/m-p/3352083#M30681</guid>
      <dc:creator>csinusa</dc:creator>
      <dc:date>2023-07-27T00:29:26Z</dc:date>
    </item>
  </channel>
</rss>

