<?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 QV Data modeling in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178822#M45896</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CASE Statement in the query itself.&lt;/P&gt;&lt;P&gt;like CASE WHEN Weight &amp;gt;0 and weight &amp;lt; 1 then '&amp;lt; 1kg'&lt;/P&gt;&lt;P&gt;WHEN Weight &amp;gt;= 1 and weight &amp;lt; 2 then '1-2 kg' . etc&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Dec 2009 15:32:34 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-12-08T15:32:34Z</dc:date>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178821#M45895</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I need to create a calculated dimension or table (Weight Category) based on thousand and thousand different data in the weight table.&lt;/P&gt;&lt;P&gt;I got million of rows in the weight table, and the weight data goes fromt 0.1 till 9999. I would like to have a consolidated table like weight category 0&amp;gt;1kg, 1-2kg, 2-5kg, 5-10kg, 10-50kg, &amp;gt;50kg that can be use as dimension.&lt;/P&gt;&lt;P&gt;If you could please help me with the above, it would be most appreciated.&lt;/P&gt;&lt;P&gt;Many thanks,&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 15:20:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178821#M45895</guid>
      <dc:creator>guya</dc:creator>
      <dc:date>2009-12-08T15:20:29Z</dc:date>
    </item>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178822#M45896</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CASE Statement in the query itself.&lt;/P&gt;&lt;P&gt;like CASE WHEN Weight &amp;gt;0 and weight &amp;lt; 1 then '&amp;lt; 1kg'&lt;/P&gt;&lt;P&gt;WHEN Weight &amp;gt;= 1 and weight &amp;lt; 2 then '1-2 kg' . etc&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 15:32:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178822#M45896</guid>
      <dc:creator />
      <dc:date>2009-12-08T15:32:34Z</dc:date>
    </item>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178823#M45897</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Raghu,&lt;/P&gt;&lt;P&gt;Do I need to include it in the script when loading the table?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 18:33:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178823#M45897</guid>
      <dc:creator>guya</dc:creator>
      <dc:date>2009-12-08T18:33:28Z</dc:date>
    </item>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178824#M45898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 ways to do&lt;/P&gt;&lt;P&gt;1) Include the CASE statement in the query itself&lt;/P&gt;&lt;P&gt;2) Load all the data, and handle in the expression using IF statement. This is costly and reduce the performance of Qlikvew.&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Dec 2009 18:54:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178824#M45898</guid>
      <dc:creator />
      <dc:date>2009-12-08T18:54:34Z</dc:date>
    </item>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178825#M45899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please provide me with a concret example?&lt;/P&gt;&lt;P&gt;Thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2009 23:02:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178825#M45899</guid>
      <dc:creator>guya</dc:creator>
      <dc:date>2009-12-16T23:02:34Z</dc:date>
    </item>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178826#M45900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Method 1:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD *&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; A&lt;BR /&gt;,B&lt;BR /&gt;,C&lt;BR /&gt;,Weight&lt;BR /&gt;,CASE WHEN Weight &amp;lt;= 1 THEN '0-1kg'&lt;BR /&gt; WHEN Weight &amp;lt;= 2 THEN '1-2kg'&lt;BR /&gt; WHEN Weight &amp;lt;= 5 THEN '2-5kg'&lt;BR /&gt; WHEN Weight &amp;lt;= 10 THEN '5-10kg'&lt;BR /&gt; WHEN Weight &amp;lt;= 50 THEN '10-50kg'&lt;BR /&gt; ELSE '&amp;gt;50kg' END AS Weight_Category&lt;BR /&gt;FROM your database&lt;BR /&gt;WHERE your conditions&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;Method 2:&lt;/P&gt;&lt;P style="padding-left:30px;"&gt;LOAD *&lt;BR /&gt;,if(Weight &amp;lt;= 1, '0-1kg'&lt;BR /&gt;,if(Weight &amp;lt;= 2, '1-2kg'&lt;BR /&gt;,if(Weight &amp;lt;= 5, '2-5kg'&lt;BR /&gt;,if(Weight &amp;lt;= 10, '5-10kg'&lt;BR /&gt;,if(Weight &amp;lt;= 50,'10-50kg'&lt;BR /&gt; , '&amp;gt;50kg'))))) as Weight_Category&lt;BR /&gt;;&lt;BR /&gt;SQL SELECT&lt;BR /&gt; A&lt;BR /&gt;,B&lt;BR /&gt;,C&lt;BR /&gt;,Weight&lt;BR /&gt;FROM your database&lt;BR /&gt;WHERE your conditions&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;There are other methods as well, but those are probably the easiest to understand. (Edit: In our shop, we can much better afford to waste time on our QlikView server than in our DBMS, so most of this sort of manipulation is done in QlikView (method 2).)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 06:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178826#M45900</guid>
      <dc:creator>johnw</dc:creator>
      <dc:date>2009-12-17T06:38:38Z</dc:date>
    </item>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178827#M45901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;guy,&lt;/P&gt;&lt;P&gt;Look at John example. Example is a perfect one.&lt;/P&gt;&lt;P&gt;-Raghu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 12:41:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178827#M45901</guid>
      <dc:creator />
      <dc:date>2009-12-17T12:41:36Z</dc:date>
    </item>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178828#M45902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect!!! Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 13:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178828#M45902</guid>
      <dc:creator />
      <dc:date>2009-12-17T13:42:08Z</dc:date>
    </item>
    <item>
      <title>QV Data modeling</title>
      <link>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178829#M45903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Brillant ! - it's perfect&lt;/P&gt;&lt;P&gt;Thx you all.&lt;/P&gt;&lt;P&gt;Guy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2009 18:54:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/QV-Data-modeling/m-p/178829#M45903</guid>
      <dc:creator>guya</dc:creator>
      <dc:date>2009-12-17T18:54:57Z</dc:date>
    </item>
  </channel>
</rss>

