<?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: Set modifier field greater than field and variable in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55917#M606349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;what exactly is the problem , you get unexpected results &lt;/P&gt;&lt;P&gt;or you get no results at all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Mar 2018 11:57:41 GMT</pubDate>
    <dc:creator>lironbaram</dc:creator>
    <dc:date>2018-03-06T11:57:41Z</dc:date>
    <item>
      <title>Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55916#M606348</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'm trying to compare a field on one part to a field and a variable on another part, inside a set modifier.&lt;/P&gt;&lt;P&gt;Business Rule: Cap&amp;lt;= (Rate + vShock)&lt;/P&gt;&lt;P&gt;The Cap and Rate are fields and the vShock is a variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried the following syntaxes:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum ({&amp;lt;Cap={"&amp;lt;=$(=Rate + $(vShock))"}&amp;gt;} Balance)&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum ({&amp;lt;Cap={"&amp;lt;=($(=Rate) + $(vShock))"}&amp;gt;} Balance)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum ({&amp;lt;Cap={"&amp;lt;=$(=Rate + vShock)"}&amp;gt;} Balance)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[...]&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;I know how to use a set modifier for a variable alone, and for a field alone (dollar expansion) but I'm struggling with merging them.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Any thoughts?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 11:52:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55916#M606348</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T11:52:12Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55917#M606349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi &lt;/P&gt;&lt;P&gt;what exactly is the problem , you get unexpected results &lt;/P&gt;&lt;P&gt;or you get no results at all?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 11:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55917#M606349</guid>
      <dc:creator>lironbaram</dc:creator>
      <dc:date>2018-03-06T11:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55918#M606350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Rather no results&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:09:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55918#M606350</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T12:09:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55919#M606351</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 style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum ({$&amp;lt;Cap={'&amp;lt;=$(=Rate + $(=vShock))'}&amp;gt;} Balance)&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum ({$&amp;lt;Cap={'&amp;lt;=($(=Rate) + $(=vShock))'}&amp;gt;} Balance)&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-size: 13.3333px; font-family: inherit;"&gt;sum ({$&amp;lt;Cap={'&amp;lt;=$(=Rate + $(=vShock)'}&amp;gt;} Balance)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:13:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55919#M606351</guid>
      <dc:creator>Chanty4u</dc:creator>
      <dc:date>2018-03-06T12:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55920#M606352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What dimension are you trying to evaluate this condition on?&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Cap&amp;lt;= (Rate + vShock)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, let's say you have a field called Stock and you only want to find the Sum of balance where the above condition is true for a stock... then you can try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Sum({&amp;lt;Stock = {"=Cap &amp;lt;= Rate + $(vShock)"}&amp;gt;} Balance)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:15:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55920#M606352</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-06T12:15:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55921#M606353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;sum ({&amp;lt;Cap={"&amp;lt;=$(=&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;&lt;STRONG&gt;Rate&lt;/STRONG&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt; + $(vShock))"}&amp;gt;} Balance)&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You can't have a naked field* on the RHS of a set expression. As the expression is calculated before the table is built, [Rate] will evaluate to null at this point since there is more than one possible value.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;You can do this with a Sum(If()) statement - although this may perform poorly if your data set is not small. You can set a flag in the load script - although if vShock is intended to be dynamic, then the load script is not really an option. Finally, if there is some identifying field in the model that ties the Cap and Rate fields, you could use that in your set expression. &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Edit - this last is the option Sunny has proposed.&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;A sum(if()) implementation would be&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Sum(If(Cap &amp;lt;= &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Rate&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt; + $(vShock), Balance))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;or even simpler (if vShock is a number):&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt;Sum(If(Cap &amp;lt;= &lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;EM&gt;Rate&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;EM&gt; + vShock, Balance))&lt;/EM&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;*A naked field reference is a reference to a field outside of an aggregation function (like Sum(), Avg(), Max()).&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:19:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55921#M606353</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2018-03-06T12:19:51Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55922#M606355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Didnt Work. Will upload a QVW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:34:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55922#M606355</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T12:34:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55923#M606357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The condition is on the CAP field. Will upload a QVW&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:34:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55923#M606357</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T12:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55924#M606359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A single cap will ever have one and only one Rate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:37:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55924#M606359</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-06T12:37:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55925#M606360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry to ask this but how can i attach a qvw to send you?&lt;/P&gt;&lt;P&gt;Meanwhile, here is an example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[&lt;/P&gt;&lt;P&gt;Deal, Cap, Rate, Balance&lt;/P&gt;&lt;P&gt;1, 5, 4, 100&lt;/P&gt;&lt;P&gt;2, 5, 2, 200&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Shock: 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Deal 1, 5 &amp;lt;= 4 +2 ...True&lt;/P&gt;&lt;P&gt;For Deal 2, ... False&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The result should be: 100&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:42:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55925#M606360</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T12:42:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55926#M606361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;Sorry to ask this but how can i attach a qvw to send you?&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:43:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55926#M606361</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T12:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55927#M606362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-16454"&gt;Uploading a Sample&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:43:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55927#M606362</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-06T12:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55928#M606363</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;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Sum({&amp;lt;&lt;SPAN style="color: #ff0000;"&gt;Deal&lt;/SPAN&gt; = {"=Cap &amp;lt;= Rate + $(vShock)"}&amp;gt;} Balance)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:44:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55928#M606363</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-06T12:44:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55929#M606364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1)I'm actually changing from SUM(IF()) to set modifier to gain performance.&lt;/P&gt;&lt;P&gt;2)vShock is dynamic yes.&lt;/P&gt;&lt;P&gt;3) Cap and Rate are linked and in the same table. Rate is the interest rate on an account. Cap is the maximum interest rate on that same account&lt;/P&gt;&lt;P&gt;4) Although it seems very interesting, I'm not sure I fully understand the naked field concept. Is the following expression (that works) a naked field example: sum({&amp;lt;fiedl1={$(=field2)}&amp;gt;}balance)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:48:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55929#M606364</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T12:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55930#M606365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don't know why but I can only see the Mention and App features. The Attach is not visible.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:49:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55930#M606365</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T12:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55931#M606366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check the attached image and qvw&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/195444_Capture.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:51:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55931#M606366</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-06T12:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55932#M606367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sunny it worked! Can you please explain to me what you had to put Deal?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55932#M606367</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T12:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55933#M606368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I can, but I think HIC did a great job of explaining this here&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/message/1415027"&gt;Re: Why i am not getting same result with Above function ?&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 12:58:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55933#M606368</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-03-06T12:58:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55934#M606369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No man like HIC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again many thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Bryan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Mar 2018 13:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55934#M606369</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-06T13:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set modifier field greater than field and variable</title>
      <link>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55935#M606370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe you can help me with the following. This is a &lt;STRONG&gt;continuation&lt;/STRONG&gt; of yesterday's discussion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have 3 scenarios. 2 of them worked with the syntax you gave me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario 1: Rate+Shock &amp;gt; Cap&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario 2: Rate+Shock &amp;lt; Floor&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;How do you solve it with 2 conditions&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Scenario 3: Floor&amp;lt;Rate+Shock and &lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;Rate+Shock&amp;lt;Cap &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I tried the below syntaxes:&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;SPAN&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Deal&lt;/SPAN&gt; = {"=Floor&amp;lt;(Rate + $(vShock)) &lt;SPAN&gt;&lt;STRONG&gt;Cap&amp;gt;(Rate + $(vShock))&lt;/STRONG&gt;&lt;/SPAN&gt;"}&amp;gt;} Balance)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Deal&lt;/SPAN&gt; = {"=Floor &amp;lt; Rate + $(vShock) &amp;lt; Cap"}&amp;gt;} Balance)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;Finally,&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG&gt;&lt;STRONG style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Sum({&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Deal&lt;/SPAN&gt; = {"=Floor &amp;lt; Rate + $(vShock)"}, &lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;Deal&lt;/SPAN&gt; = {"=Cap &amp;gt; Rate + $(vShock)"}&lt;/STRONG&gt;&lt;/SPAN&gt;&amp;gt;} Balance).&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;This last one returned a result but not the one i want as i need the set to be evaluated on the same row. A rate has one cap and one floor only&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;Many Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Mar 2018 09:19:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-modifier-field-greater-than-field-and-variable/m-p/55935#M606370</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2018-03-07T09:19:25Z</dc:date>
    </item>
  </channel>
</rss>

