<?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: Referencing Expression in SET ANALYSIS in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352476#M415436</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then why don't you post the "real" expression for IRRAdverseCase. Maybe we can still help you figuring out how to get this into shape?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 23 Jun 2017 16:57:36 GMT</pubDate>
    <dc:creator>Peter_Cammaert</dc:creator>
    <dc:date>2017-06-23T16:57:36Z</dc:date>
    <item>
      <title>Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352468#M415428</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I am trying to reference an Expression within SET ANALYSIS, but I am having some difficulties. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I have an expressions as follows: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SET&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;IRRAdverseCase = &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(Region = 'Canada Region',&lt;BR /&gt; 'Scenario I', &lt;BR /&gt; IF(Region = 'US Region',&lt;BR /&gt; 'Scenario I',&lt;BR /&gt; 'Scenario II')) ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I then have an equation, which references the previous expression: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt; {&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Scenario&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; = {'$(IRRAdverseCase)'}&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[ParCr]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;When I try to evaluate the expression, it comes up as zero (0). However, if I hard code the Scenario as follows, it produces the correct result: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin: 0px 0px 0px 0.5in;"&gt;&lt;SPAN style="color: blue; font-family: 'Courier New'; font-size: 9pt;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;(&lt;BR /&gt; {&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;Scenario&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt; = {'Scenario I'}&lt;BR /&gt; &amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: maroon; font-family: 'Courier New'; font-size: 9pt;"&gt;[ParCr]&lt;/SPAN&gt;&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Calibri; font-size: 12pt;"&gt;I am wondering if anyone knows why this is happening. I would appreciate some help with referencing the Scenario, as opposed to hard coding it because it could change. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: Times New Roman; font-size: 12pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352468#M415428</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T16:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352469#M415429</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try like this (Without single quotes around your variable)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Scenario&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = {$(IRRAdverseCase)}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[ParCr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:43:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352469#M415429</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-23T16:43:16Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352470#M415430</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, Michael!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: blue;"&gt;SUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;(&lt;BR /&gt;{&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;Scenario&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt; = {"$(IRRAdverseCase)"}&lt;BR /&gt;&amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: maroon;"&gt;[ParCr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 9pt; font-family: 'Courier New'; color: black;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:44:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352470#M415430</guid>
      <dc:creator>Sergey_Shuklin</dc:creator>
      <dc:date>2017-06-23T16:44:15Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352471#M415431</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You already define variable in Single Quote, So you don't require Single Quote over Set analysis for that variable&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:46:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352471#M415431</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-23T16:46:04Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352472#M415432</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, thanks for the response, but I had tried changing the quotes to "", but it still came up as zero (0) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:46:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352472#M415432</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T16:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352473#M415433</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately I tried this approach, and it the output of the expression was still zero (0). So single quotes, double quotes and no quotes all produce zero (0). &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:46:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352473#M415433</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T16:46:57Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352474#M415434</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually it worked for me with the single quotes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167966_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:47:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352474#M415434</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-23T16:47:08Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352475#M415435</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, actually my expression for '&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;IRRAdverseCase' is actually a series of equations, so it is not just hard-coded -- guessing that might be what is causing the issue. &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:51:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352475#M415435</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T16:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352476#M415436</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then why don't you post the "real" expression for IRRAdverseCase. Maybe we can still help you figuring out how to get this into shape?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 16:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352476#M415436</guid>
      <dc:creator>Peter_Cammaert</dc:creator>
      <dc:date>2017-06-23T16:57:36Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352477#M415437</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What do you see in variable overview after the script runs through?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:02:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352477#M415437</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-23T17:02:10Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352478#M415438</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that I have updated the description to include the equation.&lt;/P&gt;&lt;P&gt;I am thinking that the issue is because I already have quotes in the IF statement for the variable '&lt;SPAN style="color: black; font-family: 'Courier New'; font-size: 9pt;"&gt;IRRAdverseCase &lt;/SPAN&gt;', but I could be wrong&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:03:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352478#M415438</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T17:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352479#M415439</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So you will have only one region selected when you plan to look at this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:05:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352479#M415439</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-23T17:05:06Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352480#M415440</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think we need to see what your variable really is.&amp;nbsp; And see what it is evaluating to.&lt;/P&gt;&lt;P&gt;Sounds like the issue may not be in your set analysis expression but in your variable evaluation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:05:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352480#M415440</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T17:05:27Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352481#M415441</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SUM(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario = {'$(=$(IRRAdverseCase))'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[ParCr])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When US Region or Canada Region is selected&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="167967" alt="Capture.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/167967_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When Asia Region is selected&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="167968" alt="Capture.PNG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/167968_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:07:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352481#M415441</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-23T17:07:42Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352482#M415442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please note that when I look at the Variable Overview, it just has the equation:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'Canada Region',&lt;BR /&gt; 'Scenario I', &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Region&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = 'US Region',&lt;BR /&gt; 'Scenario I',&lt;BR /&gt; 'Scenario II')) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352482#M415442</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T17:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352483#M415443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this (sample attached in one of the below posts)&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;=SUM(&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Scenario = {'$(=$(IRRAdverseCase))'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;[ParCr])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:17:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352483#M415443</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-23T17:17:00Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352484#M415444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much! This worked perfectly.&lt;/P&gt;&lt;P&gt;For my own knowledge, why would I have to put in a double $? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:18:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352484#M415444</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-23T17:18:26Z</dc:date>
    </item>
    <item>
      <title>Re: Referencing Expression in SET ANALYSIS</title>
      <link>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352485#M415445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess the issue is that your variable isn't defined with an equal sign, so it needs to be evaluated before it can bed used in the set analysis syntax...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So inner set analysis evaluates it to 'Scenario I' and outer one is used for set analysis...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Alternatively you can define your variable like this&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;SET IRRAdverseCase = =IF(Region = 'Canada Region', 'Scenario I', IF(Region = 'US Region', 'Scenario I', 'Scenario II'));&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And then this should work&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=SUM(&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;{&amp;lt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario = {'$(=IRRAdverseCase)'}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;gt;}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;[ParCr])&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inner dollar sign expansion is not needed because you have an equal sign in your set statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 23 Jun 2017 17:21:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Referencing-Expression-in-SET-ANALYSIS/m-p/1352485#M415445</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-06-23T17:21:11Z</dc:date>
    </item>
  </channel>
</rss>

