<?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: Calculation avg of each location in if statement in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113516#M752298</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just trying to create this bucket called category&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(aggr(avg(IndexScore),ID) &amp;lt;=1,'Needs Improvement',&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(aggr(avg(IndexScore),ID)&amp;nbsp; &amp;gt;1&amp;nbsp; and aggr(avg(IndexScore),ID) &amp;lt;=3 ,'Mid Range',&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(aggr(avg(IndexScore),ID) &amp;gt;3&amp;nbsp; and aggr(avg(IndexScore),ID)&amp;nbsp; &amp;lt;=5 ,'Optimal'))) as Ctaegory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Nov 2018 21:46:06 GMT</pubDate>
    <dc:creator>apthansh</dc:creator>
    <dc:date>2018-11-06T21:46:06Z</dc:date>
    <item>
      <title>Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113512#M752294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi - I need help please&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a text object where I have if statement with AVG as below..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(aggr(avg(IndexScore),ID) &amp;lt;=1,'Needs Improvement',&lt;/P&gt;&lt;P&gt; If(aggr(avg(IndexScore),ID)&amp;nbsp; &amp;gt;1&amp;nbsp; and aggr(avg(IndexScore),ID) &amp;lt;=3 ,'Mid Range',&lt;/P&gt;&lt;P&gt; If(aggr(avg(IndexScore),ID) &amp;gt;3&amp;nbsp; and aggr(avg(IndexScore),ID)&amp;nbsp; &amp;lt;=5 ,'Optimal')))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Bar chart with ID&amp;nbsp; as dimension I have avg(IndexScore) as expression which works fine &lt;/P&gt;&lt;P&gt;but then I need to add the filter with category as above...but above if statement is not working...please help..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113512#M752294</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113513#M752295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure i understand. you are facing problem in text box or the bar chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Another thing I assume as it is a text object you are trying to get the average as a whole and give the comment 'needs improvement' or otherwise&lt;/P&gt;&lt;P&gt;why do you need to use aggr in the text box? a simple avg(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;IndexScore) should suffice&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 21:33:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113513#M752295</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-06T21:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113514#M752296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A simple avg will show the overall avg and not by each ID right&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 21:36:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113514#M752296</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2018-11-06T21:36:02Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113515#M752297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just for my understanding why are you trying to  display average per id on text box?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank You&lt;/P&gt;&lt;P&gt;Dilip Ranjith&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sent via mobile&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 21:38:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113515#M752297</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-06T21:38:32Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113516#M752298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just trying to create this bucket called category&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=if(aggr(avg(IndexScore),ID) &amp;lt;=1,'Needs Improvement',&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(aggr(avg(IndexScore),ID)&amp;nbsp; &amp;gt;1&amp;nbsp; and aggr(avg(IndexScore),ID) &amp;lt;=3 ,'Mid Range',&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;If(aggr(avg(IndexScore),ID) &amp;gt;3&amp;nbsp; and aggr(avg(IndexScore),ID)&amp;nbsp; &amp;lt;=5 ,'Optimal'))) as Ctaegory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 21:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113516#M752298</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2018-11-06T21:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113517#M752299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/2454"&gt;sunny&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/171708"&gt;stalwar1&lt;/A&gt;‌&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts please ?&lt;/P&gt;&lt;P&gt;Tried below expression too but nothing shows up..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aggr(if(avg(PQIOVERALLScore) &amp;lt;=12,'Needs Improvemnet',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Avg(PQIOVERALLScore) &amp;gt;12&amp;nbsp; and Avg(PQIOVERALLScore)&amp;lt;=18,'Mid Range',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(Avg(PQIOVERALLScore) &amp;gt;18&amp;nbsp; ,'Optimal'))),PQIFilter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Nov 2018 21:50:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113517#M752299</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2018-11-06T21:50:41Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113518#M752300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure I understand what you are trying to do? You want to show this in a text box object or list box? What exactly is the goal here?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 00:43:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113518#M752300</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-11-07T00:43:07Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113519#M752301</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Where you are trying this measure, I mean selector / Object in charts? Perhaps you can try this as Measure&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;avg(IndexScore)&amp;lt;=1,'Needs Improvement',&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;avg(IndexScore)&amp;gt;1 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;avg(IndexScore)&amp;lt;=3,'Mid Range',&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style=": ; color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If(&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;avg(IndexScore)&amp;gt;3 and &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;avg(IndexScore)&amp;lt;=5, 'Optional')))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 03:25:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113519#M752301</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2018-11-07T03:25:53Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113520#M752302</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ansh&lt;/P&gt;&lt;P&gt;please expand with a sample app and/or detailed scenrio as others mentioned. not clear what you are trying to achieve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 14:07:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113520#M752302</guid>
      <dc:creator>dplr-rn</dc:creator>
      <dc:date>2018-11-07T14:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation avg of each location in if statement</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113521#M752303</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created variable with the below expression and used that variable in QlikSense filter and that resolved the issue.&lt;/P&gt;&lt;P&gt;Than you all for sharing your thoughts.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;aggr(if(avg(IndexScore) &amp;lt;=1,'Needs &lt;/SPAN&gt;Improvement&lt;SPAN style="font-size: 10pt;"&gt;',&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(avg(IndexScore) &amp;gt;1&amp;nbsp; and avg(IndexScore)&amp;lt;=3,'Mid Range',&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; If(avg(IndexScore) &amp;gt;3&amp;nbsp; ,'Optimal'))),Filter)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Nov 2018 16:09:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-avg-of-each-location-in-if-statement/m-p/113521#M752303</guid>
      <dc:creator>apthansh</dc:creator>
      <dc:date>2018-11-07T16:09:19Z</dc:date>
    </item>
  </channel>
</rss>

