<?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: Text Box Average calculation in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274528#M623151</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share the qvw to play with it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 05:34:20 GMT</pubDate>
    <dc:creator>aarkay29</dc:creator>
    <dc:date>2017-02-15T05:34:20Z</dc:date>
    <item>
      <title>Text Box Average calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274527#M623150</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was wondering if anyone can assist me with a script.&amp;nbsp; I am not sure what I am doing wrong but what I am trying to accomplish is an overall average over/under calculation of all of my real estate locations.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So for each location, I have current rents (LeaseType) and for each of those locations, I have market rates (New SP - Rental Rates).&amp;nbsp; The formula below accurately calculates the change between current rent vs market rent in a percentage format for each location I select; however, it does not calculate an average of all locations when no location is selected.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way to utilize this formula to calculate an average for all the locations in a text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry if I have not asked this question in the appropriate location as this is my first time in this forum.&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(((((sum({$&amp;lt;LeaseTypeExpenses = {Lease}, Expense = {"*"}-{"VAT","Parking","Free Rent"}, ExpenseMonth = {$(vThisMonth)}&amp;gt;} if(ExpenseYear = $(vThisYear), Amount)))/sum(Size))*12))/&lt;/P&gt;&lt;P&gt;(sum([Rental Rates]*[Units per USD])/if([Unit of Measurement] &amp;lt;&amp;gt; 'SQFT', $(vSQMtoSQFT), 1))-1,'#,##0.00%')&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Feb 2017 23:04:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274527#M623150</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-02-14T23:04:18Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box Average calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274528#M623151</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share the qvw to play with it&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 05:34:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274528#M623151</guid>
      <dc:creator>aarkay29</dc:creator>
      <dc:date>2017-02-15T05:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box Average calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274529#M623152</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alen, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is difficult to give advice without seeing the data. The operator TOTAL after the expression Set Analisys does not solve your problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Andrey&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 07:13:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274529#M623152</guid>
      <dc:creator>ahaahaaha</dc:creator>
      <dc:date>2017-02-15T07:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box Average calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274530#M623153</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes there is way to do averages in qlikview formula.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But with above explanation,hard to suggest.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 07:31:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274530#M623153</guid>
      <dc:creator>sdmech81</dc:creator>
      <dc:date>2017-02-15T07:31:36Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box Average calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274531#M623154</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys, thanks for the prompt follow up!&amp;nbsp; Unfortunately, I can't provide the file as it's considered work propitiatory; however, I realize the formula attached is a bit complicated.&amp;nbsp; Let me try to simplify, first formula below calculates real estate market rates in different locations.&amp;nbsp; It takes the total of [&lt;SPAN style="font-size: 13.3333px;"&gt;New SP - Rental Rates&lt;/SPAN&gt;] and multiplies it by USD dollar and converts it to Square feet and presents the amount in in USD.&amp;nbsp; Is there a way I can get an average for multiple locations?&amp;nbsp; This formula works correctly when I select a specific location (Los Angeles, London, England, New York); however, it does not produce an accurate result when I don't select the radio button for Los Angeles, London, etc) and leave the location blank.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were to modify this formula, how can you modify it to include an average? =Avg(aggr(sum?&amp;nbsp; Would someone please attempt to modify it?&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(sum([New SP - Rental Rates]*[Units per USD])&lt;/P&gt;&lt;P&gt;/if([Unit of Measurement] &amp;lt;&amp;gt; 'SQFT', $(vSQMtoSQFT), 1),'$#,##0.00') &amp;amp;' '&amp;amp;'USD'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 18:29:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274531#M623154</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-02-15T18:29:15Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box Average calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274532#M623155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=Num(&lt;SPAN style="color: #ff0000;"&gt;Avg(Aggr(&lt;/SPAN&gt;Sum([New SP - Rental Rates] * [Units per USD])/If([Unit of Measurement] &amp;lt;&amp;gt; 'SQFT', $(vSQMtoSQFT), 1)&lt;SPAN style="color: #ff0000;"&gt;, Location)&lt;/SPAN&gt;),'$#,##0.00') &amp;amp;' '&amp;amp;'USD'&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 09:32:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274532#M623155</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-16T09:32:00Z</dc:date>
    </item>
    <item>
      <title>Re: Text Box Average calculation</title>
      <link>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274533#M623156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you to everyone that helped on this!&amp;nbsp; You guys are awesome.&amp;nbsp; Special thanks to Sunny for modifying the script to work!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Feb 2017 17:58:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Text-Box-Average-calculation/m-p/1274533#M623156</guid>
      <dc:creator>powerqlik</dc:creator>
      <dc:date>2017-02-16T17:58:42Z</dc:date>
    </item>
  </channel>
</rss>

