<?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 a Calculated Table in QlickView in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-Table-in-QlickView/m-p/850890#M1014647</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An interesting a good approach. Definite more elegant. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Apr 2015 17:22:25 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-17T17:22:25Z</dc:date>
    <item>
      <title>Creating a Calculated Table in QlickView</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-Table-in-QlickView/m-p/850888#M1014645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So what I have currently is a table with&amp;nbsp; 3 fields: Dates (detailed dates spanning over 5 years), Sale (spanning over 0-3000), Quantity (spanning 0-40).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I want is to create a table that has 5 fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field 1: Year&lt;/P&gt;&lt;P&gt;Field 2: Sales Lower Bound&lt;/P&gt;&lt;P&gt;Field 3: Sales Upper Bound&lt;/P&gt;&lt;P&gt;Field 4: Sum of sales (within the bounds for that year)&lt;/P&gt;&lt;P&gt;Field 5: Sum of Quantity (within the bounds for that year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where the bounds are predetermined to be 0, 25, 50, 100, 150, 200, 300, 500, 1000, 2000, 3000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for example if I want the line it will look like this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year = 2005&lt;/P&gt;&lt;P&gt;Sales Lower Bound = 0&lt;/P&gt;&lt;P&gt;Sales Upper Bound = 25&lt;/P&gt;&lt;P&gt;Sum of Sales = sum(if(Sale &amp;gt;= 0 and Sales &amp;lt; 25 and Year = 2005, Sale*Quantity, 0))&lt;/P&gt;&lt;P&gt;Sum of Quantity = sum(if(Sale &amp;gt;= 0 and Sales &amp;lt; 25 and Year = 2005, Quantity, 0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can create all (5x10=50) lines as separate 1 line tables and concatenate them after but there has to be a better way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Apr 2015 15:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-Table-in-QlickView/m-p/850888#M1014645</guid>
      <dc:creator />
      <dc:date>2015-04-16T15:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Calculated Table in QlickView</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-Table-in-QlickView/m-p/850889#M1014646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would suggest to make an inline table in your script that contains the limits of those bounds.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;Bounds:&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 18pt;"&gt;&lt;STRONG&gt;LOAD&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; * &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;INLINE&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt;[&lt;BR /&gt; BoundName, BeginBound, EndBound&lt;BR /&gt; 0-25, 0, 25&lt;BR /&gt; 25-50, 25, 50&lt;BR /&gt; 50-100, 50, 100&lt;BR /&gt; 100-150, 100, 150&lt;BR /&gt; 150+, 150&lt;BR /&gt; ]&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Make this list complete; I think you get the idea.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, do an interval match of this sales table with that bounds table.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;Left&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;JOIN&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; (YourSalesTable)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;IntervalMatch&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; (&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 18pt;"&gt;SalesResults&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;)&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="; color: #0000ff; font-size: 18pt;"&gt;&lt;STRONG&gt;Load&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; &lt;BR /&gt; &lt;SPAN style="color: #800000; font-size: 18pt;"&gt;BeginBound&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;,&lt;BR /&gt; &lt;SPAN style="color: #800000; font-size: 18pt;"&gt;EndBound&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 18pt;"&gt;Resident&lt;/SPAN&gt;&lt;SPAN style="font-size: 18pt;"&gt; Bounds;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now you have a Bounds dimension in your data model, you can use this as a dimension in your table to get the numbers you want.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 18pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 12:24:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-Table-in-QlickView/m-p/850889#M1014646</guid>
      <dc:creator>oknotsen</dc:creator>
      <dc:date>2015-04-17T12:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Creating a Calculated Table in QlickView</title>
      <link>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-Table-in-QlickView/m-p/850890#M1014647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;An interesting a good approach. Definite more elegant. Thank you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Apr 2015 17:22:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Creating-a-Calculated-Table-in-QlickView/m-p/850890#M1014647</guid>
      <dc:creator />
      <dc:date>2015-04-17T17:22:25Z</dc:date>
    </item>
  </channel>
</rss>

