<?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: Variable with Parameter in Chart Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713846#M256926</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t see any differences in the two expressions. When I use yours I get only one value back, not the full delimited list. Are you getting the full list on every line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Aug 2014 17:57:22 GMT</pubDate>
    <dc:creator />
    <dc:date>2014-08-05T17:57:22Z</dc:date>
    <item>
      <title>Variable with Parameter in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713844#M256924</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have defined a variable that is designed to give me an alphabetized list of all the unique elements in a list so that I can find what number that particular element is. I pass a parameter in order to get the field I want to evaluate against. The variable works fine in a text box, but it evaluates differently in a chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is my variable definition (notice that there is no leading equals sign. Also mind the 's and "s):&lt;/P&gt;&lt;P&gt;'=''|''&amp;amp;Concat({1&amp;lt;"' &amp;amp; $1 &amp;amp; '"=&amp;gt;} DISTINCT "' &amp;amp; $1 &amp;amp; '",''|'')'&lt;/P&gt;&lt;P&gt;Notice the 1 that's part of the set expression (not to be confused with $1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the expression in my text object:&lt;/P&gt;&lt;P&gt;=$(=$(vPassParam(GetCurrentField("High-Level Posn Break")))), where "High-Level Posn Break" is the name of a group. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which gives me a beautiful list of all the items in that field, separated by |s. The list also changes depending on what dimension is selected in the group, as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I put the same expression into a straight table, the expression doesn't work unless I remove the equal sign. Additionally, I only get the value for element of the dimension corresponding to the row, not the whole list like I need. If I don't use the variable, but rather type this expression:&lt;/P&gt;&lt;P&gt;='|'Concat({&amp;lt;{MV Break Bucket]=&amp;gt;} DISTINCT [MV Break Bucket],'|')&lt;/P&gt;&lt;P&gt;then I get the full list on each row as expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can anyone help me get the parameterized variable to work? It would make it so that I could use it for every dimension I wish instead of having to create a variable for each dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this wasn't too rambly!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 03:44:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713844#M256924</guid>
      <dc:creator />
      <dc:date>2014-08-05T03:44:47Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with Parameter in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713845#M256925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eric,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variable Declaration - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vPassParam&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;'=''|''&amp;amp;Concat({1&amp;lt;"' &amp;amp; $1 &amp;amp; '"=&amp;gt;} DISTINCT "' &amp;amp; $1 &amp;amp; '",''|'')'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression in Straight Table:&lt;/P&gt;&lt;P&gt;$(=$(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vPassParam&lt;/SPAN&gt;(GetCurrentField(GroupName)))) -- Note = at the begining&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is working for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jagan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 04:35:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713845#M256925</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-08-05T04:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with Parameter in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713846#M256926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don’t see any differences in the two expressions. When I use yours I get only one value back, not the full delimited list. Are you getting the full list on every line?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Aug 2014 17:57:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713846#M256926</guid>
      <dc:creator />
      <dc:date>2014-08-05T17:57:22Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with Parameter in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713847#M256927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;'=''|''&amp;amp;Concat({1&amp;lt;"' &amp;amp; $1 &amp;amp; '"=&amp;gt;} TOTAL DISTINCT "' &amp;amp; $1 &amp;amp; '",''|'')'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;If not works then post some sample file and expected output.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f6f6f6;"&gt;jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 01:17:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713847#M256927</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2014-08-06T01:17:38Z</dc:date>
    </item>
    <item>
      <title>Re: Variable with Parameter in Chart Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713848#M256928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jagan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That worked, thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Aug 2014 20:06:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Variable-with-Parameter-in-Chart-Expression/m-p/713848#M256928</guid>
      <dc:creator />
      <dc:date>2014-08-06T20:06:22Z</dc:date>
    </item>
  </channel>
</rss>

