<?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: Comma Issue - Dollar Expansion with Parameters in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579521#M739746</link>
    <description>If it's a text both should work, 2 is a different value than 02 and both are different than 002.</description>
    <pubDate>Mon, 13 May 2019 13:56:40 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2019-05-13T13:56:40Z</dc:date>
    <item>
      <title>Comma Issue - Dollar Expansion with Parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579068#M739741</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm having issues with using single quotes and commas when passing parameters into variables.&lt;/P&gt;&lt;P&gt;Essentially I have an expression with set analysis I want to reuse across my document, and I want to be able to pass additional set analysis elements, ideally stored in variables, into it.&amp;nbsp; Sometimes those additional set analysis elements contain commas or single quotes (e.g. Field={'020','030'}).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My original Expression I want to modify is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;$1,$2,[Insurance Type Desc]={'Direct','Assumed'}&amp;gt;} [Written Premium])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Additional set analysis I may want to pass in is:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Policy Key]={"=Count({$&amp;lt;[Transaction Code]={'045','02'}&amp;gt;} [Transaction ID])&amp;gt;0"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;and/or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Transaction Code]={'00','01','010','020'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;So I want to be able to do something like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;$(vSumGrossWP_Mod($(vE21Set),$(vE21Set2)))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I have looked at a few other posts and tried some solutions and couldn't get anything to work.&amp;nbsp; I've tried both storing the additional parameters in variables and typing them directly.&amp;nbsp; I understand the concept of replacing the characters, but everything I try is resulting in one of the following:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;&lt;/STRONG&gt; or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;$1,$2,[Insurance Type Desc]={'Direct','Assumed'}&amp;gt;} [Written Premium])&lt;/STRONG&gt; or&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum({$&amp;lt;-,[Insurance Type Desc]={'Direct','Assumed'}&amp;gt;} [Written Premium])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Below are links to the topics I have browsed.&amp;nbsp; Any help is appreciated.&amp;nbsp; I would prefer not to upload scrambled example data, but I probably could.&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Documents/Comma-problem-workaround-for-dollar-sign-expansion-with/ta-p/1484993/show-comments/true" target="_self"&gt;Comma-problem-workaround-for-dollar-sign-expansion&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/QlikView-Creating-Analytics/Set-analysis-dynamic-number-formatting-and-commas/td-p/1284958" target="_self"&gt;Set-analysis-dynamic-number-formatting-and-commas&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/New-to-QlikView/nested-variable-troubles/m-p/1048011" target="_self"&gt;nested-variable-troubles&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 03:36:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579068#M739741</guid>
      <dc:creator>Jagsfan82</dc:creator>
      <dc:date>2024-11-16T03:36:53Z</dc:date>
    </item>
    <item>
      <title>Re: Comma Issue - Dollar Expansion with Parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579238#M739742</link>
      <description>Hi, one way to avoid commas is change it by additions of values:&lt;BR /&gt;[Transaction Code]={'00'}+{'01'}+{'010'}+{'020'}</description>
      <pubDate>Sun, 12 May 2019 09:19:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579238#M739742</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-12T09:19:28Z</dc:date>
    </item>
    <item>
      <title>Re: Comma Issue - Dollar Expansion with Parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579432#M739743</link>
      <description>&lt;P&gt;Beside the suggestion from Ruben you could try the following syntax:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[Transaction Code]={(00|01|010|020)}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 11:27:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579432#M739743</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2019-05-13T11:27:34Z</dc:date>
    </item>
    <item>
      <title>Re: Comma Issue - Dollar Expansion with Parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579516#M739744</link>
      <description>&lt;P&gt;Thank you both for the suggestions.&amp;nbsp; Ruben's solution worked for my situation.&lt;/P&gt;&lt;P&gt;The pipes wanted to give me a syntax error as if I hadn't completed the field's set.&amp;nbsp; Didn't fidget with it to much.&amp;nbsp; Maybe &lt;STRONG&gt;"=01|02|03|04"&lt;/STRONG&gt; would have worked?&lt;BR /&gt;&lt;BR /&gt;Another quick question... I'm assuming if I want to distinguish 002 from 02 I have to enclose it as a string with the single quotes correct?&amp;nbsp;I.E. would I need to type: &lt;STRONG&gt;Field={'02','002'}&amp;nbsp;&lt;/STRONG&gt;or would&amp;nbsp;&lt;STRONG&gt;Field={02,002}&amp;nbsp;&lt;/STRONG&gt;work as well?&amp;nbsp;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 May 2019 13:51:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579516#M739744</guid>
      <dc:creator>Jagsfan82</dc:creator>
      <dc:date>2019-05-13T13:51:20Z</dc:date>
    </item>
    <item>
      <title>Re: Comma Issue - Dollar Expansion with Parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579518#M739745</link>
      <description>To be clear, I wouldn't actually be coding 02 &amp;amp; 002 together, it would be more coding one or the other, hoping "Field={01,02}" wouldn't also capture 001 and 002.</description>
      <pubDate>Mon, 13 May 2019 13:53:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579518#M739745</guid>
      <dc:creator>Jagsfan82</dc:creator>
      <dc:date>2019-05-13T13:53:31Z</dc:date>
    </item>
    <item>
      <title>Re: Comma Issue - Dollar Expansion with Parameters</title>
      <link>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579521#M739746</link>
      <description>If it's a text both should work, 2 is a different value than 02 and both are different than 002.</description>
      <pubDate>Mon, 13 May 2019 13:56:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Comma-Issue-Dollar-Expansion-with-Parameters/m-p/1579521#M739746</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-05-13T13:56:40Z</dc:date>
    </item>
  </channel>
</rss>

