<?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 MaxString() all values including Null with Aggr() function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529428#M747105</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Over View:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Using Chart Object,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimensions:&lt;/STRONG&gt; (&lt;FONT color="#993300"&gt;Store&lt;/FONT&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;StoreName&lt;/FONT&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;Category&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;Only Expression (using &lt;FONT color="#0000FF"&gt;Aggr&lt;/FONT&gt;() function)&lt;/P&gt;&lt;P&gt;I have a table in QlikView and I am aggregating a column (&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;Proposition&lt;/FONT&gt;&lt;/STRONG&gt;) in that table based on all possible dimensions but the problem is that &lt;FONT color="#0000FF"&gt;MaxString&lt;/FONT&gt;() function is not returning the &lt;FONT color="#0000FF"&gt;Null&lt;/FONT&gt; values in that table.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;MaxString&lt;/FONT&gt; is removing the Categories (&lt;FONT color="#FFCC00"&gt;&lt;STRONG&gt;Cubes&lt;/STRONG&gt; &lt;/FONT&gt;and &lt;FONT color="#FFCC00"&gt;&lt;STRONG&gt;Noodles&lt;/STRONG&gt;&lt;/FONT&gt;) as these two categories have no data, but i need them too.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=&lt;FONT color="#0000FF"&gt;MaxString&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;aggr&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;MaxString&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;Proposition&lt;/FONT&gt;),&amp;nbsp;&lt;FONT color="#993300"&gt;Month&lt;/FONT&gt;,&lt;FONT color="#993300"&gt;Store&lt;/FONT&gt;, &lt;FONT color="#993300"&gt;StoreName&lt;/FONT&gt;, &lt;FONT color="#993300"&gt;Address&lt;/FONT&gt;, &lt;FONT color="#993300"&gt;Store_Type&lt;/FONT&gt;, &lt;FONT color="#993300"&gt;Category,&lt;SPAN&gt;Proposition&lt;/SPAN&gt;&lt;/FONT&gt;))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DataTable&lt;/STRONG&gt;:&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="Aggr with MaxString.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3614iB02ED3423697DBAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aggr with MaxString.png" alt="Aggr with MaxString.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 04:47:03 GMT</pubDate>
    <dc:creator>danyal_akhlaq</dc:creator>
    <dc:date>2024-11-16T04:47:03Z</dc:date>
    <item>
      <title>MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529428#M747105</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Over View:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Using Chart Object,&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimensions:&lt;/STRONG&gt; (&lt;FONT color="#993300"&gt;Store&lt;/FONT&gt;&lt;SPAN&gt;,&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;StoreName&lt;/FONT&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;FONT color="#993300"&gt;Category&lt;/FONT&gt;)&lt;/P&gt;&lt;P&gt;Only Expression (using &lt;FONT color="#0000FF"&gt;Aggr&lt;/FONT&gt;() function)&lt;/P&gt;&lt;P&gt;I have a table in QlikView and I am aggregating a column (&lt;STRONG&gt;&lt;FONT color="#99CC00"&gt;Proposition&lt;/FONT&gt;&lt;/STRONG&gt;) in that table based on all possible dimensions but the problem is that &lt;FONT color="#0000FF"&gt;MaxString&lt;/FONT&gt;() function is not returning the &lt;FONT color="#0000FF"&gt;Null&lt;/FONT&gt; values in that table.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000FF"&gt;MaxString&lt;/FONT&gt; is removing the Categories (&lt;FONT color="#FFCC00"&gt;&lt;STRONG&gt;Cubes&lt;/STRONG&gt; &lt;/FONT&gt;and &lt;FONT color="#FFCC00"&gt;&lt;STRONG&gt;Noodles&lt;/STRONG&gt;&lt;/FONT&gt;) as these two categories have no data, but i need them too.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;=&lt;FONT color="#0000FF"&gt;MaxString&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;aggr&lt;/FONT&gt;(&lt;FONT color="#0000FF"&gt;MaxString&lt;/FONT&gt;(&lt;FONT color="#993300"&gt;Proposition&lt;/FONT&gt;),&amp;nbsp;&lt;FONT color="#993300"&gt;Month&lt;/FONT&gt;,&lt;FONT color="#993300"&gt;Store&lt;/FONT&gt;, &lt;FONT color="#993300"&gt;StoreName&lt;/FONT&gt;, &lt;FONT color="#993300"&gt;Address&lt;/FONT&gt;, &lt;FONT color="#993300"&gt;Store_Type&lt;/FONT&gt;, &lt;FONT color="#993300"&gt;Category,&lt;SPAN&gt;Proposition&lt;/SPAN&gt;&lt;/FONT&gt;))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DataTable&lt;/STRONG&gt;:&lt;span class="lia-inline-image-display-wrapper lia-image-align-right" image-alt="Aggr with MaxString.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3614iB02ED3423697DBAF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Aggr with MaxString.png" alt="Aggr with MaxString.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:47:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529428#M747105</guid>
      <dc:creator>danyal_akhlaq</dc:creator>
      <dc:date>2024-11-16T04:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529466#M747106</link>
      <description>&lt;P&gt;I am confused, in your post you mentioned that there are no dimensions, but in your image you show a chart with 3 dimensions? Would you be able to clarify?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 12:20:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529466#M747106</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-11T12:20:21Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529482#M747107</link>
      <description>&lt;P&gt;Oops! my mistake now i have updated the question, using three dimensions.&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 12:45:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529482#M747107</guid>
      <dc:creator>danyal_akhlaq</dc:creator>
      <dc:date>2019-01-11T12:45:25Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529488#M747108</link>
      <description>&lt;P&gt;Seems like this is in QlikView, right? Have you tried to uncheck 'Suppress Zero-Values' on the Presentation tab of the chart properties?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 12:59:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529488#M747108</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-11T12:59:01Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529512#M747109</link>
      <description>yes it is in QlikView and 'Suppress Zero-Values' is already unchecked.</description>
      <pubDate>Fri, 11 Jan 2019 13:31:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529512#M747109</guid>
      <dc:creator>danyal_akhlaq</dc:creator>
      <dc:date>2019-01-11T13:31:16Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529513#M747110</link>
      <description>&lt;P&gt;Would you be able to share a sample where we can see the issue?&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 13:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529513#M747110</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-11T13:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529615#M747111</link>
      <description>Sir,&lt;BR /&gt;I have posted DataTable and Expression as sample and the actual problem is that it is not calculating NULL values in the Proposition column.&lt;BR /&gt;All data and colunms are sample in this post as i can not post the actual data.&lt;BR /&gt;</description>
      <pubDate>Fri, 11 Jan 2019 18:58:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529615#M747111</guid>
      <dc:creator>danyal_akhlaq</dc:creator>
      <dc:date>2019-01-11T18:58:01Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529616#M747112</link>
      <description>&lt;P&gt;Please provide the Excel version of the data posted above. I have no way to load an image as date, neither do I have the time to type that all up in Excel or INLINE. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Jan 2019 18:59:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529616#M747112</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-11T18:59:21Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529684#M747113</link>
      <description>&lt;P&gt;Dear Sir,&lt;/P&gt;&lt;P&gt;I have added &lt;STRONG&gt;data&lt;/STRONG&gt; file and &lt;STRONG&gt;qvd&lt;/STRONG&gt; both for your testing, i just need the &lt;STRONG&gt;Store-1&lt;/STRONG&gt; to show all the data with null value as it does not have data of two categories (cubes and noodles).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Sat, 12 Jan 2019 07:37:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529684#M747113</guid>
      <dc:creator>danyal_akhlaq</dc:creator>
      <dc:date>2019-01-12T07:37:57Z</dc:date>
    </item>
    <item>
      <title>Re: MaxString() all values including Null with Aggr() function</title>
      <link>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529989#M747114</link>
      <description>&lt;P&gt;Script&lt;/P&gt;&lt;PRE&gt;Main:
