<?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: Convert a field value to an expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025862#M346680</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/Felix180807"&gt;Felix180807&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible store expression in field of island table, the variable is previously created. Use Ctrl+Alt+V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the steps below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a variable containing the desired aggregation without the equal sign (=);&lt;/LI&gt;&lt;LI&gt;In island table insert variable name without $-sign;&lt;/LI&gt;&lt;LI&gt;In chart table, call the expression $($(=SynthExpr1)).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached an simple example for you have idea of how work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jan 2016 16:30:51 GMT</pubDate>
    <dc:creator>jonas_rezende</dc:creator>
    <dc:date>2016-01-19T16:30:51Z</dc:date>
    <item>
      <title>Convert a field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025858#M346676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are using a synthetic dimension from a data island is it also possible to store the expressions in this table and use them?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know there is a pick/match method but this requires to much maintenance for what I need. So in a nutshell I want to use the value stored in the "SynthExpr1" field as the expression for the associated Synthetic dimension. Example attached.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it possible?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 08:42:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025858#M346676</guid>
      <dc:creator />
      <dc:date>2016-01-19T08:42:17Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025859#M346677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;am I right, that you want to select the expression in field SynthDim1 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you could try the following:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;create variables which are holding the expression (in general good for debubbing - no reload necessary if you want to change them) - but with out any "=" at the beginning, so only the text&lt;/LI&gt;&lt;LI&gt;in SynthExpr1, store the according variables&lt;/LI&gt;&lt;LI&gt;use this expression: =$(=$(=SynthExpr1))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope that does it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;best,&lt;/P&gt;&lt;P&gt;alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 12:01:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025859#M346677</guid>
      <dc:creator>ni_avoss</dc:creator>
      <dc:date>2016-01-19T12:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025860#M346678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Easier as pick(match()) isn't possible - the creation of the pick-match expression might be automated in some way. see here a similar discussion: &lt;A href="https://community.qlik.com/message/941561"&gt;Re: AllowMacroFunctionsInExpressions AND ActiveDocument.Evaluate()&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 12:35:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025860#M346678</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-19T12:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025861#M346679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This won't work because with a $-sign expansion creates an adhoc-variable which will be evaluated once before the chart is calculated and then applied for each row.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 15:18:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025861#M346679</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2016-01-19T15:18:57Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025862#M346680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/Felix180807"&gt;Felix180807&lt;/A&gt;&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's possible store expression in field of island table, the variable is previously created. Use Ctrl+Alt+V&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Follow the steps below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a variable containing the desired aggregation without the equal sign (=);&lt;/LI&gt;&lt;LI&gt;In island table insert variable name without $-sign;&lt;/LI&gt;&lt;LI&gt;In chart table, call the expression $($(=SynthExpr1)).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I attached an simple example for you have idea of how work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jan 2016 16:30:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025862#M346680</guid>
      <dc:creator>jonas_rezende</dc:creator>
      <dc:date>2016-01-19T16:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025863#M346681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you can do it as long as only one SynthExpr1 is possible (or you chose one from among alternatives). See attached example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;=$(=SynthExpr1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 02:03:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025863#M346681</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2016-01-20T02:03:24Z</dc:date>
    </item>
    <item>
      <title>Re: Convert a field value to an expression</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025864#M346682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Some great examples here and the =$(=SynthExpr1) trick will certainly be handy in the future.&lt;BR /&gt;&lt;BR /&gt;The issue specific to what I'm trying to achieve is that I need the table to be able to show all the various expressions at once - which isn't available via dollar expansion.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;I'm going to go with the pick match expression generator.&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;In case it helps anyone the script looks a bit like this:&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;LET&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;NumRows&lt;/EM&gt;&lt;/STRONG&gt;=&lt;SPAN style="color: #0000ff;"&gt;NoOfRows&lt;/SPAN&gt;('SYNTHDIMTABLE');&lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;FOR&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;i&lt;/EM&gt;&lt;/STRONG&gt;=0 &lt;SPAN style="color: #0000ff;"&gt;to&lt;/SPAN&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(NumRows)&lt;/EM&gt;&lt;/STRONG&gt;-1&lt;BR /&gt; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style=": ; color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;SYNTH_MATCH&lt;/EM&gt;&lt;/STRONG&gt; = '$(SYNTH_MATCH)' &amp;amp; ',' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;Peek&lt;/SPAN&gt;('IDENTITYFIELD',&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;);&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG style=": ; color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;SYNTH_SALES_EXPR&lt;/EM&gt;&lt;/STRONG&gt; = '$(SYNTH_SALES_EXPR)' &amp;amp; ',' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;IF&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;LEN&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;Peek&lt;/SPAN&gt;('FIELDNAME',&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(i)&lt;/EM&gt;&lt;/STRONG&gt;))&amp;gt;0,&lt;SPAN style="color: #0000ff;"&gt;Peek&lt;/SPAN&gt;('FIELDNAME',&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(i&lt;/EM&gt;&lt;/STRONG&gt;),'') &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;CHR&lt;/SPAN&gt;(10); &lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="color: #008000; font-size: 10pt; font-family: arial,helvetica,sans-serif;"&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt; NEXT&lt;/STRONG&gt;&lt;/SPAN&gt;;&lt;BR /&gt; &lt;BR /&gt; &lt;STRONG style=": ; color: #0000ff;"&gt;LET&lt;/STRONG&gt; &lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;SYNTH_SALES_FINAL&lt;/EM&gt;&lt;/STRONG&gt; = 'PICK(MATCH(IDENTITYFIELD$(SYNTH_MATCH))' &amp;amp; &lt;SPAN style="color: #0000ff;"&gt;CHR&lt;/SPAN&gt;(10) &amp;amp; '$(SYNTH_SALES_EXPR)' &amp;amp; ')';&lt;BR /&gt; &lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN style="font-family: arial,helvetica,sans-serif; font-size: 10pt;"&gt;Thanks to everyone for the helpful and insightful responses&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;DIV&gt; &lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jan 2016 08:31:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-a-field-value-to-an-expression/m-p/1025864#M346682</guid>
      <dc:creator />
      <dc:date>2016-01-20T08:31:31Z</dc:date>
    </item>
  </channel>
</rss>

