<?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: Count of Mode in Straight Table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43963#M788802</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp; my qlik license is over, that's why asking for sample data.&lt;/P&gt;&lt;P&gt;Else i'll rep tomorrow &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 18 Feb 2018 02:12:55 GMT</pubDate>
    <dc:creator>shiveshsingh</dc:creator>
    <dc:date>2018-02-18T02:12:55Z</dc:date>
    <item>
      <title>Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43957#M788796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am displaying data in a straight table.&amp;nbsp; I want to display the 'Mode' (most frequent occurrence) in one column and then the count or number of times that mode value has occurred in the next column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the mode, but I can't figure out how to calculate the count of the mode value... any help would be greatly appreciated.&amp;nbsp; Please see a sample data set attached.&amp;nbsp; You can see a couple of my attempts to calculate the mode within the straight table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Noelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43957#M788796</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43958#M788797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you want to see count of mode in one column?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 01:52:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43958#M788797</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-02-18T01:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43959#M788798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivesh,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Thanks for the reply.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, I want to determine how many times the mode value occurred, and place that count in a column in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Noelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 01:55:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43959#M788798</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-18T01:55:49Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43960#M788799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you share the sample data please?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 02:00:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43960#M788799</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-02-18T02:00:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43961#M788800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For example, in the sample data set I provided, for vehicle 2017 V7 the most frequent complaint (or mode) is 'air bag' and this complaint occurred 5 times.&amp;nbsp; So this 2016 V7 row should say '5' in the Count of Mode column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Noelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 02:01:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43961#M788800</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-18T02:01:44Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43962#M788801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The data is included in the qvw file attached in the original note.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Noelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 02:02:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43962#M788801</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-18T02:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43963#M788802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/sad.png" /&gt;&amp;nbsp; my qlik license is over, that's why asking for sample data.&lt;/P&gt;&lt;P&gt;Else i'll rep tomorrow &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 02:12:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43963#M788802</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-02-18T02:12:55Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43964#M788803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh sure - here it is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Sample_Dataset:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Load * inline&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Model_Year, Model, NHTSA_Component, VOQ_Date&lt;/P&gt;&lt;P&gt;2012, V1, Air Bag, 20180101&lt;/P&gt;&lt;P&gt;2012, V2, Electrical, 20180201&lt;/P&gt;&lt;P&gt;2013, V3, Other, 20180101&lt;/P&gt;&lt;P&gt;2013, V3, Air Bag, 20180201&lt;/P&gt;&lt;P&gt;2014, V4, Steering, 20180401&lt;/P&gt;&lt;P&gt;2014, V1, Air Bag, 20180301&lt;/P&gt;&lt;P&gt;2015, V5, Other, 20180101&lt;/P&gt;&lt;P&gt;2015, V5, Other, 20180201&lt;/P&gt;&lt;P&gt;2015, V5, Other, 20180501&lt;/P&gt;&lt;P&gt;2015, V6, Electrical, 20180401&lt;/P&gt;&lt;P&gt;2016, V7, Air Bag, 20180101&lt;/P&gt;&lt;P&gt;2016, V7, Air Bag, 20180201&lt;/P&gt;&lt;P&gt;2016, V7, Air Bag, 20180301&lt;/P&gt;&lt;P&gt;2016, V7, Air Bag, 20180401&lt;/P&gt;&lt;P&gt;2016, V7, Air Bag, 20180501&lt;/P&gt;&lt;P&gt;2016, V7, Steering, 20180101&lt;/P&gt;&lt;P&gt;2016, V7, Steering, 20180501&lt;/P&gt;&lt;P&gt;2016, V7, Other, 20180201&lt;/P&gt;&lt;P&gt;2016, V7, Other, 20180401&lt;/P&gt;&lt;P&gt;2016, V7, Electrical, 20180501&lt;/P&gt;&lt;P&gt;2016, V4, Too Cool, 20180101&lt;/P&gt;&lt;P&gt;2016, V4, Too Cool, 20180301&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample_2:&lt;/P&gt;&lt;P&gt;LOAD Model_Year, Model, NHTSA_Component, left(VOQ_Date, Len(VOQ_Date)-2) as New_VOQ_Date&lt;/P&gt;&lt;P&gt;Resident Sample_Dataset;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here are a couple of methods i tried - neither worked.&lt;/P&gt;&lt;P&gt;=max(aggr(count(VOQ_Date), New_VOQ_Date))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Mode( TOTAL Aggr( Count({&amp;lt;NHTSA_Component&amp;gt;}, Model_Year, Model))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Noelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 02:19:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43964#M788803</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-18T02:19:22Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43965#M788804</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=aggr(max(aggr(count(Model),Model_Year,NHTSA_Component)),Model_Year)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 02:52:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43965#M788804</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-02-18T02:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43966#M788805</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 02:54:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43966#M788805</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-02-18T02:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43967#M788806</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the suggestion, Shivesh, but unfortunately that is not providing the answer I expected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact, I now see that even my Mode function (=mode(NHTSA_Component)) is not displaying the right answers.&amp;nbsp; 2016 V7 should have a Mode of 'Air Bag' since that value occurs the most times (5), and it's displaying as '-'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions for determining the Mode or counting the occurrence of the (Mode)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 703px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl69" height="48" width="122"&gt;Rank - Most Complaints&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="137"&gt;Model_Year&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="98"&gt;Model&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="113"&gt;Count Complaints&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="98"&gt;Mode&lt;/TD&gt;&lt;TD class="xl69" style="border-left: none;" width="135"&gt;=aggr(max(aggr(count(Model),Model_Year,NHTSA_Component)),Model_Year)&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;1.5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Air Bag&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;1.5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2012&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V2&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Electrical&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2013&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V3&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;1.5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V1&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Air Bag&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;1.5&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2014&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V4&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Steering&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V5&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Other&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2015&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V6&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;Electrical&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V7&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="25" style="border-top: none;"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2016&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;V4&lt;/TD&gt;&lt;TD class="xl67" style="border-top: none; border-left: none;"&gt;3&lt;/TD&gt;&lt;TD class="xl68" style="border-top: none; border-left: none;"&gt;-&lt;/TD&gt;&lt;TD class="xl66" style="border-top: none; border-left: none;"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks - Noelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 18 Feb 2018 16:56:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43967#M788806</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-18T16:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43968#M788807</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;Please remove synthetic key also from your model.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;drop table Sample_Dataset&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in place of VOQ_Date put New_VOQ_Date in charts&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE bgcolor="#ffffff" border="1" cellpadding="2" cellspacing="0" style="font-size: 9pt;"&gt;&lt;TBODY&gt;&lt;TR bgcolor="#f5f5f5"&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Rank - Most Complaints&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Model_Year&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Model&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Count Complaints&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Mode&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;Trend Chart&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;TH nowrap="nowrap"&gt;&lt;SPAN style="color: #363636;"&gt;&lt;STRONG&gt;aggr(max(aggr(count(Model),Model_Year,NHTSA_Component)),Model_Year)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt; &lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1-2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2012&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Air Bag&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1-2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2012&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Electrical&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2013&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt; &lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1-2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Air Bag&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1-2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2014&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Steering&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V5&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Other&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;3&lt;/SPAN&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2015&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V6&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Electrical&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Too Cool&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&amp;nbsp; &lt;/TD&gt;&lt;/TR&gt;&lt;TR bgcolor="#ffffff"&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;2016&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;V7&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;10&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;Air Bag&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;&amp;lt;&amp;lt;image&amp;gt;&amp;gt;&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD bgcolor="#ffffff"&gt;&lt;SPAN style="color: #363636;"&gt;5&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 07:25:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43968#M788807</guid>
      <dc:creator>shiveshsingh</dc:creator>
      <dc:date>2018-02-19T07:25:08Z</dc:date>
    </item>
    <item>
      <title>Re: Count of Mode in Straight Table</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43969#M788808</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Shivesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the suggestions.&amp;nbsp; After trying a few things i got this to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Added new field in script, Mode_NC:&lt;/P&gt;&lt;P&gt;TableJoin:&lt;/P&gt;&lt;P&gt;INNER JOIN (Table1)&lt;/P&gt;&lt;P&gt;Table2:&lt;/P&gt;&lt;P&gt;LOAD Model_Year, Model, Mode(NHTSA_Component) as Mode_NC&lt;/P&gt;&lt;P&gt;Resident Table1&lt;/P&gt;&lt;P&gt;Group By Model_Year, Model;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Added this expression to my straight table to calculate the % representation of the Mode complaint:&lt;/P&gt;&lt;P&gt;= aggr ( sum( if ( [Mode_NC] = [NHTSA_Component], 1, 0)), Model_Year, Model) / aggr (count ([NHTSA_Component] ), Model_Year , Model )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;P&gt;Noelle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 19 Feb 2018 14:13:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-in-Straight-Table/m-p/43969#M788808</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-02-19T14:13:14Z</dc:date>
    </item>
  </channel>
</rss>

