<?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 Aggr Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Aggr-Expression/m-p/1204332#M877075</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement&amp;nbsp; to convert normal if condition expression to aggr expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If Condition Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((sum( if(Payor_ID = 'MDTX' and Adjudicated=0 and High_Risk_NIPT = 'yes' and (Test_Family_2 = 'NIPT' or Test_Family_2 = 'NIPTMD'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; High_Risk_Medicaid*.8,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Payor_Group_3 = 'State Medicaid' and Adjudicated=0 and High_Risk_NIPT = 'yes' and (Test_Family_2 = 'NIPT' or Test_Family_2 = 'NIPTMD'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; High_Risk_Medicaid)))&lt;/P&gt;&lt;P&gt;&amp;nbsp; +&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum( if(Payor_Group_3 = 'State Medicaid' and Adjudicated=0 and Test_Family_2 = 'HCS', HCS_Medicaid))&lt;/P&gt;&lt;P&gt;)/Count(distinct Accession_ID)&lt;/P&gt;&lt;P&gt;)* %Medicaid_attainable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AGGR Expression (I wrote):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((sum(aggr((if(Payor_ID = 'MDTX' and Adjudicated=0 and High_Risk_NIPT like 'Yes' and (Test_Family_2 = 'NIPT' or Test_Family_2 = 'NIPTMD'), &lt;/P&gt;&lt;P&gt;High_Risk_Medicaid*.8,&lt;/P&gt;&lt;P&gt;if(Payor_Group_3 = 'State Medicaid' and Adjudicated=0 and High_Risk_NIPT = 'yes' and (Test_Family_2 = 'NIPT' or Test_Family_2 = 'NIPTMD'),&lt;/P&gt;&lt;P&gt;High_Risk_Medicaid))), Accession_ID))&lt;/P&gt;&lt;P&gt; +&lt;/P&gt;&lt;P&gt;sum(aggr((if(Payor_Group_3 = 'State Medicaid' and Adjudicated=0 and Test_Family_2 = 'HCS', HCS_Medicaid)), Accession_ID)))&lt;/P&gt;&lt;P&gt;&amp;nbsp; / count(distinct Accession_ID)) * %Medicaid_attainable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just modified sum calculation to distinct Accession_ID.&lt;/P&gt;&lt;P&gt;But surprisingly its not working(I mean am not getting equal vales for both expressions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rohini. M&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression/m-p/1204332#M877075</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Developers,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement&amp;nbsp; to convert normal if condition expression to aggr expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If Condition Expression:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((sum( if(Payor_ID = 'MDTX' and Adjudicated=0 and High_Risk_NIPT = 'yes' and (Test_Family_2 = 'NIPT' or Test_Family_2 = 'NIPTMD'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; High_Risk_Medicaid*.8,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(Payor_Group_3 = 'State Medicaid' and Adjudicated=0 and High_Risk_NIPT = 'yes' and (Test_Family_2 = 'NIPT' or Test_Family_2 = 'NIPTMD'),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; High_Risk_Medicaid)))&lt;/P&gt;&lt;P&gt;&amp;nbsp; +&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum( if(Payor_Group_3 = 'State Medicaid' and Adjudicated=0 and Test_Family_2 = 'HCS', HCS_Medicaid))&lt;/P&gt;&lt;P&gt;)/Count(distinct Accession_ID)&lt;/P&gt;&lt;P&gt;)* %Medicaid_attainable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;AGGR Expression (I wrote):&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;((sum(aggr((if(Payor_ID = 'MDTX' and Adjudicated=0 and High_Risk_NIPT like 'Yes' and (Test_Family_2 = 'NIPT' or Test_Family_2 = 'NIPTMD'), &lt;/P&gt;&lt;P&gt;High_Risk_Medicaid*.8,&lt;/P&gt;&lt;P&gt;if(Payor_Group_3 = 'State Medicaid' and Adjudicated=0 and High_Risk_NIPT = 'yes' and (Test_Family_2 = 'NIPT' or Test_Family_2 = 'NIPTMD'),&lt;/P&gt;&lt;P&gt;High_Risk_Medicaid))), Accession_ID))&lt;/P&gt;&lt;P&gt; +&lt;/P&gt;&lt;P&gt;sum(aggr((if(Payor_Group_3 = 'State Medicaid' and Adjudicated=0 and Test_Family_2 = 'HCS', HCS_Medicaid)), Accession_ID)))&lt;/P&gt;&lt;P&gt;&amp;nbsp; / count(distinct Accession_ID)) * %Medicaid_attainable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have just modified sum calculation to distinct Accession_ID.&lt;/P&gt;&lt;P&gt;But surprisingly its not working(I mean am not getting equal vales for both expressions)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone please help me to solve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rohini. M&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/Aggr-Expression/m-p/1204332#M877075</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression/m-p/1204333#M877077</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to provide application which demonstrates the o/p&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 01:53:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression/m-p/1204333#M877077</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2016-10-19T01:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Aggr Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Aggr-Expression/m-p/1204334#M877078</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry Anil I cannot provide the application. But here is the sample output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 294px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl63" height="17" width="98"&gt;Month&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; normal IF&lt;/TD&gt;&lt;TD class="xl63" style="border-left: none;" width="98"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; aggr if&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl64" height="17" style="border-top: none;"&gt; &lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$3.86&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;$4.23&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;11/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;9/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;2/1/2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.00&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;7/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;8/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;12/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;10/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;1/1/2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;5/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.01&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;6/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.02&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;1/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.02&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.02&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;4/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.03&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;3/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.03&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.03&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;2/1/2015&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.04&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.04&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;3/1/2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.24&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.24&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;5/1/2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.70&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.79&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;4/1/2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.71&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.72&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;7/1/2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$0.99&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$1.11&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl66" height="17" style="border-top: none;"&gt;6/1/2016&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$1.05&lt;/TD&gt;&lt;TD align="right" class="xl67" style="border-top: none; border-left: none;"&gt;$1.18&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am not getting equal amount for both expressions. I am just testing whether my aggr expression is correct or do I need to do some changes.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Oct 2016 17:13:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Aggr-Expression/m-p/1204334#M877078</guid>
      <dc:creator />
      <dc:date>2016-10-19T17:13:06Z</dc:date>
    </item>
  </channel>
</rss>

