<?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: Updating a set analysis with a variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415660#M427703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now when I try to do the same using "avg" instead of "sum" it will not work.&amp;nbsp; My second field is null and wipes out the values altogether.&amp;nbsp; Is there a way around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Dec 2017 18:14:57 GMT</pubDate>
    <dc:creator>elstanford0430</dc:creator>
    <dc:date>2017-12-22T18:14:57Z</dc:date>
    <item>
      <title>Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415652#M427695</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am new at this.&amp;nbsp; I have an existing set analysis that I need to update.&lt;/P&gt;&lt;P&gt;The current expression is:&lt;/P&gt;&lt;P&gt;avg({&amp;lt;$(vInpatientCriteria), [HAC Measure] = {'*'}&amp;gt;} [Actual Payments])&lt;/P&gt;&lt;P&gt;$(VinpatientCriteria is equal to a patient type field = I (inpatients)&lt;/P&gt;&lt;P&gt;The set analysis portion of this formula is fine but I need to replace the [Actual Payments} field with a variable formula for Expected Payments ($(Expected Revenue).&amp;nbsp; I have tried everything and searched everywhere and cannot find a way to replace the last field in this expression with a variable in QlikView.&amp;nbsp; Is this possible?&amp;nbsp; If so please help me to write this correctly?&amp;nbsp; I have several graphs that I need to update with this same expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;ELS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:09:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415652#M427695</guid>
      <dc:creator>elstanford0430</dc:creator>
      <dc:date>2017-12-15T20:09:49Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415653#M427696</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the expression for Expected Payment?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:26:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415653#M427696</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-15T20:26:10Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415654#M427697</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Expected Revenue =&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual Charges]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(Adjustments)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Client CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Unbilled Interim Billed CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U AETNA CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Bad Debt CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Self Pay CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Medicare Lump]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Medicare UB IB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Manual CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Medicare Wage Index]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Reserve CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;the Adjustments variable above is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Transaction Classification Code]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'ADJ'}&lt;BR /&gt; &amp;gt;}&lt;BR /&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Payment Detail Amount]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Dec 2017 20:29:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415654#M427697</guid>
      <dc:creator>elstanford0430</dc:creator>
      <dc:date>2017-12-15T20:29:24Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415655#M427698</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would you be able to share a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 01:56:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415655#M427698</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-12-19T01:56:56Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415656#M427699</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try using the Aggr function&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;avg({&amp;lt;$(vInpatientCriteria), [HAC Measure] = {'*'}&amp;gt;} Aggr(&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Actual Charges]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(Adjustments)&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Client CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Unbilled Interim Billed CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U AETNA CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Bad Debt CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Self Pay CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Medicare Lump]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Medicare UB IB]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Manual CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Medicare Wage Index]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) - &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[U Reserve CA]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt; , Dim1) )&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 04:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415656#M427699</guid>
      <dc:creator>qliksus</dc:creator>
      <dc:date>2017-12-19T04:21:24Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415657#M427700</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for this formula.&amp;nbsp; I have not used Aggr and I am not sure what the "Dim1" at the end is.&amp;nbsp; Should that be replaced by something else?&amp;nbsp; I don't actually have a dimension to add at the end.&amp;nbsp; I need the Expected Revenue variable or formula only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 13:24:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415657#M427700</guid>
      <dc:creator>elstanford0430</dc:creator>
      <dc:date>2017-12-19T13:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415658#M427701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure what this request is?&amp;nbsp; All of the fields in the formula for Expected Revenue just contain number values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Dec 2017 13:25:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415658#M427701</guid>
      <dc:creator>elstanford0430</dc:creator>
      <dc:date>2017-12-19T13:25:17Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415659#M427702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I was able to get it to work with this very long formula:&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[Actual Charges])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Client CA])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Unbilled Interim Billed CA])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U AETNA CA])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Bad Debt CA])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Self Pay CA])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Medicare Lump])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Medicare UB IB])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Manual CA])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Medicare Wage Index])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;MonthYear =, [Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "}&lt;/P&gt;&lt;P&gt;&amp;gt;} &lt;/P&gt;&lt;P&gt;[U Reserve CA])&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;P&gt;sum({&amp;lt;&lt;/P&gt;&lt;P&gt;[Transaction Classification Code]={'ADJ'},&lt;/P&gt;&lt;P&gt;MonthYear=, &lt;/P&gt;&lt;P&gt;[Balance Status]={'Z'},&lt;/P&gt;&lt;P&gt;[~NumericMonthYear] = {"&amp;gt;$(=num(addmonths(max(MonthYear), -12))) &amp;lt;=$(=num(addmonths(max(MonthYear),0))) "} &lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;[Payment Detail Amount])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 18:13:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415659#M427702</guid>
      <dc:creator>elstanford0430</dc:creator>
      <dc:date>2017-12-22T18:13:58Z</dc:date>
    </item>
    <item>
      <title>Re: Updating a set analysis with a variable</title>
      <link>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415660#M427703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now when I try to do the same using "avg" instead of "sum" it will not work.&amp;nbsp; My second field is null and wipes out the values altogether.&amp;nbsp; Is there a way around this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Dec 2017 18:14:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Updating-a-set-analysis-with-a-variable/m-p/1415660#M427703</guid>
      <dc:creator>elstanford0430</dc:creator>
      <dc:date>2017-12-22T18:14:57Z</dc:date>
    </item>
  </channel>
</rss>

