<?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 using a formula variable in set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383513#M491719</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problems correctly using a formula variable in set analysis.&amp;nbsp;&amp;nbsp;&amp;nbsp; In my application I have defined:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable:&amp;nbsp; vPeerGroup&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value:&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;EmpPeerSeq&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=min(EmpPeerSeq))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The formula for the variable appears to evaluate correctly, I can view the value of the variable in a text box with the formula =$(vPeerGroup)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The value will always be text, not numeric.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I'm trying to use this variable in a set analysis equation and cannot seem to get the syntax correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;QtrSum_MetricID&lt;/SPAN&gt;={B20}, &lt;SPAN style="color: #800000;"&gt;QtrSum_PeerGroup&lt;/SPAN&gt;={'$(vPeerGroup)'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;QtrSum_PA_Count&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I can hard-code a Peer Group name, ie, QtrSum_PeerGroup={'Branch'} and it works fine.&amp;nbsp;&amp;nbsp; This is my first time using a variable that is defined as a formula -- there must be something I'm missing regarding correct syntax.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 03 Sep 2012 19:41:28 GMT</pubDate>
    <dc:creator>mjt_childrens</dc:creator>
    <dc:date>2012-09-03T19:41:28Z</dc:date>
    <item>
      <title>using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383513#M491719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am having problems correctly using a formula variable in set analysis.&amp;nbsp;&amp;nbsp;&amp;nbsp; In my application I have defined:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Variable:&amp;nbsp; vPeerGroup&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Value:&amp;nbsp; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;EmpPeerSeq&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=min(EmpPeerSeq))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The formula for the variable appears to evaluate correctly, I can view the value of the variable in a text box with the formula =$(vPeerGroup)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;The value will always be text, not numeric.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-size: 10pt;"&gt;I'm trying to use this variable in a set analysis equation and cannot seem to get the syntax correct.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;QtrSum_MetricID&lt;/SPAN&gt;={B20}, &lt;SPAN style="color: #800000;"&gt;QtrSum_PeerGroup&lt;/SPAN&gt;={'$(vPeerGroup)'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;QtrSum_PA_Count&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I can hard-code a Peer Group name, ie, QtrSum_PeerGroup={'Branch'} and it works fine.&amp;nbsp;&amp;nbsp; This is my first time using a variable that is defined as a formula -- there must be something I'm missing regarding correct syntax.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Thanks.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 19:41:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383513#M491719</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2012-09-03T19:41:28Z</dc:date>
    </item>
    <item>
      <title>Re: using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383514#M491720</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;two things I recognized at a glance:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I miss some brackets-stuff at the end of your vPeerGroup; only a copy/paste - error through posting?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt; &lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;only&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;EmpPeerSeq&lt;/SPAN&gt;={&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080;"&gt;$(=min(EmpPeerSeq))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;EM style="color: #808080;"&gt;&lt;EM style="color: #808080;"&gt; &lt;/EM&gt;&lt;/EM&gt;&lt;EM style="color: #808080;"&gt;&lt;EM style="color: #808080;"&gt;}&amp;gt;}) (or sth like that)&lt;BR /&gt;&lt;/EM&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;second: &lt;/P&gt;&lt;P&gt;Think, it should be with an equal sign, as you use a function in your variable&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;QtrSum_PeerGroup&lt;/SPAN&gt;={'$(=vPeerGroup)'}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HtH&lt;/P&gt;&lt;P&gt;Roland&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 20:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383514#M491720</guid>
      <dc:creator />
      <dc:date>2012-09-03T20:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383515#M491721</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;&lt;SPAN style="font-size: 10pt;"&gt;=&lt;SPAN style="color: #0000ff;"&gt;sum&lt;/SPAN&gt;({$&amp;lt;&lt;SPAN style="color: #800000;"&gt;QtrSum_MetricID&lt;/SPAN&gt;={'B20'}, &lt;SPAN style="color: #800000;"&gt;QtrSum_PeerGroup&lt;/SPAN&gt;={'$(vPeerGroup)'}&amp;gt;} &lt;SPAN style="color: #800000;"&gt;QtrSum_PA_Count&lt;/SPAN&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Hope Help you!&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 20:13:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383515#M491721</guid>
      <dc:creator>pgalvezt</dc:creator>
      <dc:date>2012-09-03T20:13:50Z</dc:date>
    </item>
    <item>
      <title>Re: using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383516#M491722</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Roland, you are correct, cut/paste from Qlikview is lopping off part of my variable formula.&amp;nbsp; Complete variable formula is:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;only &lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;EmpPeerSeq&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;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=min(EmpPeerSeq))}&amp;gt;} EmpPeerGroup)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #808080;"&gt;I tried your suggestion and the suggestion from pgalvezt but it still doesn't evaluate the variable correctly.&amp;nbsp;&amp;nbsp;&amp;nbsp; If I replace the variable with the formula it works correctly:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;/SPAN&gt;&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;({$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QtrSum_MetricID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={B20}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QtrSum_PeerGroup&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;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=only({$&amp;lt;EmpPeerSeq={$(=min(EmpPeerSeq))}&amp;gt;} EmpPeerGroup))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QtrSum_PA_Count&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;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm going to use this in multiple places so I'd like to be able to store the formula as a variable.&amp;nbsp;&amp;nbsp; I just can't seem to get the syntax correct.&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;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 20:29:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383516#M491722</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2012-09-03T20:29:41Z</dc:date>
    </item>
    <item>
      <title>Re: using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383517#M491723</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You said the variable doesn't evaluate correctly when you put in the modifier expression, have you tried to create an expression with just the variable? Does it returns any values, I mean can you see the variable evaluation for each line you have in your chart?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Cesar Accardi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 03 Sep 2012 20:50:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383517#M491723</guid>
      <dc:creator>cesaraccardi</dc:creator>
      <dc:date>2012-09-03T20:50:59Z</dc:date>
    </item>
    <item>
      <title>Re: using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383518#M491724</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cesar,&lt;/P&gt;&lt;P&gt;Yes, I have tried to get my set analysis expression to work only using the variable but get no results.&amp;nbsp;&amp;nbsp; The variable returns a value when I place it in a text box by itself.&amp;nbsp;&amp;nbsp; The only place I can't seem to get it to work correctly is when I use it within a set analysis statement.&amp;nbsp;&amp;nbsp; This leads me to believe it is related to the syntax.&amp;nbsp;&amp;nbsp; I've tried all sorts of combinations and haven't found the "magic format".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 01:18:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383518#M491724</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2012-09-04T01:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383519#M491725</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=sum({$&amp;lt;QtrSum_MetricID={"B20"}, QtrSum_PeerGroup={&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;"=&lt;/STRONG&gt;&lt;/SPAN&gt;$(vPeerGroup)&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;"&lt;/STRONG&gt;&lt;/SPAN&gt;}&amp;gt;} QtrSum_PA_Count)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 05:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383519#M491725</guid>
      <dc:creator>whiteline</dc:creator>
      <dc:date>2012-09-04T05:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383520#M491726</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the answer to my problem.&amp;nbsp;&amp;nbsp;&amp;nbsp; I needed to put an = in front of my variable value in the variable definition.&amp;nbsp;&amp;nbsp; Once I made this change to the definition of the variable my formula works correctly with the following format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&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;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QtrSum_MetricID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={B20}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QtrSum_PeerGroup&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;&lt;STRONG&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;$(=vPeerGroup)&lt;/EM&gt;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;QtrSum_PA_Count&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;Thanks for everyone's advice.&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="color: #808080; font-size: 8pt;"&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 16:25:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383520#M491726</guid>
      <dc:creator>mjt_childrens</dc:creator>
      <dc:date>2012-09-04T16:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: using a formula variable in set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383521#M491727</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Thompson,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;never give up. Sometimes live is easy. I wasn't far away in my first post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;second: &lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Think, it should be with an equal sign, as you use a function in your variable&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM style="font-size: 10pt;"&gt;&lt;SPAN style="color: #800000;"&gt;QtrSum_PeerGroup&lt;/SPAN&gt;={'$(=vPeerGroup)'}&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;RR&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 18:58:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/using-a-formula-variable-in-set-analysis/m-p/383521#M491727</guid>
      <dc:creator />
      <dc:date>2012-09-04T18:58:16Z</dc:date>
    </item>
  </channel>
</rss>

