<?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: Handling NULL Values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484447#M180966</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sundar,&lt;/P&gt;&lt;P&gt;well in your case i don't think it's easy to achieve from Front end like your case &lt;/P&gt;&lt;P&gt;"Take field aa(field)&amp;nbsp; =&amp;nbsp; AAAA and&amp;nbsp; bb(Field) = 1111"&lt;/P&gt;&lt;P&gt;if i am not wrong this will also go for other fields too ...&lt;/P&gt;&lt;P&gt;as per my Experience its possible through Back end or you can create a Master Table with all Items Listed from Day 1&lt;/P&gt;&lt;P&gt;and make right/ Outer join with you Fact Table.&lt;/P&gt;&lt;P&gt;Once we have a Dimensions with every Date then those Above Functions can easily work as you see you can create a Record with Loops in Backend only;&amp;nbsp; Front end is for display with few tricks but if Records are not there in your applications how can you display that in Front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can suggest to work some in Back end (Script) not matter the data is in TB you can try optimized that .&lt;/P&gt;&lt;P&gt;Or wait for any other to reply &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 05 Jan 2014 05:22:51 GMT</pubDate>
    <dc:creator>qlikpahadi07</dc:creator>
    <dc:date>2014-01-05T05:22:51Z</dc:date>
    <item>
      <title>Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484437#M180956</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Im facing a problem that im having the Excel sheet, which having NULL value also. and i want to replace he null value into previous value (last non empty) value (LIKE prevmember in tableu/SSAS) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i tried a expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;alt(max(amount),above(max(amount),1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it failed if i select the particular date / field , and it display only to the next null value if 2 or more field is null then it is not through this result&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help in this issue&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For your reference i attach the excel and my Qlikview also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 10:23:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484437#M180956</guid>
      <dc:creator />
      <dc:date>2013-12-14T10:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484438#M180957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the order of the data in the excel file is already in the correct order and you could use this load statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_13870179414355386" jivemacro_uid="_13870179414355386"&gt;
