<?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 mode function question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240815#M91284</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sry,&lt;/P&gt;&lt;P&gt;Unable to attch the file.&lt;/P&gt;&lt;P&gt;//Loading the Values&lt;BR /&gt;[MODE1]:&lt;BR /&gt;LOAD ID,&lt;BR /&gt; cal&lt;BR /&gt;FROM&lt;BR /&gt;[Mode value.xls]&lt;BR /&gt;(biff, embedded labels, table is Sheet1$);&lt;BR /&gt;//Counting the occurence of each value by grouping the ID and Cal&lt;BR /&gt;MODE2:&lt;BR /&gt;LOAD ID,&lt;BR /&gt;count(ID) as occurence,&lt;BR /&gt;only(cal) as [cal of max]&lt;BR /&gt;resident [MODE1] group by ID,cal;&lt;/P&gt;&lt;P&gt;//Here calculating mode&lt;BR /&gt;left join&lt;BR /&gt;LOAD ID,&lt;BR /&gt;max(occurence) as [Max occurence],&lt;BR /&gt;MIN([cal of max]) as Value&lt;BR /&gt;resident MODE2 group by ID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 07 Mar 2011 11:34:39 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-03-07T11:34:39Z</dc:date>
    <item>
      <title>mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240811#M91280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I am using the mode function in order to find the most occurring value over a few dimensions (in a chart).&lt;/P&gt;&lt;P&gt;The problem is when different values are occurring the same amount of times, then null is retrieved.&lt;/P&gt;&lt;P&gt;What i want is then to have qlikview select the minimum value of the values that are occuring the same amount of times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;Christer Ekblad&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2011 18:22:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240811#M91280</guid>
      <dc:creator />
      <dc:date>2011-03-06T18:22:07Z</dc:date>
    </item>
    <item>
      <title>mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240812#M91281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you show your example a qvw ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Mar 2011 21:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240812#M91281</guid>
      <dc:creator>francisvandergr</dc:creator>
      <dc:date>2011-03-06T21:33:57Z</dc:date>
    </item>
    <item>
      <title>mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240813#M91282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Here is the sample Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width:112pt;border-collapse:collapse;" width="149"&gt;&lt;COLGROUP&gt;&lt;COL style="width:64pt;mso-width-source:userset;mso-width-alt:3108;" width="85" /&gt;&lt;COL style="width:48pt;" width="64" /&gt;&lt;/COLGROUP&gt;&lt;TBODY&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD height="17" style="width:64pt;height:12.75pt;background-color:transparent;border:#d4d0c8;" width="85"&gt;ID&lt;/TD&gt;&lt;TD style="width:48pt;background-color:transparent;border:#d4d0c8;" width="64"&gt;cal&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;24&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;1&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;34&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;14&lt;/TD&gt;&lt;/TR&gt;&lt;TR style="height:12.75pt;"&gt;&lt;TD class="xl24" height="17" style="height:12.75pt;background-color:transparent;border:#d4d0c8;"&gt;2&lt;/TD&gt;&lt;TD align="right" style="background-color:transparent;border:#d4d0c8;"&gt;15&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;So,In the attachment, first i m counting the occurence of each value,then in next load i m calucating the MODE as our wish.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 11:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240813#M91282</guid>
      <dc:creator />
      <dc:date>2011-03-07T11:25:17Z</dc:date>
    </item>
    <item>
      <title>mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240814#M91283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sry,Here is the attachment&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 11:30:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240814#M91283</guid>
      <dc:creator />
      <dc:date>2011-03-07T11:30:35Z</dc:date>
    </item>
    <item>
      <title>mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240815#M91284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sry,&lt;/P&gt;&lt;P&gt;Unable to attch the file.&lt;/P&gt;&lt;P&gt;//Loading the Values&lt;BR /&gt;[MODE1]:&lt;BR /&gt;LOAD ID,&lt;BR /&gt; cal&lt;BR /&gt;FROM&lt;BR /&gt;[Mode value.xls]&lt;BR /&gt;(biff, embedded labels, table is Sheet1$);&lt;BR /&gt;//Counting the occurence of each value by grouping the ID and Cal&lt;BR /&gt;MODE2:&lt;BR /&gt;LOAD ID,&lt;BR /&gt;count(ID) as occurence,&lt;BR /&gt;only(cal) as [cal of max]&lt;BR /&gt;resident [MODE1] group by ID,cal;&lt;/P&gt;&lt;P&gt;//Here calculating mode&lt;BR /&gt;left join&lt;BR /&gt;LOAD ID,&lt;BR /&gt;max(occurence) as [Max occurence],&lt;BR /&gt;MIN([cal of max]) as Value&lt;BR /&gt;resident MODE2 group by ID;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 11:34:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240815#M91284</guid>
      <dc:creator />
      <dc:date>2011-03-07T11:34:39Z</dc:date>
    </item>
    <item>
      <title>mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240816#M91285</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-size:12px;margin:8px;color:#000000;font-family:Arial, Helvetica, sans-serif;background-color:#ffffff;background-origin:initial;background-clip:initial;"&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is an example. I would like to do this in a graph (table) and not in the script if possible.&lt;/P&gt;&lt;P&gt;The problem is that for Sweden, QV cannot display the mode(Quantity) beacuse 49 and 50 occurrs the same amount of times. What I then would like is QV to show 49. Hence, the minimum of the two.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Christer&lt;/P&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Mar 2011 13:08:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240816#M91285</guid>
      <dc:creator />
      <dc:date>2011-03-07T13:08:16Z</dc:date>
    </item>
    <item>
      <title>mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240817#M91286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;anyone?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Mar 2011 10:01:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240817#M91286</guid>
      <dc:creator />
      <dc:date>2011-03-11T10:01:37Z</dc:date>
    </item>
    <item>
      <title>mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240818#M91287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Shot in the dark, but try this in an expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(isnull(mode(cal)) = -1,min(cal),mode(cal))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jun 2012 19:55:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240818#M91287</guid>
      <dc:creator />
      <dc:date>2012-06-07T19:55:46Z</dc:date>
    </item>
    <item>
      <title>Re: mode function question</title>
      <link>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240819#M91288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i'm having the same problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Dec 2015 15:58:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/mode-function-question/m-p/240819#M91288</guid>
      <dc:creator />
      <dc:date>2015-12-16T15:58:10Z</dc:date>
    </item>
  </channel>
</rss>

