<?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 Set Analysis using several fields in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231409#M504746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;that returns zero, whereas the if statement returns a value. The SelContractID is a totally non-connected table whereas the ContractID is connected to the data ...&lt;/P&gt;&lt;P&gt;I cannot see in your set where you reference the ContractID / SelContractID except with the $ for selected data ...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 Nov 2009 20:02:14 GMT</pubDate>
    <dc:creator>picturebox</dc:creator>
    <dc:date>2009-11-04T20:02:14Z</dc:date>
    <item>
      <title>Set Analysis using several fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231407#M504744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Community,&lt;/P&gt;&lt;P&gt;I am trying to use set analysis over several fields, but am having a problem with the syntax. Maybe someone can help?&lt;/P&gt;&lt;P&gt;Here is my problem: This set&lt;/P&gt;&lt;P&gt;&lt;I&gt;&lt;/I&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;num(SUM( {$ &amp;lt;CW ={&lt;B&gt;&lt;I&gt;'$(vMaxCW)'&lt;/I&gt;&lt;/B&gt;}, SalesQuarter= , Salesmonth=, SalesWeek= &amp;gt;} UnitSalesIncl), '#.##0 kr')&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;fixes the Calendar Week CW to the value of vMaxCW, no matter what other calendar entries are chosen. Works great. Then I also have another set which sums over the same time period as above, but only for a selected contract id SelContractID. Here I am using an if statement for the date control which is not good as whenever you select another date, this invalidates ... so here is the original:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;num(sum({$&amp;lt; ContractID = SelContractID &amp;gt;} if (InWeek(SalesWeek, MaxSalesWeek,0), UnitSalesIncl, 0)),'#.##0 kr')&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;As you can imagine, I want to combine the 2 sets and get rid of the IF. I cannot seem to get the syntax to work though.&lt;/P&gt;&lt;P&gt;Can someone help me please?&lt;/P&gt;&lt;P&gt;Thanks and best regards,&lt;/P&gt;&lt;P&gt;Petra&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, 04 Nov 2009 19:32:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231407#M504744</guid>
      <dc:creator>picturebox</dc:creator>
      <dc:date>2009-11-04T19:32:06Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using several fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231408#M504745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try this:&lt;/P&gt;&lt;P&gt;num(SUM( {$ &amp;lt;CW ={&lt;B&gt;&lt;I&gt;"$(=$(vMaxCW))&lt;/I&gt;&lt;/B&gt;"}, SalesQuarter= , Salesmonth=, SalesWeek= &amp;gt;} UnitSalesIncl), '#.##0 kr')&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Janusz&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 19:40:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231408#M504745</guid>
      <dc:creator />
      <dc:date>2009-11-04T19:40:40Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using several fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231409#M504746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;that returns zero, whereas the if statement returns a value. The SelContractID is a totally non-connected table whereas the ContractID is connected to the data ...&lt;/P&gt;&lt;P&gt;I cannot see in your set where you reference the ContractID / SelContractID except with the $ for selected data ...&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Petra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 20:02:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231409#M504746</guid>
      <dc:creator>picturebox</dc:creator>
      <dc:date>2009-11-04T20:02:14Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using several fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231410#M504747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;additional Info: I am using 8.5 not 9.0 ....&lt;/P&gt;&lt;P&gt;Appreciate any suggestions...&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Petra&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 22:15:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231410#M504747</guid>
      <dc:creator>picturebox</dc:creator>
      <dc:date>2009-11-04T22:15:29Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using several fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231411#M504748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what happens if you add your addition condition for the selected contract, into the same Set Analysis expression? I should work just fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV id="refHTML"&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2009 23:32:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231411#M504748</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2009-11-04T23:32:35Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using several fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231412#M504749</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-style: italic"&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is where I am having the problem.... how do I set the different brackets so it accepts both sets? LIke the below it only sees the second set and ignores the first set ...&lt;/P&gt;&lt;P&gt;=&lt;/P&gt;&lt;P&gt;&lt;/P&gt;num(SUM( {$&amp;lt; ContractID = SelContractID &amp;gt;} {$&amp;lt;CW ={&lt;B&gt;&lt;I&gt;'$(vMaxCW)'&lt;/I&gt;&lt;/B&gt;}, SalesQuarter= , Salesmonth=, SalesWeek= &amp;gt;} UnitSalesIncl), '#.##0 kr' &lt;P&gt;)&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt; &lt;P&gt;&lt;/P&gt;&lt;P&gt;Petra&lt;/P&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 17:04:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231412#M504749</guid>
      <dc:creator>picturebox</dc:creator>
      <dc:date>2009-11-05T17:04:26Z</dc:date>
    </item>
    <item>
      <title>Set Analysis using several fields</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231413#M504750</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;okay got it! Looks like this:&lt;/P&gt;&lt;P&gt;=num(SUM( {$&amp;lt; ContractID = SelContractID , CW ={&lt;B&gt;&lt;I&gt;'$(vMaxCW)'&lt;/I&gt;&lt;/B&gt;}, SalesQuarter= , Salesmonth=, SalesWeek= &amp;gt;} UnitSalesIncl), '#.##0 kr')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Nov 2009 17:39:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-using-several-fields/m-p/231413#M504750</guid>
      <dc:creator>picturebox</dc:creator>
      <dc:date>2009-11-05T17:39:18Z</dc:date>
    </item>
  </channel>
</rss>

