<?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: DD - Measure Field returning NULL in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959008#M438038</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try&lt;/P&gt;&lt;P&gt;sum(Evaluate(trim(Field)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Aug 2015 19:03:04 GMT</pubDate>
    <dc:creator>sasiparupudi1</dc:creator>
    <dc:date>2015-08-19T19:03:04Z</dc:date>
    <item>
      <title>DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959006#M438036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ODBC connection.&lt;/P&gt;&lt;P&gt;Although my need is larger I have skinnied this down to a straight table with 1 dimension and 1 measure, the measure is sum(FIELD). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reload works fine and on state change I can utilize an ODBC trace I can see that the generated SQL is produced properly and when I execute the generated SQL directly against the database the correct totals are produced.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can also add a table box that contains only the measure field and I see values returned to the UI. Listboxes with dimensions seem correct. I can replace SUM(FIELD) with MAX(FIELD) and it gives me the largest value from the returned rows but SUM(FIELD) does not total and only produces NULL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TIA&lt;/P&gt;&lt;P&gt;-Jeremy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 18:52:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959006#M438036</guid>
      <dc:creator>jeremy_fourman</dc:creator>
      <dc:date>2015-08-19T18:52:16Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959007#M438037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure but can you try to create a straight table with Dimension as FIELD and IsNum(FIELD) as expression and see if any of the value is 0. 0 would mean that one of the values within FIELD is text and that is causing the Sum() function to not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 18:55:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959007#M438037</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-19T18:55:36Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959008#M438038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;may be try&lt;/P&gt;&lt;P&gt;sum(Evaluate(trim(Field)))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:03:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959008#M438038</guid>
      <dc:creator>sasiparupudi1</dc:creator>
      <dc:date>2015-08-19T19:03:04Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959009#M438039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you aggregate&amp;nbsp; the date while summing up the field and using max(field) simultaneously?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:11:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959009#M438039</guid>
      <dc:creator>Qrishna</dc:creator>
      <dc:date>2015-08-19T19:11:55Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959010#M438040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In DD add Group By.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:22:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959010#M438040</guid>
      <dc:creator>antoniotiman</dc:creator>
      <dc:date>2015-08-19T19:22:46Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959011#M438041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THanks for the quick feedback guys.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Sunny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good thinking . Database definition of the field is NUMBER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The measure field when displayed within tablebox is left aligned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I 'double load' the measure as a dimension and do the ISNUM check, all come through as -1. QV also identifies the dimension as numeric,integer. The dimension value in listbox is right aligned.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried converting the measure even though database type is numeric, but no change. So I think you may be onto something in that QV is interpreting it as a string although everything looks ok?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Sasidhar&lt;/P&gt;&lt;P&gt;Wouldn't that be within load script? My script syntax here is pure SQL since no preceding loads are allowed, or am I off here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@krishna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No I have not, let me try aggr real fast and see if there is any change.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959011#M438041</guid>
      <dc:creator>jeremy_fourman</dc:creator>
      <dc:date>2015-08-19T19:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959012#M438042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;‌Jeremy - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am relatively novice when it comes to Direct Discovery. So pardon me for not understanding some of the terminology here. What does 'double load' mean? Is it Direct Discovery related thing? Also, I am confused: you mentioned that in the table box the Field is left aligned, but in the list box its right aligned??? Not sure I completely understood your findings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 19:50:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959012#M438042</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-19T19:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959013#M438043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No worries Sunny, first time use case for DD for me as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double load means I brought the same field in as a measure and a dimension.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What I was trying to say by left aligned and right aligned is QV is displaying one as a number and the other as a string. With QV though I know I can't always count on the display, it's just I can't see what type it thinks the measure value is outside of putting it in a listbox or tablebox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@krishna&lt;/P&gt;&lt;P&gt;I tried aggr(max(FIELD),DIM) and get the max value, sum(aggr(max(FIELD),DIM)) and get max value. aggr(sum(FIELD),DIM) and I get null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@antonio&lt;/P&gt;&lt;P&gt;Not sure what you mean by this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for all feedback.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:07:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959013#M438043</guid>
      <dc:creator>jeremy_fourman</dc:creator>
      <dc:date>2015-08-19T20:07:39Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959014#M438044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Jeremy,&lt;/P&gt;&lt;P&gt;How's your data model looks like? I am also working on some direct discovery scenarios. If you have a key in the direct table to join to in-memory dimension tables, be careful, as it sums the values in the key not giving the good results. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sandip&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:13:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959014#M438044</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-19T20:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959015#M438045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip, thanks for the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know I have not shared code or a model as it is sensitive but right now I have a single direct table and nothing else.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 20:23:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959015#M438045</guid>
      <dc:creator>jeremy_fourman</dc:creator>
      <dc:date>2015-08-19T20:23:49Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959016#M438046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you specify to QlikView what the field is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Num#(FIELD, 'Format') as FIELD&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Aug 2015 23:12:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959016#M438046</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-08-19T23:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: DD - Measure Field returning NULL</title>
      <link>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959017#M438047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have been dabbling a bit with DD mostly on trial and error basis so I _can_ be fishing in the wrong pond here...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My discoveries (pun intended) is that you have to aggregate. A measure does not seem to be able to have multiple values (be on several lines). That's why it works when using max() as Max() gives you one value only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;I'm sorry if I'm not very clear, but I don't quite understand this enough to express myself clearer. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; For what it's worth, I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px; line-height: 1.5em;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Maybe you need to sum the lines in the db using native &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;(sql) &lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;commands.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Dec 2015 13:07:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/DD-Measure-Field-returning-NULL/m-p/959017#M438047</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-12-17T13:07:49Z</dc:date>
    </item>
  </channel>
</rss>

