<?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: Most common value in chart expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883446#M308092</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I think you might run into issues when you don't have a single #1 branch per customer, a situation where QV's FirstSortedValue() function will return NULL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;You can try to break the ties by manipulating the sort order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Have a look at this sample to see what I mean (you'll need to reload some times to see the ties showing up).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 13 Jun 2015 09:30:20 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2015-06-13T09:30:20Z</dc:date>
    <item>
      <title>Most common value in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883442#M308088</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all, I'm a bit stuck with a chart expression. I want to show the most common branch that a customer has purchased from. If I select a specific customer account number (this is my dimension) then this expression works fine, but It will not work if I don't select a customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 12pt;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;(&lt;SPAN style="color: #800000;"&gt;UNIT.BRANCH_NAME&lt;/SPAN&gt;, -&lt;SPAN style="color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="color: #800000;"&gt;UNIT.TOTALSOLD&lt;/SPAN&gt;), &lt;SPAN style="color: #800000;"&gt;UNIT.BRANCH_NAME&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;),1) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I'd be very grateful for any help, thanks, Simon&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 15:58:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883442#M308088</guid>
      <dc:creator />
      <dc:date>2015-06-12T15:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Most common value in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883443#M308089</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Mode( aggr( &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;UNIT.BRANCH_NAME&lt;/SPAN&gt;, -&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;UNIT.TOTALSOLD&lt;/SPAN&gt;),&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;UNIT.BRANCH_NAME&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;,[Customer account])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;)&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:12:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883443#M308089</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-12T16:12:00Z</dc:date>
    </item>
    <item>
      <title>Re: Most common value in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883444#M308090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl, thanks for your reply, unfortunately that returns null values too&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:27:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883444#M308090</guid>
      <dc:creator />
      <dc:date>2015-06-12T16:27:53Z</dc:date>
    </item>
    <item>
      <title>Re: Most common value in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883445#M308091</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really what you want to achieve, could you upload a small sample QVW or describe your chart and data a bit more detailed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try also adding the chart dimension to your aggr() dimensions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #0000ff;"&gt;firstsortedvalue&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;UNIT.BRANCH_NAME&lt;/SPAN&gt;, -&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;Aggr&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;count&lt;/SPAN&gt;(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;UNIT.TOTALSOLD&lt;/SPAN&gt;),Customer, &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;UNIT.BRANCH_NAME&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;),1)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Jun 2015 16:32:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883445#M308091</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-12T16:32:07Z</dc:date>
    </item>
    <item>
      <title>Re: Most common value in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883446#M308092</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;I think you might run into issues when you don't have a single #1 branch per customer, a situation where QV's FirstSortedValue() function will return NULL.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;You can try to break the ties by manipulating the sort order.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Have a look at this sample to see what I mean (you'll need to reload some times to see the ties showing up).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2015 09:30:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883446#M308092</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2015-06-13T09:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: Most common value in chart expression</title>
      <link>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883447#M308093</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi swuehl, adding chart dimension fixed this, many thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 15 Jun 2015 08:07:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Most-common-value-in-chart-expression/m-p/883447#M308093</guid>
      <dc:creator />
      <dc:date>2015-06-15T08:07:13Z</dc:date>
    </item>
  </channel>
</rss>

