<?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 Help with inputavg() in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-with-inputavg/m-p/151976#M29588</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-601_sourceID:601" /&gt;&lt;/P&gt;&lt;P&gt;Need advise with inputsum/avg fields.&lt;BR /&gt;I am attaching a QV application demo I created for this question. It has 6 columns: SKU, Net Volume, Gross Revenue, GR Sum, ASP, ASP Display.&lt;BR /&gt;My ASP field is an inputavg() field. This is what pricing team wants to play with to see the impact on the Gross Revenue and other finance measures down the stream.&lt;BR /&gt;Gross Revenue is a calc field: Net Volume * ASP.&lt;BR /&gt;Gross Revenue field has "expression total" option and GR Sum, has SUM in "Total Mode" in table property. Values are different. My problem is that I want my ASP total to be calculated using GR SUM/Net Volume but when I put "expression total" in ASP field it calculates ASP using "expression total"mode for Gross Revenue. You will see it from the example. I tried to trick it by creating ASP Display field but it did not help. I tried using aggr() function as was suggested by one of QV guys during Q-Day but it did not work.&lt;BR /&gt;Any advise? is it a missing functionality in QV if so, how I can submit it for the future enhancements for the tool?&lt;BR /&gt;p.s. for some reason when I try to attach *.qvw file the site tells me that this is a not allowed type. I changed extension to .txt[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7142.inputfield.txt:550:0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made some progress on calculating the correct Total ASP using AGGR&lt;BR /&gt;***********************&lt;BR /&gt;(AGGR(SUM(BudgetInput), [Product])*AGGR(AVG(BudgetInput_ASP), [Product]))/&lt;BR /&gt;AGGR( SUM(TOTAL BudgetInput), [Product])&lt;BR /&gt;Now, I have in one column (ASP) correct ASPs by row and in the second column (last column in pic), I have correct ASP for total. Any ideas on how to merge them togeter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 14 Nov 2009 07:58:46 GMT</pubDate>
    <dc:creator />
    <dc:date>2009-11-14T07:58:46Z</dc:date>
    <item>
      <title>Help with inputavg()</title>
      <link>https://community.qlik.com/t5/QlikView/Help-with-inputavg/m-p/151976#M29588</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;IMG alt="error loading image" class="jive-image error-loading-image" src="https://community.qlik.com/legacyfs/online/-601_sourceID:601" /&gt;&lt;/P&gt;&lt;P&gt;Need advise with inputsum/avg fields.&lt;BR /&gt;I am attaching a QV application demo I created for this question. It has 6 columns: SKU, Net Volume, Gross Revenue, GR Sum, ASP, ASP Display.&lt;BR /&gt;My ASP field is an inputavg() field. This is what pricing team wants to play with to see the impact on the Gross Revenue and other finance measures down the stream.&lt;BR /&gt;Gross Revenue is a calc field: Net Volume * ASP.&lt;BR /&gt;Gross Revenue field has "expression total" option and GR Sum, has SUM in "Total Mode" in table property. Values are different. My problem is that I want my ASP total to be calculated using GR SUM/Net Volume but when I put "expression total" in ASP field it calculates ASP using "expression total"mode for Gross Revenue. You will see it from the example. I tried to trick it by creating ASP Display field but it did not help. I tried using aggr() function as was suggested by one of QV guys during Q-Day but it did not work.&lt;BR /&gt;Any advise? is it a missing functionality in QV if so, how I can submit it for the future enhancements for the tool?&lt;BR /&gt;p.s. for some reason when I try to attach *.qvw file the site tells me that this is a not allowed type. I changed extension to .txt[View:http://community.qlik.com/cfs-file.ashx/__key/CommunityServer.Discussions.Components.Files/11/7142.inputfield.txt:550:0]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've made some progress on calculating the correct Total ASP using AGGR&lt;BR /&gt;***********************&lt;BR /&gt;(AGGR(SUM(BudgetInput), [Product])*AGGR(AVG(BudgetInput_ASP), [Product]))/&lt;BR /&gt;AGGR( SUM(TOTAL BudgetInput), [Product])&lt;BR /&gt;Now, I have in one column (ASP) correct ASPs by row and in the second column (last column in pic), I have correct ASP for total. Any ideas on how to merge them togeter?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 14 Nov 2009 07:58:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-with-inputavg/m-p/151976#M29588</guid>
      <dc:creator />
      <dc:date>2009-11-14T07:58:46Z</dc:date>
    </item>
  </channel>
</rss>

