<?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 How to convert missing/null value to zero in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581500#M442931</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 Products, 1 Align (group)&amp;nbsp; and 23 Reps who Sells these products.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product 1 is&amp;nbsp; Sold by&amp;nbsp; 19 Reps&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product 2 is sold by&amp;nbsp;20 Reps&lt;/P&gt;&lt;P&gt;The Products which are not Sold by Rep1 (but sold by Rep 2)&amp;nbsp; appears as '-' and i want to convert these '-' to Zero and Rank them as the last value.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;In the below Pic, Rep4, Rep 6 and Rep 13 dose not sell Product 1 but sells Product 2, hence for these Reps it is showing as '-' . Now i want to convert these '-' to zero and Rank them as last value (i,e. 20). Please help me to resolve. Attaching dummy data and app.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12244i88A83282FD67CEA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to get the result as below for Product1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled1.png" style="width: 598px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12245i128239B1189D6CBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled1.png" alt="Untitled1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49412"&gt;@dplr-rn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 17 May 2019 10:58:43 GMT</pubDate>
    <dc:creator>farheenayesha</dc:creator>
    <dc:date>2019-05-17T10:58:43Z</dc:date>
    <item>
      <title>How to convert missing/null value to zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581500#M442931</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have 2 Products, 1 Align (group)&amp;nbsp; and 23 Reps who Sells these products.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product 1 is&amp;nbsp; Sold by&amp;nbsp; 19 Reps&amp;nbsp;&lt;/P&gt;&lt;P&gt;Product 2 is sold by&amp;nbsp;20 Reps&lt;/P&gt;&lt;P&gt;The Products which are not Sold by Rep1 (but sold by Rep 2)&amp;nbsp; appears as '-' and i want to convert these '-' to Zero and Rank them as the last value.&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;In the below Pic, Rep4, Rep 6 and Rep 13 dose not sell Product 1 but sells Product 2, hence for these Reps it is showing as '-' . Now i want to convert these '-' to zero and Rank them as last value (i,e. 20). Please help me to resolve. Attaching dummy data and app.&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12244i88A83282FD67CEA7/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I want to get the result as below for Product1&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled1.png" style="width: 598px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/12245i128239B1189D6CBF/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled1.png" alt="Untitled1.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/49412"&gt;@dplr-rn&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 10:58:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581500#M442931</guid>
      <dc:creator>farheenayesha</dc:creator>
      <dc:date>2019-05-17T10:58:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing/null value to zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581561#M442939</link>
      <description>&lt;P&gt;i see that the data is missing for such entries.&lt;/P&gt;&lt;P&gt;e.g. rep 4 does not have Product 1.&lt;/P&gt;&lt;P&gt;Are you using sense or view&lt;/P&gt;&lt;P&gt;if it was qlikview there is a property to set null value for the table. Chart properties --&amp;gt; Presentation set null symbol&lt;/P&gt;&lt;P&gt;sense I believe you may need to have some dummy data there.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 12:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581561#M442939</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-17T12:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing/null value to zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581595#M442943</link>
      <description>&lt;P&gt;Hi Dilip,&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;Thanks for the reply. Yes Rep 4 doesnt have data. I am using qliksense and i have attached the qvf file as well. There is no dummy data for that Rep4 for Prodcut1. Could you please let me know, if there is any way to add dummy data through Qliksense because i cannot add in the database.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 13:52:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581595#M442943</guid>
      <dc:creator>farheenayesha</dc:creator>
      <dc:date>2019-05-17T13:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing/null value to zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581602#M442944</link>
      <description>step 1 Create a table of distinct rep, product combination.&lt;BR /&gt;step 2 create a concatented key rep&amp;amp;product in you main table and the new table&lt;BR /&gt;step 3 load new table again with a not in on the concatenated key , add sale and other columns with 0 value</description>
      <pubDate>Fri, 17 May 2019 13:59:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581602#M442944</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-17T13:59:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing/null value to zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581653#M442949</link>
      <description>Hi Dilip,&lt;BR /&gt;Thanks for the suggestion. I understood the first two points but not so clear with the third one.&lt;BR /&gt;It would be great if you can elaborate.&lt;BR /&gt;</description>
      <pubDate>Fri, 17 May 2019 15:50:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581653#M442949</guid>
      <dc:creator>farheenayesha</dc:creator>
      <dc:date>2019-05-17T15:50:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert missing/null value to zero</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581660#M442950</link>
      <description>&lt;P&gt;See below dummy code explaining the theory . hope its clear enough to nudge you in right direction&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;//Load temp table to get combination in current data
TempKeys:
load distinct
Rep&amp;amp;Product AS RepProdKey
resident fact;
// create one with all possible combinations. how to do this depends on your env
TempProdRep:
LOAD
Rep,Product, Rep&amp;amp;Product AS RepProdKeyTemp
FROM SOURCE; 


Concatenate (Fact)
//create a dummy rows for fact table for Rep Prod combination not in fact
load
Rep
,Product
RepProdKeyTemp as RepProdKey
, 0 as Sales
,0 as Base
//.. add other columns with dummy values
resident TempProdRep where not exists (RepProdKeyTemp ,RepProdKey) 
;
drop temp tables&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 17 May 2019 16:08:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-missing-null-value-to-zero/m-p/1581660#M442950</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2019-05-17T16:08:13Z</dc:date>
    </item>
  </channel>
</rss>

