<?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: How to display most common value in a dimension? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923516#M76014</link>
    <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leonling_0-1651075302500.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78104i280EED4380688C23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leonling_0-1651075302500.png" alt="leonling_0-1651075302500.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All I see is this with that exact formula.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Apr 2022 16:01:52 GMT</pubDate>
    <dc:creator>QlikToFindOut</dc:creator>
    <dc:date>2022-04-27T16:01:52Z</dc:date>
    <item>
      <title>How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923493#M76010</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I am struggling a bit with this function and examples I've found in the Qlik community don't seem to be working for me.&lt;/P&gt;
&lt;P&gt;My function is as follows:&lt;/P&gt;
&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;EM&gt;FirstSortedValue([Kitchen Items], -Aggr(Count([Kitchen Items]), [Kitchen Items]))&lt;/EM&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;The chart object I am using is a Textbox in Qlik Sense, but all it displays is just a blank object. Not sure where I'm messing this up.&lt;/P&gt;
&lt;P&gt;The field looks something like this:&lt;/P&gt;
&lt;TABLE border="1" width="77.30639670768835%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;&lt;STRONG&gt;Kitchen Items&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;knife&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;knife&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;knife&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;bowl&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;bowl&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;fork&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="100%"&gt;spoon&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The function should return &lt;STRONG&gt;knife&lt;/STRONG&gt;. Not sure where I'm messing up and any help is greatly appreciated.&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 15:29:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923493#M76010</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-04-27T15:29:12Z</dc:date>
    </item>
    <item>
      <title>Re: How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923508#M76012</link>
      <description>&lt;P&gt;I think I found out what might be causing it. There are an incredible number of null values in the table itself.&lt;/P&gt;
&lt;P&gt;Is there a way to suppress those?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT: Nevermind, the nulls were not causing the problem. I'm still getting a blank value and not sure why this is happening.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 15:53:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923508#M76012</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-04-27T15:53:29Z</dc:date>
    </item>
    <item>
      <title>Re: How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923516#M76014</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="leonling_0-1651075302500.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/78104i280EED4380688C23/image-size/medium?v=v2&amp;amp;px=400" role="button" title="leonling_0-1651075302500.png" alt="leonling_0-1651075302500.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All I see is this with that exact formula.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 16:01:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923516#M76014</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-04-27T16:01:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923522#M76015</link>
      <description>&lt;P&gt;An update is that when I create a filter pane with the [Kitchen Items] field and select something, the function works. But that's not the solution I'm going for.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 16:06:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923522#M76015</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-04-27T16:06:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923553#M76018</link>
      <description>&lt;P&gt;Still not working. I just realized the table didn't come out the way I was expecting it to come out. I don't think this would affect it, but let me know if that's not the case.&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;FieldA&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;Kitchen Items&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;&lt;STRONG&gt;FieldB&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueA&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;knife&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueD&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueB&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;knife&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueD&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueC&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;knife&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueD&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueA&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;fork&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueE&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueB&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;knife&lt;/TD&gt;
&lt;TD width="33.333333333333336%" height="25px"&gt;valueE&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:05:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923553#M76018</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-04-27T17:05:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923564#M76019</link>
      <description>&lt;P&gt;I found the problem. The function works, it was because I didn't realize that if there's a tie, it won't display anything.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 27 Apr 2022 17:33:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923564#M76019</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-04-27T17:33:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923659#M76027</link>
      <description>&lt;P&gt;Two Options,&lt;/P&gt;
&lt;P&gt;1) use Mode(), again&amp;nbsp;&amp;nbsp;this function can only return one value, so if there is a tie this will return null, but is the most straight forward expression&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;= Mode(KitchenItems)&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2)&amp;nbsp;This will return concatenated list of more than one item incase there is a tie&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=concat(distinct aggr(if(rank(count(KitchenItems))=1,KitchenItems),KitchenItems),',')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 01:38:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1923659#M76027</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2022-04-28T01:38:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1924061#M76057</link>
      <description>&lt;P&gt;Thanks, this worked! Still trying to digest solution #2, it's quite the expression.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Apr 2022 14:19:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/1924061#M76057</guid>
      <dc:creator>QlikToFindOut</dc:creator>
      <dc:date>2022-04-28T14:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to display most common value in a dimension?</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/2507581#M104354</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/2751"&gt;@vinieme12&lt;/a&gt;&amp;nbsp;Hi I found this thread because this is exactly the same thing I am struggling with. But my Problem is your solution&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;=concat(distinct aggr(if(rank(count(KitchenItems))=1,KitchenItems),KitchenItems),',')&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;is still returning blanks for me, in fact it has made all the values blank/null. Do you have any advice on this please?&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2025 11:27:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-display-most-common-value-in-a-dimension/m-p/2507581#M104354</guid>
      <dc:creator>Ursa_Rex</dc:creator>
      <dc:date>2025-02-27T11:27:44Z</dc:date>
    </item>
  </channel>
</rss>

