<?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 My expression keeps returning null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473182#M483820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck trying to get an average satisfaction code (rating 1 to 5) taken from the salesperson that sold the order for each type of return reason codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using return reason code as dimension.&lt;/P&gt;&lt;P&gt;I managed to get the total count of the return reasons with the expression: count(RETURN_return_code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line I am trying to use to get the average satisfaction code per return reason code is:&lt;/P&gt;&lt;P&gt;sum(SATISFACTION_TYPE_code) / count(RETURN_return_code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried with avg(SATISFACTION_TYPE_code), but all I'm getting back is null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, I can also add a file if neccesary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Jun 2013 09:05:26 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-14T09:05:26Z</dc:date>
    <item>
      <title>My expression keeps returning null</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473182#M483820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am stuck trying to get an average satisfaction code (rating 1 to 5) taken from the salesperson that sold the order for each type of return reason codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using return reason code as dimension.&lt;/P&gt;&lt;P&gt;I managed to get the total count of the return reasons with the expression: count(RETURN_return_code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The line I am trying to use to get the average satisfaction code per return reason code is:&lt;/P&gt;&lt;P&gt;sum(SATISFACTION_TYPE_code) / count(RETURN_return_code)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also tried with avg(SATISFACTION_TYPE_code), but all I'm getting back is null values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance, I can also add a file if neccesary&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 09:05:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473182#M483820</guid>
      <dc:creator />
      <dc:date>2013-06-14T09:05:26Z</dc:date>
    </item>
    <item>
      <title>Re: My expression keeps returning null</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473183#M483821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Attach the file please.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 09:14:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473183#M483821</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-06-14T09:14:42Z</dc:date>
    </item>
    <item>
      <title>Re: My expression keeps returning null</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473184#M483822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does SATISFACTION_TYPE_code associate to the Reason Code that you are using as you dimension ?&lt;/P&gt;&lt;P&gt;If you create three list boxes of SATISFACTION_TYPE_code, RETURN_return_code and Reason_Code, do selections in one effect the other ?&lt;/P&gt;&lt;P&gt;Jonathan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 09:16:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473184#M483822</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2013-06-14T09:16:29Z</dc:date>
    </item>
    <item>
      <title>Re: My expression keeps returning null</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473185#M483823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is surpeising behaviour ....Plz provide a sample .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 09:22:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473185#M483823</guid>
      <dc:creator>sujeetsingh</dc:creator>
      <dc:date>2013-06-14T09:22:28Z</dc:date>
    </item>
    <item>
      <title>Re: My expression keeps returning null</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473186#M483824</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;there is a link table that connects them, though indirectly. When I try to use the list boxes the satisfaction type code is not affected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Every returned order is linked to an order, which is sold by a sales_staff, which has satisfaction type code values. Is there any way to make this link manually without using the script function?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PS: added the file&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 09:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473186#M483824</guid>
      <dc:creator />
      <dc:date>2013-06-14T09:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: My expression keeps returning null</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473187#M483825</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your data is wrong:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42668" alt="table.bmp" class="jive-image" src="https://community.qlik.com/legacyfs/online/42668_table.bmp" /&gt;&lt;/P&gt;&lt;P&gt;There is no RETURN_REASON_Code against SATISFACTION_TYPE_code, so the expression Sum(SATISFACTION_TYPE_code) could produce nothing against the dimension RETURN_REASON_Code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it explanins why returns null.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 09:42:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473187#M483825</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-06-14T09:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: My expression keeps returning null</title>
      <link>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473188#M483826</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes I figured out it wasn't going to work. I worked around it by using a list box and manually clicking. I cannot make it nicely presentable but at least I can use the data for my conclusion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help anyways, much appreciated!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Jun 2013 10:02:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/My-expression-keeps-returning-null/m-p/473188#M483826</guid>
      <dc:creator />
      <dc:date>2013-06-14T10:02:47Z</dc:date>
    </item>
  </channel>
</rss>

