<?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: Calculation Question (Set Analysis vs. &amp;quot;If&amp;quot;) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349912#M493496</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tmumaw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is wrong way of using set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first expression will gives the data in loading process i.e 1 by 1 check. When coming to second expression you should assign value to compare. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum( &lt;/SPAN&gt;{$&amp;lt;Year = {2000}, Region = {US, SE, DE, UK, FR}&amp;gt;} Sales&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Year = {“&amp;gt;1978&amp;lt;2004”}&amp;gt;} Sales&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;coming to your expression you should compare either max or min of &lt;/SPAN&gt;Roll_Out_Date_Num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Contract_End_Date_Num = {"&amp;gt;=$(= Min(Roll_Out_Date_Num))"}&amp;gt;} ExtendedAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 14 May 2012 12:43:46 GMT</pubDate>
    <dc:creator>jagannalla</dc:creator>
    <dc:date>2012-05-14T12:43:46Z</dc:date>
    <item>
      <title>Calculation Question (Set Analysis vs. "If")</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349911#M493495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am have a small issue trying to get something to work using set analysis and thought maybe someone out here could help.&amp;nbsp; The first statement works fine, but the second one using set analysis does not.&amp;nbsp; I was wondering if I am doing something wrong.&amp;nbsp; Thanks&amp;nbsp; Thom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum(if(Contract_End_Date_Num &amp;gt;= Roll_Out_Date_Num, ExtendedAmount)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)&amp;nbsp;&amp;nbsp;&amp;nbsp; Sum({&amp;lt;Contract_End_Date_Num = {"&amp;gt;= Roll_Out_Date_Num"}&amp;gt;} ExtendedAmount)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:15:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349911#M493495</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2012-05-14T12:15:10Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Question (Set Analysis vs. "If")</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349912#M493496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Tmumaw,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes it is wrong way of using set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your first expression will gives the data in loading process i.e 1 by 1 check. When coming to second expression you should assign value to compare. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example:&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum( &lt;/SPAN&gt;{$&amp;lt;Year = {2000}, Region = {US, SE, DE, UK, FR}&amp;gt;} Sales&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;sum(&lt;/SPAN&gt; {$&amp;lt;Year = {“&amp;gt;1978&amp;lt;2004”}&amp;gt;} Sales&lt;SPAN class="Bold"&gt; )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="Bold"&gt;coming to your expression you should compare either max or min of &lt;/SPAN&gt;Roll_Out_Date_Num.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Contract_End_Date_Num = {"&amp;gt;=$(= Min(Roll_Out_Date_Num))"}&amp;gt;} ExtendedAmount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps you..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:43:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349912#M493496</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-05-14T12:43:46Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Question (Set Analysis vs. "If")</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349913#M493497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Jagan that worked perfectly.&amp;nbsp; You don't know how long I have been looking at that statement wondering why it would not work.&amp;nbsp; Have a great day.&amp;nbsp; I know I will now.&lt;/P&gt;&lt;P&gt;Thom&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 12:48:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349913#M493497</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2012-05-14T12:48:37Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Question (Set Analysis vs. "If")</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349914#M493498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't get what you said? But one think i want to know whether you had find solution yourself or my solution helped you?&lt;/P&gt;&lt;P&gt;If you find solution can you share with us. B'coz you ticked your post as correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 13:11:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349914#M493498</guid>
      <dc:creator>jagannalla</dc:creator>
      <dc:date>2012-05-14T13:11:20Z</dc:date>
    </item>
    <item>
      <title>Re: Calculation Question (Set Analysis vs. "If")</title>
      <link>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349915#M493499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your's worked perfectly.&amp;nbsp; Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 14 May 2012 14:22:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Calculation-Question-Set-Analysis-vs-quot-If-quot/m-p/349915#M493499</guid>
      <dc:creator>tmumaw</dc:creator>
      <dc:date>2012-05-14T14:22:22Z</dc:date>
    </item>
  </channel>
</rss>