LOAD Text(Date(Month,'MM-YYYY')) as Month,
	 ROWID,
	 StoreCode,
	 Store,
	 Store_Type,
	 Region,
	 Channel
FROM Data.xlsx
(ooxml, embedded labels, table is Main);

Left Join (Main)
LOAD Text(Date(Month,'MM-YYYY')) as  Month,
	 StoreCode,
	 Category,
	 Prop
FROM Data.xlsx
(ooxml, embedded labels, table is Prop);

FinalMain:
LOAD Month&amp;amp;'|'&amp;amp;StoreCode&amp;amp;'|'&amp;amp;Category as Key,
	 *
Resident Main;

Temp:
LOAD DISTINCT StoreCode,
	 Store,
	 Store_Type,
	 Region,
	 Channel
Resident Main;

Join (Temp)
LOAD DISTINCT Text(Date(Month,'MM-YYYY')) as  Month,
	 Category
FROM Data.xlsx
(ooxml, embedded labels, table is Prop);

Concatenate (FinalMain)
LOAD *
Resident Temp
Where not Exists (Key, Month&amp;amp;'|'&amp;amp;StoreCode&amp;amp;'|'&amp;amp;Category);

DROP Tables Temp, Main;
DROP Field Key;
RENAME Table FinalMain to Main;

STORE Main into Main.qvd(qvd);

DROP Table Main;

PropHurdle:
Mapping
LOAD Text(Date(Month,'MM-YYYY'))&amp;amp;'-'&amp;amp;Region&amp;amp;'-'&amp;amp;Store_Type&amp;amp;'-'&amp;amp;Channel&amp;amp;'-'&amp;amp;Category as LookUpKey,
     PropHurdle
FROM Data.xlsx
(ooxml, embedded labels, table is PropHurdle);

DataTable:
LOAD Month,
	 ROWID,
	 StoreCode,
	 Store,
	 Store_Type,
	 Region,
	 Channel,
	 Category,
	 Prop,
     ApplyMap('PropHurdle',Month&amp;amp;'-'&amp;amp;Region&amp;amp;'-'&amp;amp;Store_Type&amp;amp;'-'&amp;amp;Channel&amp;amp;'-'&amp;amp;Category,'Not Defined') as PropHurdle
FROM Main.qvd (qvd);&lt;/PRE&gt;&lt;P&gt;and then use the expression&lt;/P&gt;&lt;PRE&gt;MaxString(Prop)&lt;/PRE&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/3702i7577E2FB156E3E18/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Jan 2019 12:49:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/MaxString-all-values-including-Null-with-Aggr-function/m-p/1529989#M747114</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-14T12:49:43Z</dc:date>
    </item>
  </channel>
</rss>

