<?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 Add expressions dynamically in a table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Add-expressions-dynamically-in-a-table/m-p/629532#M231104</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;To keep you in the loop, I have a table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 Dimension (Currency)&lt;/P&gt;&lt;P&gt;10 Expressions (Different kind of amounts)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating expressions to do some calculations agains that values per currencie (sum, deduct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is "to split 1 expression in severals(the number of splits is dinamically provided by a field) according to a related field with that amount, but just 1 of them".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: lets call "INCOME" one of that expressions, that is SUM(Income Amount), I need to be able to split this with a field "Income Type" in X different expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use dimensions because this don't apply to all the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for something that could add expressions dinamically with a trigger or macro after the load, but all solutions are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ginés.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2014 14:09:45 GMT</pubDate>
    <dc:creator>gines_rueda</dc:creator>
    <dc:date>2014-05-27T14:09:45Z</dc:date>
    <item>
      <title>Add expressions dynamically in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expressions-dynamically-in-a-table/m-p/629532#M231104</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;To keep you in the loop, I have a table with:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 Dimension (Currency)&lt;/P&gt;&lt;P&gt;10 Expressions (Different kind of amounts)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am creating expressions to do some calculations agains that values per currencie (sum, deduct)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I need is "to split 1 expression in severals(the number of splits is dinamically provided by a field) according to a related field with that amount, but just 1 of them".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example: lets call "INCOME" one of that expressions, that is SUM(Income Amount), I need to be able to split this with a field "Income Type" in X different expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can't use dimensions because this don't apply to all the expressions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was looking for something that could add expressions dinamically with a trigger or macro after the load, but all solutions are welcome.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know what you think.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ginés.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2014 14:09:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expressions-dynamically-in-a-table/m-p/629532#M231104</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-05-27T14:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: Add expressions dynamically in a table</title>
      <link>https://community.qlik.com/t5/QlikView/Add-expressions-dynamically-in-a-table/m-p/629533#M231105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only solution I have found for this is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1 - Create a field called &lt;EM&gt;Table Dimensions&lt;/EM&gt; that has the values known of the rows inserted inline and the ones I only can check from an extract. Something like this:&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;&amp;nbsp; Table Dimensions&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dimension known 1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Dimension known 2&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;OUTER JOIN&lt;/P&gt;&lt;P&gt;LOAD Distinct&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value AS [Table Dimensions]&lt;/P&gt;&lt;P&gt;;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2 - Then having in 1 field all the "Expressions" I want for my table, what I have done is the creation of a pivot table where as columns I have my Currency dimension, and for the rows I have this dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3 - Create only 1 expression with a huge switch case:&lt;BR /&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;pick(1+match(MyField,'Case 1','Case 2'),Default,Result1,Result2).&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;If you find a better way to do this, please let me know.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ginés.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 May 2014 14:11:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Add-expressions-dynamically-in-a-table/m-p/629533#M231105</guid>
      <dc:creator>gines_rueda</dc:creator>
      <dc:date>2014-05-28T14:11:26Z</dc:date>
    </item>
  </channel>
</rss>

