<?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 expression using dual in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111222#M17320</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have the expression below that I need to use for a target.&amp;nbsp; it works for the initial piece without the second part of it where I have the service Provider numbers &amp;lt;&amp;gt; etc but not for the whole lot.&amp;nbsp; Any help appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(ServiceProviderNum='5099',DUAL('&amp;lt;=' &amp;amp;'5.0','5.0'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5006',DUAL('&amp;lt;=' &amp;amp;'6.2','6.2'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5004',DUAL('&amp;lt;=' &amp;amp;'4.2','4.2'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5007',DUAL('&amp;lt;=' &amp;amp;'5.4','5.4'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5005',DUAL('&amp;lt;=' &amp;amp;'5.3','5.3'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5008',DUAL('&amp;lt;=' &amp;amp;'4.6','4.6'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5002',DUAL('&amp;lt;=' &amp;amp;'4.1','4.1'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum&amp;lt;&amp;gt;'5099' or ServiceProviderNum&amp;lt;&amp;gt;'5006' or ServiceProviderNum&amp;lt;&amp;gt;'5004' or ServiceProviderNum&amp;lt;&amp;gt;'5007'&lt;/P&gt;&lt;P&gt;and ServiceProviderNum&amp;lt;&amp;gt;'5005' or ServiceProviderNum&amp;lt;&amp;gt;'5008' or ServiceProviderNum &amp;lt;&amp;gt;'5002',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DUAL('&amp;lt;=' &amp;amp; NUM(AVG( {$&amp;lt;TargetCode={'CPA12'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={$(vnp_MaxReferredMMMinus1)}, ReferredMM=, YearMonth=&amp;gt;}&amp;nbsp; [Target]), &lt;/P&gt;&lt;P&gt;AVG( {$&amp;lt;TargetCode={'CPA12'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={$(vnp_MaxReferredMMMinus1)}, ReferredMM=, YearMonth=&amp;gt;}&amp;nbsp; [Target]), format.decimal1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Aug 2018 13:06:09 GMT</pubDate>
    <dc:creator>rcorcoran</dc:creator>
    <dc:date>2018-08-22T13:06:09Z</dc:date>
    <item>
      <title>expression using dual</title>
      <link>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111222#M17320</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi I have the expression below that I need to use for a target.&amp;nbsp; it works for the initial piece without the second part of it where I have the service Provider numbers &amp;lt;&amp;gt; etc but not for the whole lot.&amp;nbsp; Any help appreciated&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(ServiceProviderNum='5099',DUAL('&amp;lt;=' &amp;amp;'5.0','5.0'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5006',DUAL('&amp;lt;=' &amp;amp;'6.2','6.2'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5004',DUAL('&amp;lt;=' &amp;amp;'4.2','4.2'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5007',DUAL('&amp;lt;=' &amp;amp;'5.4','5.4'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5005',DUAL('&amp;lt;=' &amp;amp;'5.3','5.3'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5008',DUAL('&amp;lt;=' &amp;amp;'4.6','4.6'),&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum='5002',DUAL('&amp;lt;=' &amp;amp;'4.1','4.1'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(ServiceProviderNum&amp;lt;&amp;gt;'5099' or ServiceProviderNum&amp;lt;&amp;gt;'5006' or ServiceProviderNum&amp;lt;&amp;gt;'5004' or ServiceProviderNum&amp;lt;&amp;gt;'5007'&lt;/P&gt;&lt;P&gt;and ServiceProviderNum&amp;lt;&amp;gt;'5005' or ServiceProviderNum&amp;lt;&amp;gt;'5008' or ServiceProviderNum &amp;lt;&amp;gt;'5002',&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DUAL('&amp;lt;=' &amp;amp; NUM(AVG( {$&amp;lt;TargetCode={'CPA12'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={$(vnp_MaxReferredMMMinus1)}, ReferredMM=, YearMonth=&amp;gt;}&amp;nbsp; [Target]), &lt;/P&gt;&lt;P&gt;AVG( {$&amp;lt;TargetCode={'CPA12'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={$(vnp_MaxReferredMMMinus1)}, ReferredMM=, YearMonth=&amp;gt;}&amp;nbsp; [Target]), format.decimal1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:06:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111222#M17320</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2018-08-22T13:06:09Z</dc:date>
    </item>
    <item>
      <title>Re: expression using dual</title>
      <link>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111223#M17321</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;Conditions like this will always be true: ServiceProviderNum&amp;lt;&amp;gt;'5099' &lt;STRONG&gt;or&lt;/STRONG&gt; ServiceProviderNum&amp;lt;&amp;gt;'5006. A single ServiceProviderNum will always be unequal to one of two different values. I think you want to replace the or's with and's.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:09:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111223#M17321</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-08-22T13:09:34Z</dc:date>
    </item>
    <item>
      <title>Re: expression using dual</title>
      <link>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111224#M17322</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Gysbert&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did have and and have now replaced again to and but it is still not working&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:17:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111224#M17322</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2018-08-22T13:17:52Z</dc:date>
    </item>
    <item>
      <title>Re: expression using dual</title>
      <link>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111225#M17323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you post a small qlikview document that demonstrates the problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 13:53:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111225#M17323</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2018-08-22T13:53:57Z</dc:date>
    </item>
    <item>
      <title>Re: expression using dual</title>
      <link>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111226#M17324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(ServiceProviderNum='5099',DUAL('&amp;lt;=' &amp;amp;'5.0','5.0'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5006',DUAL('&amp;lt;=' &amp;amp;'6.2','6.2'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5004',DUAL('&amp;lt;=' &amp;amp;'4.2','4.2'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5007',DUAL('&amp;lt;=' &amp;amp;'5.4','5.4'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5005',DUAL('&amp;lt;=' &amp;amp;'5.3','5.3'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5008',DUAL('&amp;lt;=' &amp;amp;'4.6','4.6'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5002',DUAL('&amp;lt;=' &amp;amp;'4.1','4.1'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Not (Match(ServiceProviderNum,5099,5006,5004,5007,5005,5008,5002)), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DUAL('&amp;lt;=' &amp;amp; NUM(&lt;/P&gt;&lt;P&gt;AVG( {$&amp;lt;TargetCode={'CPA12'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={$(vnp_MaxReferredMMMinus1)}, ReferredMM=, YearMonth=&amp;gt;}&amp;nbsp; [Target]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG( {$&amp;lt;TargetCode={'CPA12'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={$(vnp_MaxReferredMMMinus1)}, ReferredMM=, YearMonth=&amp;gt;}&amp;nbsp; [Target]), format.decimal1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 16:08:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111226#M17324</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-08-22T16:08:17Z</dc:date>
    </item>
    <item>
      <title>Re: expression using dual</title>
      <link>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111227#M17325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=if(ServiceProviderNum='5099',DUAL('&amp;lt;=' &amp;amp;'5.0','5.0'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5006',DUAL('&amp;lt;=' &amp;amp;'6.2','6.2'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5004',DUAL('&amp;lt;=' &amp;amp;'4.2','4.2'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5007',DUAL('&amp;lt;=' &amp;amp;'5.4','5.4'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5005',DUAL('&amp;lt;=' &amp;amp;'5.3','5.3'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5008',DUAL('&amp;lt;=' &amp;amp;'4.6','4.6'),&lt;/P&gt;&lt;P&gt; if(ServiceProviderNum='5002',DUAL('&amp;lt;=' &amp;amp;'4.1','4.1'),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(Not (Match(ServiceProviderNum,'5099','5006','5004','5007','5005','5008','5002')), &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DUAL('&amp;lt;=' &amp;amp; NUM(&lt;/P&gt;&lt;P&gt;AVG( {$&amp;lt;TargetCode={'CPA12'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={$(vnp_MaxReferredMMMinus1)}, ReferredMM=, YearMonth=&amp;gt;}&amp;nbsp; [Target]),&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AVG( {$&amp;lt;TargetCode={'CPA12'}, TargetReferredYYYY={$(vnp_YearCurrentMonthMinus1)}, TargetReferredMM={$(vnp_MaxReferredMMMinus1)}, ReferredMM=, YearMonth=&amp;gt;}&amp;nbsp; [Target]), format.decimal1))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ))))))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Aug 2018 16:09:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111227#M17325</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-08-22T16:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: expression using dual</title>
      <link>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111228#M17326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Bala&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you so much that worked I just had the decimal variable in the wrong place above but changed that too and all ok&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rhona&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Aug 2018 10:10:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/expression-using-dual/m-p/111228#M17326</guid>
      <dc:creator>rcorcoran</dc:creator>
      <dc:date>2018-08-23T10:10:37Z</dc:date>
    </item>
  </channel>
</rss>

