<?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: Creating an expression based on a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-an-expression-based-on-a-variable/m-p/494403#M184944</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;=pick(&lt;/P&gt;&lt;P&gt;match(CR_COD_CURRENCY_SAP, 'EUR', 'USD', 'LOCAL'),&lt;/P&gt;&lt;P&gt;ActPriceMaterialEUR,&lt;/P&gt;&lt;P&gt;ActPriceMaterialUSD,&lt;/P&gt;&lt;P&gt;ActPriceMaterialLOCAL&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Sep 2013 14:57:09 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-09-06T14:57:09Z</dc:date>
    <item>
      <title>Creating an expression based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-an-expression-based-on-a-variable/m-p/494402#M184943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gurus,&lt;/P&gt;&lt;P&gt;I'm new into the QlikView world, so I need some help. I want to create into a straight table a new expression like this one&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;case when CR_COD_CURRENCY_SAP = 'EUR' then Act Price Material EUR&lt;BR /&gt;when CR_COD_CURRENCY_SAP = 'USD' then Act Price Material USD&lt;BR /&gt;when CR_COD_CURRENCY_SAP = 'LOCAL' then Act Price Material LOCAL&lt;BR /&gt;END &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where CR_COD_CURRENCY_SAP is a dimension and Act Price Material EUR, Act Price Material USD, Act Price Material LOCAL are variables.&lt;BR /&gt;How can I translate this into QV language?&lt;/P&gt;&lt;P&gt;Thank you in advance,&lt;BR /&gt;Cristina&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 14:52:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-an-expression-based-on-a-variable/m-p/494402#M184943</guid>
      <dc:creator />
      <dc:date>2013-09-06T14:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an expression based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-an-expression-based-on-a-variable/m-p/494403#M184944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&lt;/P&gt;&lt;P&gt;=pick(&lt;/P&gt;&lt;P&gt;match(CR_COD_CURRENCY_SAP, 'EUR', 'USD', 'LOCAL'),&lt;/P&gt;&lt;P&gt;ActPriceMaterialEUR,&lt;/P&gt;&lt;P&gt;ActPriceMaterialUSD,&lt;/P&gt;&lt;P&gt;ActPriceMaterialLOCAL&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 14:57:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-an-expression-based-on-a-variable/m-p/494403#M184944</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-09-06T14:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: Creating an expression based on a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-an-expression-based-on-a-variable/m-p/494404#M184945</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your quickly reply, but the syntax is not correct. I modified it like this in order to get Expression OK:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;pick&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;match&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;CR_COD_CURRENCY_SAP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 'EUR', 'USD', 'LOCAL'),&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(Act Price Material EUR)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(Act Price Material USD)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(Act Price Material Local)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; but it doesn't work, the column is empty.&lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Sep 2013 15:09:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-an-expression-based-on-a-variable/m-p/494404#M184945</guid>
      <dc:creator />
      <dc:date>2013-09-06T15:09:13Z</dc:date>
    </item>
  </channel>
</rss>

