<?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: Average expression based on two distinct text fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Average-expression-based-on-two-distinct-text-fields/m-p/1553573#M457010</link>
    <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I need program to be distinct because there are multiple instances of the same criteria, i.e. program&amp;gt;stage&amp;gt;final...because the data set contains programs that have multiple line items representing different attributes hence the need to create definitions on what to pull.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps?&lt;/P&gt;</description>
    <pubDate>Thu, 07 Mar 2019 12:38:12 GMT</pubDate>
    <dc:creator>ZoeM</dc:creator>
    <dc:date>2019-03-07T12:38:12Z</dc:date>
    <item>
      <title>Average expression based on two distinct text fields</title>
      <link>https://community.qlik.com/t5/QlikView/Average-expression-based-on-two-distinct-text-fields/m-p/1553200#M457008</link>
      <description>&lt;P&gt;Hello Community.&lt;/P&gt;&lt;P&gt;Trying to create an expression that calculates the average based on distinct fields on 2 parameters or more.&amp;nbsp;&lt;/P&gt;&lt;P&gt;From the illustration at the below, would it be possible to change the expression as shown?&lt;/P&gt;&lt;P&gt;=sum(Aggr( DISTINCT Program, Stage='Final'),[#of Days Post VPP])&lt;/P&gt;&lt;P&gt;Program is a text field&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stage is a text field and I need to pull in only Final information&lt;/P&gt;&lt;P&gt;[#of Days Post VPP] is a numerical field and I need to sum this up after the two previous parameters have been met&lt;/P&gt;&lt;P&gt;Thanks for all the help rendered!&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 04:15:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-expression-based-on-two-distinct-text-fields/m-p/1553200#M457008</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2024-11-16T04:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Average expression based on two distinct text fields</title>
      <link>https://community.qlik.com/t5/QlikView/Average-expression-based-on-two-distinct-text-fields/m-p/1553293#M457009</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It's not quite clear what is expected result, anyway....&lt;/P&gt;&lt;P&gt;Aggr() function &lt;STRONG&gt;always&amp;nbsp;&lt;/STRONG&gt;return a virtual table with distinct values (unless explicitly specified nodistinct).&lt;/P&gt;&lt;P&gt;Don't really understand what's the purpose of "&lt;SPAN&gt;Program" field in your case...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Can't you just use sum( {$&amp;lt;Stage={'Final'}&amp;gt;} [#of Days Post VPP]) ?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;//Andrei&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 04:24:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-expression-based-on-two-distinct-text-fields/m-p/1553293#M457009</guid>
      <dc:creator>crusader_</dc:creator>
      <dc:date>2019-03-07T04:24:48Z</dc:date>
    </item>
    <item>
      <title>Re: Average expression based on two distinct text fields</title>
      <link>https://community.qlik.com/t5/QlikView/Average-expression-based-on-two-distinct-text-fields/m-p/1553573#M457010</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;I need program to be distinct because there are multiple instances of the same criteria, i.e. program&amp;gt;stage&amp;gt;final...because the data set contains programs that have multiple line items representing different attributes hence the need to create definitions on what to pull.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Mar 2019 12:38:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Average-expression-based-on-two-distinct-text-fields/m-p/1553573#M457010</guid>
      <dc:creator>ZoeM</dc:creator>
      <dc:date>2019-03-07T12:38:12Z</dc:date>
    </item>
  </channel>
</rss>

