<?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: Multiple Conditions In A Set Analysis Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602191#M681361</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your second expression became:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s5" style="font-family: Helvetica; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-family: Helvetica; color: #3d3d3d;"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s5" style="font-family: Helvetica; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Year&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt; = {&lt;/SPAN&gt;&lt;SPAN class="s4" style="font-family: Helvetica; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;$(=max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt;}, RowType&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN class="s3" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;= {&lt;/SPAN&gt;6}&amp;gt;} Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Mar 2014 14:59:30 GMT</pubDate>
    <dc:creator>alexandros17</dc:creator>
    <dc:date>2014-03-20T14:59:30Z</dc:date>
    <item>
      <title>Multiple Conditions In A Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602187#M681357</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 trying to calculate the YTD sales amount net of YTD freight charges.&amp;nbsp; The first expression calculates the YTD sales amount and the second expression calculates the freight amount.&amp;nbsp; I added them together to compute the net YTD sales.&amp;nbsp; Both expressions work with a Year and Month list box (See attached screen).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue is that I am not getting any numbers.&amp;nbsp; I confirmed that the first expression works, but when I add on the second expression the whole thing fails.&amp;nbsp; The second expression is a copy of the first one with the additional script at the end (see underlined text below) that represents the freight amount.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe the way I added the underlined text is wrong, but not sure how to correct it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica;"&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;({$&amp;lt;&lt;/SPAN&gt;Year&lt;SPAN class="s3"&gt; = {&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;}, &lt;/SPAN&gt;Month&lt;SPAN class="s3"&gt; = {&lt;/SPAN&gt;"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"&lt;SPAN class="s3"&gt;}&amp;gt;} &lt;/SPAN&gt;MainAmount&lt;SPAN class="s3"&gt;)&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;&lt;STRONG&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt; +&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN class="s5"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s5"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;{$&amp;lt;&lt;/SPAN&gt;Year&lt;SPAN class="s3"&gt; = {&lt;/SPAN&gt;&lt;SPAN class="s4"&gt;&lt;STRONG&gt;&lt;EM&gt;$(=max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3"&gt;}, &lt;/SPAN&gt;Month&lt;SPAN class="s3"&gt; = {&lt;/SPAN&gt;"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"&lt;SPAN class="s3"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #ffff00; text-decoration: underline;"&gt;&lt;SPAN style="color: #ff0000; text-decoration: underline;"&gt;Amount&lt;SPAN class="s3"&gt; = {&lt;/SPAN&gt;"&amp;lt;$(=RowType{6})&amp;gt;} Amount))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: Helvetica;"&gt;Thank you in a advance for any help on this. &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:39:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602187#M681357</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-03-20T14:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions In A Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602188#M681358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If Amount is a value you are trying to set a condition on a value doing&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Helvetica; text-decoration: underline;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #ff0000;"&gt; = {'&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: Helvetica; text-decoration: underline;"&gt;&amp;lt;$(=RowType{6}')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;What is RowType ??? &lt;/P&gt;&lt;P&gt;Do you want to verify if AmountType is Less or Equal to a code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:49:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602188#M681358</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-20T14:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions In A Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602189#M681359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;At the very least you need to close the quoting and the curly braces:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000; font-family: Helvetica; text-decoration: underline;"&gt;Amount&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #ff0000;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-family: Helvetica; text-decoration: underline;"&gt;"&amp;lt;$(=RowType{6})"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;And I have no idea if RowType{6} is anything meaningful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:50:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602189#M681359</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-20T14:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions In A Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602190#M681360</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;RowType is a field that contains the different amount types.&amp;nbsp; The number 6 represents the freight amount as follows&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RowType = 6 which equals Freight Amount.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:55:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602190#M681360</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-03-20T14:55:01Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions In A Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602191#M681361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your second expression became:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="s5" style="font-family: Helvetica; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s2" style="font-family: Helvetica; color: #3d3d3d;"&gt;sum&lt;/SPAN&gt;&lt;SPAN class="s5" style="font-family: Helvetica; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Year&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt; = {&lt;/SPAN&gt;&lt;SPAN class="s4" style="font-family: Helvetica; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;$(=max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;Month&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: Helvetica;"&gt;"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"&lt;/SPAN&gt;&lt;SPAN class="s3" style="font-family: Helvetica; color: #3d3d3d;"&gt;}, RowType&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000; font-style: inherit; text-decoration: underline; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN class="s3" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;= {&lt;/SPAN&gt;6}&amp;gt;} Amount))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 14:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602191#M681361</guid>
      <dc:creator>alexandros17</dc:creator>
      <dc:date>2014-03-20T14:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions In A Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602192#M681362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Then Amount={"&amp;lt;$(=RowType{6})"} doesn't make sense. If you want to sum the amounts where RowType is smaller than 6 you can use &lt;EM&gt;RowType={&amp;lt;6}. &lt;/EM&gt;If you want only RowType 6 then use&lt;EM&gt; &lt;EM&gt;RowType={6}.&lt;/EM&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;Year = {$(=max(Year))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"}&amp;gt;} MainAmount))&lt;/P&gt;&lt;P&gt;+&lt;/P&gt;&lt;P&gt;(sum({$&amp;lt;Year = {$(=max(Year))}, Month = {"&amp;lt;=$(=max({&amp;lt;Year={$(=max(Year))}&amp;gt;} Month))"},RowType={6}&amp;gt;} Amount))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:03:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602192#M681362</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-03-20T15:03:22Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions In A Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602193#M681363</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I see your point.&amp;nbsp; Thank you!&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:07:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602193#M681363</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-03-20T15:07:31Z</dc:date>
    </item>
    <item>
      <title>Re: Multiple Conditions In A Set Analysis Expression</title>
      <link>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602194#M681364</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Alessandro.&amp;nbsp; That corrected the problem.&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Mar 2014 15:08:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Multiple-Conditions-In-A-Set-Analysis-Expression/m-p/602194#M681364</guid>
      <dc:creator>asmithids</dc:creator>
      <dc:date>2014-03-20T15:08:34Z</dc:date>
    </item>
  </channel>
</rss>

