<?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 Count of Mode of 3 out of 4 dimensions in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-of-3-out-of-4-dimensions/m-p/2507441#M1226438</link>
    <description>&lt;P&gt;I have 4 Dimensions in a table&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction] and&amp;nbsp;[TDW Amz Reg] (the field [Full Legal Entity Name] can be ignore as it's the long name of&amp;nbsp;[TDW Legal Entity Code]). See screenshot.&lt;/P&gt;
&lt;P&gt;I am trying to create some Measures about&amp;nbsp;[TDW Amz Reg] based on the following 3 dimensions&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction]. For example the (most frequent) Mode&amp;nbsp;[TDW Amz Reg] for&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction] and the Count of the Distinct&amp;nbsp;[TDW Amz Reg] by&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction]. i.e.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=aggr( Mode([TDW Amz Reg]), [Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Count(Distinct TOTAL &amp;lt;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction]&amp;gt; [TDW Amz Reg])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far so good.&amp;nbsp; Now I want to count of how frequently the Mode [TDW Amz Reg] per&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction] appears. I'm struggling because I don't think Aggr will work with having the&amp;nbsp;[TDW Amz Reg] as a column.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Count Mode.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177895iA6230B423EA74740/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Count Mode.png" alt="Count Mode.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2025 15:48:30 GMT</pubDate>
    <dc:creator>shane_spencer</dc:creator>
    <dc:date>2025-02-26T15:48:30Z</dc:date>
    <item>
      <title>Count of Mode of 3 out of 4 dimensions</title>
      <link>https://community.qlik.com/t5/QlikView/Count-of-Mode-of-3-out-of-4-dimensions/m-p/2507441#M1226438</link>
      <description>&lt;P&gt;I have 4 Dimensions in a table&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction] and&amp;nbsp;[TDW Amz Reg] (the field [Full Legal Entity Name] can be ignore as it's the long name of&amp;nbsp;[TDW Legal Entity Code]). See screenshot.&lt;/P&gt;
&lt;P&gt;I am trying to create some Measures about&amp;nbsp;[TDW Amz Reg] based on the following 3 dimensions&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction]. For example the (most frequent) Mode&amp;nbsp;[TDW Amz Reg] for&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction] and the Count of the Distinct&amp;nbsp;[TDW Amz Reg] by&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction]. i.e.&amp;nbsp;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;=aggr( Mode([TDW Amz Reg]), [Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction])&lt;/LI-CODE&gt;&lt;LI-CODE lang="markup"&gt;Count(Distinct TOTAL &amp;lt;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction]&amp;gt; [TDW Amz Reg])&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;So far so good.&amp;nbsp; Now I want to count of how frequently the Mode [TDW Amz Reg] per&amp;nbsp;[Lock Local Period], [TDW Legal Entity Code], [TDW Amz Reg Jurisdiction] appears. I'm struggling because I don't think Aggr will work with having the&amp;nbsp;[TDW Amz Reg] as a column.&amp;nbsp; &lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Count Mode.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/177895iA6230B423EA74740/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Count Mode.png" alt="Count Mode.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2025 15:48:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Count-of-Mode-of-3-out-of-4-dimensions/m-p/2507441#M1226438</guid>
      <dc:creator>shane_spencer</dc:creator>
      <dc:date>2025-02-26T15:48:30Z</dc:date>
    </item>
  </channel>
</rss>

