<?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: Total Averages in Table - Data Clean for Zero and Strings in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165637#M905329</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this is not the solution I am looking for as I have not cleaned data in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the Total Mode "Average" in the Table Properties does not account for set analysis and still zero values would be displayed. This is not what I want, when they would be null() I could set what to be displayed in the table under presentation tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Jul 2016 09:01:27 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-07-04T09:01:27Z</dc:date>
    <item>
      <title>Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165632#M905324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have read something about how Qlik is handling null(). My Excel sheet I am loading from has records containing 0 or "-".&lt;/P&gt;&lt;P&gt;So I would like to clean my data and replace all these records with a null() in the load script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Additionally, what I am looking for is to load the data in a table and averaging the results. However, I do not get the right averages, even though I have made an atempt to clean data in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached an example, imagine the first load is the excel load.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165632#M905324</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165633#M905325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A _jive_internal="true" data-avatarid="-1" data-userid="215589" data-username="benchmarking" href="https://community.qlik.com/people/benchmarking" style="padding: 0 3px 0 0; font-weight: inherit; font-style: inherit; font-size: 1.1em; font-family: inherit; color: #3778c7; text-decoration: underline;"&gt;benchmarking&lt;/A&gt;&lt;/STRONG&gt;,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this example that i´ve made for you, please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:14:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165633#M905325</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-07-04T08:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165634#M905326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;SPAN class="font-color-meta" style="padding: 0 0 5px; font-size: 1.2em; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #8b8b8b; background-color: #e6e6e6;"&gt;&lt;SPAN class="replyToName" style="font-weight: inherit; font-style: inherit; font-size: 15.6px; font-family: inherit;"&gt;benchmarking,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry but I forgot to explain you, that in your texbox "data4" you need to change the expression avg(data4) to avg(Data4).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Remember that QlikView it´s case sensitive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:22:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165634#M905326</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-07-04T08:22:39Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165635#M905327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Unfortunately this is not what I wanted. I actually do not want zeros, I want nulls instead of zeros and "-" so that for Data3 I get 1 as the average and 2 for Data4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry that I did not make that clear.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:34:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165635#M905327</guid>
      <dc:creator />
      <dc:date>2016-07-04T08:34:11Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165636#M905328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benchmarking,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then use Set analysis: =avg({&amp;lt;Data4={"&amp;gt;0"}&amp;gt;}Data4)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 08:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165636#M905328</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-07-04T08:55:12Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165637#M905329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know this is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, this is not the solution I am looking for as I have not cleaned data in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Using the Total Mode "Average" in the Table Properties does not account for set analysis and still zero values would be displayed. This is not what I want, when they would be null() I could set what to be displayed in the table under presentation tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:01:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165637#M905329</guid>
      <dc:creator />
      <dc:date>2016-07-04T09:01:27Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165638#M905330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benchmarking,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try example other time, please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In column Data3 you have one possibility and in Data4 other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tell me if it´s correct, please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165638#M905330</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-07-04T09:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165639#M905331</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As per the data sample you have posted simply doing Avg(Data4) would make it display null values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/130010_pastedImage_1.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can now go to presentation tab and choose to display the null value in the way you want&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:27:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165639#M905331</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2016-07-04T09:27:01Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165640#M905332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I know figured out the problem of averages.&lt;/P&gt;&lt;P&gt;As I have been using sum, the sum of null is zero which will be accounted for in the total average.&lt;/P&gt;&lt;P&gt;So as &lt;STRONG style="font-size: 11.7px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/migueldelval"&gt;migueldelval&lt;/A&gt;&lt;/STRONG&gt; proposed I will have to check whether the sum is zero or not before acutally summing up.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also this seems to do the trick to get null values instead of zeros or "-":&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_1467624696624662 jive_text_macro" jivemacro_uid="_1467624696624662" modifiedtitle="true"&gt;
&lt;P&gt;if(DataX&amp;gt;0,DataX, null()) as Data1&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I am now still looking for is to check greather than 0 for the whole load and not for any single field.&lt;/P&gt;&lt;P&gt;As I have many many fields in my excel file this would demand great manual effort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:33:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165640#M905332</guid>
      <dc:creator />
      <dc:date>2016-07-04T09:33:47Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165641#M905333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Benchmarking,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you attach asample of your excel?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Miguel del Valle&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 09:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165641#M905333</guid>
      <dc:creator>migueldelval</dc:creator>
      <dc:date>2016-07-04T09:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165642#M905334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Similar to the Inload &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 10:14:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165642#M905334</guid>
      <dc:creator />
      <dc:date>2016-07-04T10:14:38Z</dc:date>
    </item>
    <item>
      <title>Re: Total Averages in Table - Data Clean for Zero and Strings</title>
      <link>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165643#M905335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I finally got the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14676342048874998 jive_text_macro" jivemacro_uid="_14676342048874998" modifiedtitle="true"&gt;
&lt;P style="font-size: 13.3333px;"&gt;Set NullInterpret = '-';&amp;nbsp;&amp;nbsp; &lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;mapNull:&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;MAPPING LOAD 0 as Key, null() as Value&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;Autogenerate(1);&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 13.3333px;"&gt;MAP * USING mapNull;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2016 12:10:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Total-Averages-in-Table-Data-Clean-for-Zero-and-Strings/m-p/1165643#M905335</guid>
      <dc:creator />
      <dc:date>2016-07-04T12:10:54Z</dc:date>
    </item>
  </channel>
</rss>

