<?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: Help on Set Analysis for fixed value in reference line in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354809#M833893</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;After reading your answer, I looked up about inner and outer aggregation and I found a good article.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function" title="https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Sunny again for your explanations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2017 16:38:28 GMT</pubDate>
    <dc:creator>diane_yu</dc:creator>
    <dc:date>2017-06-12T16:38:28Z</dc:date>
    <item>
      <title>Help on Set Analysis for fixed value in reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354803#M833887</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I'm working on reference line but the current formula is not working correctly.&amp;nbsp;&amp;nbsp; If the filter is not applied, the current formula is working correctly but when filter is applied, the average is based on what's selected.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a data set that has duplicated UID and I need to calculate the average based on unique UID the must meet below criteria: &lt;/P&gt;&lt;P&gt;1) Exclude any zero from DIRRECTTIME_TOTAL.&amp;nbsp; &lt;/P&gt;&lt;P&gt;2) UID must have ":" &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=num(AVG(AGGR(AVG(distinct { 1 &amp;lt; UID={"*:*"}, DIRECTTIME_TOTAL-={"0"} &amp;gt;} DIRECTTIME_TOTAL),UID)),'#,###,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for any 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/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354803#M833887</guid>
      <dc:creator>diane_yu</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Set Analysis for fixed value in reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354804#M833888</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;= num(AVG({$&amp;lt; UID = {"*:*"}, DIRECTTIME_TOTAL -= {'0'} &amp;gt;} AGGR(AVG(distinct {$&amp;lt; UID = {"*:*"}, DIRECTTIME_TOTAL -= {'0'} &amp;gt;} DIRECTTIME_TOTAL),UID)),'#,###,##')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Else share some sample data with expected output?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:21:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354804#M833888</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2017-06-12T15:21:27Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Set Analysis for fixed value in reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354805#M833889</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Num(Avg(&lt;SPAN style="color: #ff0000;"&gt;{1&amp;lt;UID={"*:*"}, DIRECTTIME_TOTAL-={"0"}&amp;gt;}&lt;/SPAN&gt; &lt;/STRONG&gt;&lt;STRONG&gt;Aggr(Avg(DISTINCT {1&amp;lt;UID={"*:*"}, DIRECTTIME_TOTAL-={"0"}&amp;gt;} DIRECTTIME_TOTAL), UID)),'#,###,##')&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 15:45:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354805#M833889</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-12T15:45:24Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Set Analysis for fixed value in reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354806#M833890</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for your response but it did not work.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:06:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354806#M833890</guid>
      <dc:creator>diane_yu</dc:creator>
      <dc:date>2017-06-12T16:06:23Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Set Analysis for fixed value in reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354807#M833891</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome!&amp;nbsp; It works like a charm but can you explain to me your process please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks bunch for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:08:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354807#M833891</guid>
      <dc:creator>diane_yu</dc:creator>
      <dc:date>2017-06-12T16:08:54Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Set Analysis for fixed value in reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354808#M833892</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although your inner aggregation was restricted via set analysis, your outer aggregation wasn't. So, when you were making selections, the inner aggregation ignored them just the way you wanted, but outer one still honored them showing you only those results which were in the selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In general, it is always a good idea to use the inner set analysis within your outer aggregation set analysis (unless you have a requirement where the row level should not filter based on selections, but your outer one does).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354808#M833892</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-12T16:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: Help on Set Analysis for fixed value in reference line</title>
      <link>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354809#M833893</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny,&lt;/P&gt;&lt;P&gt;After reading your answer, I looked up about inner and outer aggregation and I found a good article.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;A _jive_internal="true" href="https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function" title="https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function"&gt;https://community.qlik.com/blogs/qlikviewdesignblog/2015/10/05/pitfalls-of-the-aggr-function&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you Sunny again for your explanations.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 16:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Help-on-Set-Analysis-for-fixed-value-in-reference-line/m-p/1354809#M833893</guid>
      <dc:creator>diane_yu</dc:creator>
      <dc:date>2017-06-12T16:38:28Z</dc:date>
    </item>
  </channel>
</rss>

