<?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: Assign value based on count in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956379#M962245</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is very helpful and close but not quite.&amp;nbsp; I think the issue is products are individual records rather than just a number on a record.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture_2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102965_Capture_2.PNG" style="height: 128px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Oct 2015 21:36:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2015-10-23T21:36:34Z</dc:date>
    <item>
      <title>Assign value based on count</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956377#M962243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have 3 dimensions: Accounts Locations Products An Account has multiple Locations, each with varying numbers of Products. I would like to flag the Location at each Account with the highest number of Products with "Primary".&amp;nbsp; Every other Location per Account would have an alternate flag "Secondary" Any ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 21:03:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956377#M962243</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-23T21:03:54Z</dc:date>
    </item>
    <item>
      <title>Re: Assign value based on count</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956378#M962244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jonathan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know your data so I am just guessing that you have numbers in Products dimension. If so, you can use Max(Total &amp;lt;Accounts&amp;gt; Products) function:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102964_Capture.PNG" style="height: 304px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 21:17:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956378#M962244</guid>
      <dc:creator>sinanozdemir</dc:creator>
      <dc:date>2015-10-23T21:17:27Z</dc:date>
    </item>
    <item>
      <title>Re: Assign value based on count</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956379#M962245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is very helpful and close but not quite.&amp;nbsp; I think the issue is products are individual records rather than just a number on a record.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture_2.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102965_Capture_2.PNG" style="height: 128px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 21:36:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956379#M962245</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-10-23T21:36:34Z</dc:date>
    </item>
    <item>
      <title>Re: Assign value based on count</title>
      <link>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956380#M962246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=If(Count(Product) = Max(TOTAL &amp;lt;Accounts, Location&amp;gt; Aggr(Count(Product), Accounts, Location, Product)), 'Primary Location', 'Secondary Location')&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/102969_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Oct 2015 23:07:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Assign-value-based-on-count/m-p/956380#M962246</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-10-23T23:07:37Z</dc:date>
    </item>
  </channel>
</rss>

