<?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: Inconsistent expression results for isnull in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80536#M13243</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this to work correctly as a Dimension, you will need to wrap it in an aggr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;aggr(if(isnull(AltAccountName), AccountName, AltAccountName) , Col)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Feb 2018 17:39:05 GMT</pubDate>
    <dc:creator>rwunderlich</dc:creator>
    <dc:date>2018-02-23T17:39:05Z</dc:date>
    <item>
      <title>Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80534#M13241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm fairly new to qlik, so I apologise if this is a simple problem. What I'm trying to do is an isnull expression to populate a field based on two fields from different tables. My expression is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_15193983047845612 jive_text_macro" jivemacro_uid="_15193983047845612"&gt;
&lt;P&gt;=if(isnull(AltAccountName), AccountName, AltAccountName)&lt;/P&gt;

&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid #000000; width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Col&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;AccountName&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;AltAccountName&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;P&gt;&lt;STRONG&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(as dimension)&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;1&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Dickinson&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Dickinson&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Dickinson&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;2&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pannell&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Pannell&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;3&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Owen&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;4&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Buzzacott&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;-&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;Buzzacott&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For rows 1, 2 and 4 it's working just as I want. But I can't figure out why row 3 is producing a different result to row 2 when on the surface it looks exactly the same. Can anyone suggest as to what could be causing this or is there a workaround I could try?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know if this is a clue, but if I write the exact same expression down as a measure rather than dimension, it works perfectly . But unfortunately I'm looking to filter these results in the app.&lt;/P&gt;&lt;P&gt;Doing an =len on both field returns either the length or a null value. So using len=0 does thes same as the above.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 15:18:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80534#M13241</guid>
      <dc:creator>sambrown</dc:creator>
      <dc:date>2018-02-23T15:18:11Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80535#M13242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try with Len(Trim()) instead of IsNull&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(Len(Trim(AltAccountName)) = 0, AccountName, AltAccountName)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:35:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80535#M13242</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-23T17:35:42Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80536#M13243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For this to work correctly as a Dimension, you will need to wrap it in an aggr:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;aggr(if(isnull(AltAccountName), AccountName, AltAccountName) , Col)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:39:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80536#M13243</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-02-23T17:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80537#M13244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't want to sound as if I am doubting you, but I thought it would work without Aggr()? Do you know why it wouldn't work without Aggr()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:40:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80537#M13244</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-23T17:40:57Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80538#M13245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Let's see if it fixes his problem and then I'll venture an explanation &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 17:49:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80538#M13245</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-02-23T17:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80539#M13246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;All expressions work, I think the problem is, data doesn't have null, its some other character.&lt;/P&gt;&lt;P&gt;See the sample, when I created null in place of '-', all expressions work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also the information shared doesn't appear correct in my sample that the expression works for 2nd row, why not for 3rd. It work as desired for 3rd as well in my sample. Using Qlikview 12.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/194392_Capture.PNG" style="height: 209px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Set NullInterpret ='-';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;LOAD * inline [&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Col,AccountName,AltAccountName&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;1,Dickinson,Dickinson&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;2,-,Pannell&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;3,-,Owen&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;4,Buzzacott,-&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;];&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 18:10:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80539#M13246</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2018-02-23T18:10:56Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80540#M13247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sounds like a plan... &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Feb 2018 18:15:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80540#M13247</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-02-23T18:15:26Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80541#M13248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When applicable please mark the appropriate replies as CORRECT. This will help community members and Qlik Employees know which discussions have already been addressed and have a possible known solution. Please mark threads as HELPFUL if the provided solution is helpful to the problem, but does not necessarily solve the indicated problem. You can mark multiple threads as HELPFUL if you feel additional info is useful to others&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 09:16:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80541#M13248</guid>
      <dc:creator>pablolabbe</dc:creator>
      <dc:date>2018-02-28T09:16:58Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80542#M13249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for looking into this. I'm a bit confused as to what I'm supposed to be doing with 'col' in this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 10:24:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80542#M13249</guid>
      <dc:creator>sambrown</dc:creator>
      <dc:date>2018-02-28T10:24:45Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80543#M13250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Col" is the dimension name, I took it from the first screenshot you posted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Feb 2018 18:20:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80543#M13250</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-02-28T18:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80544#M13251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh yes of course. I had it under a different name in my app so I confused myself.&lt;/P&gt;&lt;P&gt;I can confirm that did work, thank you so much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 15:21:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80544#M13251</guid>
      <dc:creator>sambrown</dc:creator>
      <dc:date>2018-03-01T15:21:12Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80545#M13252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rob - It appears that you are right (because your response was marked as Correct)... would you be able to explain why this wouldn't work without Aggr()? or why do we need Aggr()?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 16:31:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80545#M13252</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-01T16:31:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80546#M13253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But this did not work?&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(Len(Trim(AltAccountName)) = 0, AccountName, AltAccountName)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 17:13:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80546#M13253</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-01T17:13:33Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80547#M13254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Samuel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please post a screenshot of your data model?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 01 Mar 2018 23:47:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80547#M13254</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-03-01T23:47:06Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80548#M13255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;2 other ways are;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET NULLINTERPRET=''; //interpret blanks as null&lt;/P&gt;&lt;P&gt;[Col]:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;LOAD * INLINE &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Col,AccountName,AltAccountName&lt;/P&gt;&lt;P&gt;1,Dickinson,Dickinson&lt;/P&gt;&lt;P&gt;2,,Pannell&lt;/P&gt;&lt;P&gt;3,,Owen&lt;/P&gt;&lt;P&gt;4,Buzzacott,&lt;/P&gt;&lt;P&gt;](delimiter is ',');&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Col]:&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;[Col],&lt;/P&gt;&lt;P&gt;If (Match([AccountName], ''), NULL(), [AccountName]) AS [AccountName],&lt;/P&gt;&lt;P&gt;If (Match([AltAccountName], ''), NULL(), [AltAccountName]) AS [AltAccountName];&lt;/P&gt;&lt;P&gt;LOAD * INLINE &lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Col,AccountName,AltAccountName&lt;/P&gt;&lt;P&gt;1,Dickinson,Dickinson&lt;/P&gt;&lt;P&gt;2,,Pannell&lt;/P&gt;&lt;P&gt;3,,Owen&lt;/P&gt;&lt;P&gt;4,Buzzacott,&lt;/P&gt;&lt;P&gt;](delimiter is ',');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 08:51:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80548#M13255</guid>
      <dc:creator>Lucke_Hallbergson</dc:creator>
      <dc:date>2018-03-02T08:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80549#M13256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what you were looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="DataModel.png" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/195144_DataModel.png" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 02 Mar 2018 10:16:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80549#M13256</guid>
      <dc:creator>sambrown</dc:creator>
      <dc:date>2018-03-02T10:16:08Z</dc:date>
    </item>
    <item>
      <title>Re: Inconsistent expression results for isnull</title>
      <link>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80550#M13257</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perfect Samuel, thanks.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sunny, I think you and others posting suggestions in this thread were assuming that all fields were in the same table.&amp;nbsp; Based on the problem Samuel describes, I was guessing that the fields were in separate tables.&amp;nbsp; Why is aggr() required in this case?&amp;nbsp; Assume that the fact id field is "QuoteId" from the table model ("Col" in the first picture posted).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When coded as an Expression:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Consolas, 'Courier New', Courier, mono, serif; font-size: 12px;"&gt;=if(isnull(AltAccountName), AccountName, AltAccountName)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;will work because there would only be one AltAccountName / AccountName associated with a QuoteId Dimension. i.e. the chart dimensions are used.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When coded as Calculated Dimension, it will not work.&amp;nbsp; The other Dimensions in the chart are not applied when evaluating a calculated dimension. The evaluation will be done over each value of AltAccountName, which could yield different AltAccountName / AccountName pairs for the same AltAccountName.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding the aggr() runs the logic over each QuoteId and therefore means that we are dealing with the combination of QuoteId / AltAccountName / AccountName. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could probably have explained it better, but there it is. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Rob&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://masterssummit.com" rel="nofollow" target="_blank"&gt;http://masterssummit.com&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive-link-external-small" href="http://qlikviewcookbook.com" rel="nofollow" target="_blank"&gt;http://qlikviewcookbook.com&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2018 19:26:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Inconsistent-expression-results-for-isnull/m-p/80550#M13257</guid>
      <dc:creator>rwunderlich</dc:creator>
      <dc:date>2018-03-03T19:26:55Z</dc:date>
    </item>
  </channel>
</rss>

