<?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 Getting frequency from data in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237279#M88356</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you are,&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Id, Data&lt;BR /&gt; 1, "2,5"&lt;BR /&gt; 2, "4,8"&lt;BR /&gt; 3, "1,9"&lt;BR /&gt; 4, "11,3"&lt;BR /&gt; 5, "23,8"&lt;BR /&gt; 6, "6,9"&lt;BR /&gt; 7, "21,4"&lt;BR /&gt; 8, "17,3"&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cat:&lt;BR /&gt;Load&lt;BR /&gt; Id,&lt;BR /&gt; If (Data &amp;lt;3, 'category 1',&lt;BR /&gt; If (Data &amp;lt;9 and Data &amp;gt;= 3, 'category 2',&lt;BR /&gt; If (Data &amp;gt;= 9 and Data &amp;lt;30, 'category 3', 'category 4'))) as Category&lt;BR /&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Jan 2011 11:35:32 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-01-03T11:35:32Z</dc:date>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237274#M88351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In the attached sample data need frequency of the categories.&lt;/P&gt;&lt;P&gt;The category definition is in the "category" worksheet of attached file. Need to calculate number of records in in each category from the data column.&lt;/P&gt;&lt;P&gt;Tried with Count function but it is executing only once.&lt;/P&gt;&lt;P&gt;Please provide some suggestion.[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/5355.Sample1.xls:550:0]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 08:30:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237274#M88351</guid>
      <dc:creator />
      <dc:date>2011-01-03T08:30:52Z</dc:date>
    </item>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237275#M88352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please see the attached example.&lt;/P&gt;&lt;P&gt;Hope it´s what you are looking for.&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 10:36:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237275#M88352</guid>
      <dc:creator />
      <dc:date>2011-01-03T10:36:43Z</dc:date>
    </item>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237276#M88353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You could do it by adding the category as an extra field in your table while loading the data.&lt;/P&gt;&lt;P&gt;See attached file for what i mean.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yves.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EDIT: as i cannot upload my example file, here is the script:&lt;/P&gt;&lt;P&gt;EDIT2: managed to upload the example with IE&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 10:42:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237276#M88353</guid>
      <dc:creator />
      <dc:date>2011-01-03T10:42:08Z</dc:date>
    </item>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237277#M88354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please copy paste your code . As I'm using personal edition can't open your file(s).&lt;/P&gt;&lt;P&gt;Thanks a lot for your support in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 11:16:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237277#M88354</guid>
      <dc:creator />
      <dc:date>2011-01-03T11:16:32Z</dc:date>
    </item>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237278#M88355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If (Data &amp;lt;3, 'category 1',&lt;BR /&gt; If (Data &amp;lt;9 and Data &amp;gt;= 3, 'category 2',&lt;BR /&gt; If (Data &amp;gt;= 9 and Data &amp;lt;30, 'category 3', 'category 4'))) as Category&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 11:25:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237278#M88355</guid>
      <dc:creator>suniljain</dc:creator>
      <dc:date>2011-01-03T11:25:38Z</dc:date>
    </item>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237279#M88356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here you are,&lt;/P&gt;&lt;P&gt;Temp:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; Id, Data&lt;BR /&gt; 1, "2,5"&lt;BR /&gt; 2, "4,8"&lt;BR /&gt; 3, "1,9"&lt;BR /&gt; 4, "11,3"&lt;BR /&gt; 5, "23,8"&lt;BR /&gt; 6, "6,9"&lt;BR /&gt; 7, "21,4"&lt;BR /&gt; 8, "17,3"&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Cat:&lt;BR /&gt;Load&lt;BR /&gt; Id,&lt;BR /&gt; If (Data &amp;lt;3, 'category 1',&lt;BR /&gt; If (Data &amp;lt;9 and Data &amp;gt;= 3, 'category 2',&lt;BR /&gt; If (Data &amp;gt;= 9 and Data &amp;lt;30, 'category 3', 'category 4'))) as Category&lt;BR /&gt;Resident Temp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 11:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237279#M88356</guid>
      <dc:creator />
      <dc:date>2011-01-03T11:35:32Z</dc:date>
    </item>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237280#M88357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the update but actually I'm looking for the num of occurances of "category 1" , category 2 e.t.c .&lt;/P&gt;&lt;P&gt;Means how many data belongs to diferent category - say 3 occurances of cat 1, 4 of cat2 , 2 of cat3 and 1 of cat4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 12:05:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237280#M88357</guid>
      <dc:creator />
      <dc:date>2011-01-03T12:05:14Z</dc:date>
    </item>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237281#M88358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;please put the LOAD statements in your script editor.&lt;/P&gt;&lt;P&gt;Next create the charts and you will get what you want (see the screen schots).&lt;/P&gt;&lt;P&gt;Rainer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 14:01:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237281#M88358</guid>
      <dc:creator />
      <dc:date>2011-01-03T14:01:48Z</dc:date>
    </item>
    <item>
      <title>Getting frequency from data</title>
      <link>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237282#M88359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DATA:&lt;BR /&gt;LOAD&lt;BR /&gt;Data,&lt;BR /&gt;if( Data &amp;lt; 3,&lt;BR /&gt; 'Category 1',&lt;BR /&gt; if( Data &amp;lt; 9,&lt;BR /&gt; 'Category 2',&lt;BR /&gt; if( Data &amp;lt; 30,&lt;BR /&gt; 'Category 3',&lt;BR /&gt; 'Invalid'&lt;BR /&gt; )&lt;BR /&gt; )&lt;BR /&gt; ) as Category,&lt;BR /&gt;1 as Counter&lt;BR /&gt;FROM[5355.Sample1.xls](biff, embedded labels, table is data$);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That's the code I used. Result is the same as Rainer, only with this, you'll only have 1 table.&lt;/P&gt;&lt;P&gt;then create a table with 'Category' as Dimension and 'sum(Counter)' as expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Yves.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Jan 2011 17:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Getting-frequency-from-data/m-p/237282#M88359</guid>
      <dc:creator />
      <dc:date>2011-01-03T17:09:55Z</dc:date>
    </item>
  </channel>
</rss>