&lt;P&gt;LOAD Dt,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bb,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; alt(amount,peek(amount)) as amount,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; day,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; month,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;comm101886.xls&lt;/P&gt;
&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the null handling should also take aa and bb into account then you would need to reorder the data first:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_text_macro jive_macro_code _jivemacro_uid_1387018162221882" jivemacro_uid="_1387018162221882" modifiedtitle="true"&gt;
&lt;P&gt;Temp:&lt;/P&gt;
&lt;P&gt;LOAD Dt, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bb, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; amount,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&lt;/P&gt;
&lt;P&gt;FROM&lt;/P&gt;
&lt;P&gt;comm101886.xls&lt;/P&gt;
&lt;P&gt;(biff, embedded labels, table is Sheet1$);&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Result:&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;LOAD Dt, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aa, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bb, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(previous(aa)=aa and previous(bb)=bb,alt(amount,peek(amount)),amount) as amount,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; day, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; month, &lt;/P&gt;
&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; year&lt;/P&gt;
&lt;P&gt;Resident Temp&lt;/P&gt;
&lt;P&gt;order by aa,bb,Dt;&lt;/P&gt;
&lt;P&gt;&lt;/P&gt;
&lt;P&gt;Drop table Temp;&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 10:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484438#M180957</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2013-12-14T10:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484439#M180958</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for reply ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Actually i can't touch script level. because it is link to date table and that date table link to nearly 13 Tables , whenever there is some record in another table, this table affect by NULL for that case only i'm checking..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and i can't touch other table structure also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Dec 2013 11:00:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484439#M180958</guid>
      <dc:creator />
      <dc:date>2013-12-14T11:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484440#M180959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Any Reply&amp;nbsp; from any one&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Dec 2013 07:30:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484440#M180959</guid>
      <dc:creator />
      <dc:date>2013-12-16T07:30:41Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484441#M180960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please Reply in this issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 05:08:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484441#M180960</guid>
      <dc:creator />
      <dc:date>2014-01-02T05:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484442#M180961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use obove function with pivot table ,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 05:22:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484442#M180961</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-01-02T05:22:26Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484443#M180962</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sundaramoorthi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As per my experience I will also suggest the same as&amp;nbsp; &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/gwassenaar"&gt;gwassenaar&lt;/A&gt;&lt;/STRONG&gt; had mentioned which is actually get your data rectified from the point you are pulling it.&lt;/P&gt;&lt;P&gt;Your scenario &amp;gt;13 Tables then I will say you must do that and for practice it will take not more than few minutes.&lt;/P&gt;&lt;P&gt;Here is what I suggest for you:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not sure but you might be aware of Qlikview have an option where we can replace Null data&amp;nbsp; with above values in wizard at the time of pulling data in Transformation Tab like below or you can use &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/gwassenaar"&gt;gwassenaar&lt;/A&gt;&lt;/STRONG&gt;solution too.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/50968_Untitled.png" style="width: 620px; height: 249px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The point is for every tables (&amp;gt;13) you can simply make a Resident of all individual table&amp;nbsp; and drop the previous one as already mentioned by &lt;STRONG style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;A href="https://community.qlik.com/people/gwassenaar"&gt;gwassenaar&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I don't thing this will make trouble to you.Only you need to be refreshed and careful while doing this change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;once it is corrected from Script then you don't need to bother for rest JUST CLICK ON RELOAD as you have not changed any Logic &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ELSE for every Chart with respect of Logic/Dimensions you have to create different logic to aggr the data in front end and if any change request then this approach will trouble the Developer my friend .....If I be at your side will never do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this might be Helpful &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 02 Jan 2014 06:20:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484443#M180962</guid>
      <dc:creator>qlikpahadi07</dc:creator>
      <dc:date>2014-01-02T06:20:35Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484444#M180963</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pahadi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for mailing&lt;/P&gt;&lt;P&gt;@&lt;/P&gt;&lt;P&gt;Please find my attachment for the excel, this is how my data are stored&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Take field aa(field)&amp;nbsp; =&amp;nbsp; AAAA and&amp;nbsp; bb(Field) = 1111&lt;/P&gt;&lt;P&gt;1st jan i have Amount&amp;nbsp; 10$&amp;nbsp; , after that there is no transaction till 19th&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if my user select&amp;nbsp; aa =AAAA and bb= 1111 for 3rd jan (any date after 1st to 18th)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then it must show amount is&amp;nbsp; 10$,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;lly , for the same&amp;nbsp; if he try to select on 25 or 26th (any date after 19th to 30th)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it must display 2000,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;after 31st (any date&amp;nbsp; even its today)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it must display 7000&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i think u may catch my point&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if i do it in Script level the size may increase. Right now we are dealing with 1TB/day Records . so we want optimum solutions for this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Jan 2014 10:04:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484444#M180963</guid>
      <dc:creator />
      <dc:date>2014-01-03T10:04:22Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484445#M180964</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi nithin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tried but it's not working see my above Reply to Pahadi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 19:20:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484445#M180964</guid>
      <dc:creator />
      <dc:date>2014-01-04T19:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484446#M180965</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sundaramoorthi, I'm not sure if I'm understanding your problem. In any case a proper way to fill NULL values during load is using something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF (len(trim(amount))=0, Peek('new_amount',-1), amount) AS new_amount&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, if amount is null, peek the previous value and rename the field as "new_amount". I guess that playing around with the IF condition (to check "aa" or "bb" values) you may get your desired result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 04 Jan 2014 22:38:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484446#M180965</guid>
      <dc:creator />
      <dc:date>2014-01-04T22:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484447#M180966</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sundar,&lt;/P&gt;&lt;P&gt;well in your case i don't think it's easy to achieve from Front end like your case &lt;/P&gt;&lt;P&gt;"Take field aa(field)&amp;nbsp; =&amp;nbsp; AAAA and&amp;nbsp; bb(Field) = 1111"&lt;/P&gt;&lt;P&gt;if i am not wrong this will also go for other fields too ...&lt;/P&gt;&lt;P&gt;as per my Experience its possible through Back end or you can create a Master Table with all Items Listed from Day 1&lt;/P&gt;&lt;P&gt;and make right/ Outer join with you Fact Table.&lt;/P&gt;&lt;P&gt;Once we have a Dimensions with every Date then those Above Functions can easily work as you see you can create a Record with Loops in Backend only;&amp;nbsp; Front end is for display with few tricks but if Records are not there in your applications how can you display that in Front end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can suggest to work some in Back end (Script) not matter the data is in TB you can try optimized that .&lt;/P&gt;&lt;P&gt;Or wait for any other to reply &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 05:22:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484447#M180966</guid>
      <dc:creator>qlikpahadi07</dc:creator>
      <dc:date>2014-01-05T05:22:51Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Handling NULL Values</title>
      <link>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484448#M180967</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello moorthi &lt;/P&gt;&lt;P&gt;Go through the fallowing manual contains full explanation how to handle NULL values &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;sasi@&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 05 Jan 2014 07:29:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Handling-NULL-Values/m-p/484448#M180967</guid>
      <dc:creator>sasikanth</dc:creator>
      <dc:date>2014-01-05T07:29:38Z</dc:date>
    </item>
  </channel>
</rss>

