<?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 Dynamic expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dynamic-expression/m-p/219148#M72194</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Very simpel written:&lt;/P&gt;&lt;P&gt;In the very same column, if Category is 'Dogfood' I want to calculate Sales_index_vs_last_year. If Category is 'Furniture' I want to calculate Sales_Index_vs_budget. (Category is just an exampel - the file and problem is about economics).&lt;/P&gt;&lt;P&gt;With a very big dataset I do not want to use macro, If, Pick or Multiplication.&lt;/P&gt;&lt;P&gt;I found almost same issue in &lt;A href="https://community.qlik.com/forums/t/25527.aspx" target="_blank"&gt;http://community.qlik.com/forums/t/25527.aspx&lt;/A&gt; but that did not solve my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached file, I have a deeper explanation, and a solution that does not fully work. Here the expression is defined in a table.&lt;/P&gt;&lt;P&gt;Any ideas or solutions?&lt;/P&gt;&lt;P&gt;Best regards, Jerrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 09 Jul 2010 12:41:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2010-07-09T12:41:53Z</dc:date>
    <item>
      <title>Dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-expression/m-p/219148#M72194</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Very simpel written:&lt;/P&gt;&lt;P&gt;In the very same column, if Category is 'Dogfood' I want to calculate Sales_index_vs_last_year. If Category is 'Furniture' I want to calculate Sales_Index_vs_budget. (Category is just an exampel - the file and problem is about economics).&lt;/P&gt;&lt;P&gt;With a very big dataset I do not want to use macro, If, Pick or Multiplication.&lt;/P&gt;&lt;P&gt;I found almost same issue in &lt;A href="https://community.qlik.com/forums/t/25527.aspx" target="_blank"&gt;http://community.qlik.com/forums/t/25527.aspx&lt;/A&gt; but that did not solve my case.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the attached file, I have a deeper explanation, and a solution that does not fully work. Here the expression is defined in a table.&lt;/P&gt;&lt;P&gt;Any ideas or solutions?&lt;/P&gt;&lt;P&gt;Best regards, Jerrik&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 12:41:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-expression/m-p/219148#M72194</guid>
      <dc:creator />
      <dc:date>2010-07-09T12:41:53Z</dc:date>
    </item>
    <item>
      <title>Dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-expression/m-p/219149#M72195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's not possible to do this by dollar sign expression when you have more than one value for the field at a time. You have to use IF condition. See my example in attachment. Your expression is working if you pick just one value from the field SalesLastYear_Budget.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 18:02:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-expression/m-p/219149#M72195</guid>
      <dc:creator />
      <dc:date>2010-07-09T18:02:05Z</dc:date>
    </item>
    <item>
      <title>Dynamic expression</title>
      <link>https://community.qlik.com/t5/QlikView/Dynamic-expression/m-p/219150#M72196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thx for your reply. I know this, and I have tried the Pick command as well. Both work, but it consumes twice og three times as much CPU as the simple calculation.&lt;/P&gt;&lt;P&gt;My conclusion is that the validation is very expensive, and since my dataset is plus 100 mill rows, performance is an issue.&lt;/P&gt;&lt;P&gt;Actually I think that there is just one expression per row in the table, since the DriftRapNr is showed in the table. If I just could get the software to 'realise' that....&lt;/P&gt;&lt;P&gt;It is not a criteria itself, to the expression is defined in a table. But I see it as a possibility to avoid validating which expression to use.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Jul 2010 22:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dynamic-expression/m-p/219150#M72196</guid>
      <dc:creator />
      <dc:date>2010-07-09T22:00:24Z</dc:date>
    </item>
  </channel>
</rss>

