<?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: Convert To Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398229#M424234</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I use the primary key as uniqueRowID?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Aug 2017 07:06:14 GMT</pubDate>
    <dc:creator>ksomosera10</dc:creator>
    <dc:date>2017-08-29T07:06:14Z</dc:date>
    <item>
      <title>Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398227#M424232</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me out? I have this working expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;=NUM(SUM(IF([CategoryGroup] = 'Project'&amp;nbsp; AND "MONTH([CutoffMonth]&amp;amp;'/1/1932')" = Month(Today()), duration)), '#,##0')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;/STRONG&gt;It shows the Sum of "Duration" on works rendered on all the projects for the current month...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you help me out transforming it into a set analysis?&lt;/P&gt;&lt;P&gt;I looked around the internet but I couldn't find any ways to convert it into set analysis.&lt;/P&gt;&lt;P&gt;It is required that I use set analysis instead of this that's why I want to convert these.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 06:14:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398227#M424232</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-08-29T06:14:02Z</dc:date>
    </item>
    <item>
      <title>Re: Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398228#M424233</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using a Set Expression it should look something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num( Sum( { &amp;lt; [CategoryGroup] = {'Project'} , [UniqueRowId] = { "=Month([CutOffMonth]&amp;amp;'/1/1/1932')=Month(Today() " } &amp;gt; } duration ) , '#,##0' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The search expression with a comparison needs to have a field that uniquely identifies each row hence I called this field [UniqueRowId] which is needed to be sure that the right rows are filtered/selected. If you dont have such a field you can create one in your load script by using RowNo() AS UniqueRowId.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:00:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398228#M424233</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-08-29T07:00:36Z</dc:date>
    </item>
    <item>
      <title>Re: Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398229#M424234</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can I use the primary key as uniqueRowID?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:06:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398229#M424234</guid>
      <dc:creator>ksomosera10</dc:creator>
      <dc:date>2017-08-29T07:06:14Z</dc:date>
    </item>
    <item>
      <title>Re: Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398230#M424235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's better to create the Flag in script for If condition, which will make set analysis more simple and optmized&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD *,&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;IF([CategoryGroup] = 'Project'&amp;nbsp; AND "MONTH([CutoffMonth]&amp;amp;'/1/1932')" = Month(Today()), 1) as Flag&lt;/EM&gt;&lt;/STRONG&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;FROM table;&lt;/EM&gt;&lt;/STRONG&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/STRONG&gt;Now you can use below expression&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;NUM(SUM({&amp;lt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;Flag={1}&lt;/EM&gt;&lt;/STRONG&gt;&amp;gt;}duration), '#,##0')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:16:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398230#M424235</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-29T07:16:51Z</dc:date>
    </item>
    <item>
      <title>Re: Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398231#M424236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes you can and this expression is probably better than the first i suggested:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Num( Sum( { &amp;lt; [CategoryGroup] = {'Project'} , [UniqueRowId] = { "=CutOffMonth=Num(Month(Today()))" } &amp;gt; } duration ) , '#,##0' )&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not necessary to use the Month() function as much as the CutOffMonth is numeric in the first place&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:25:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398231#M424236</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-08-29T07:25:25Z</dc:date>
    </item>
    <item>
      <title>Re: Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398232#M424237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You're right about "flags" being more optimal. I would further suggest that the generic name "flag" should be avoided and use a more descriptive name for the field like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; isProjectAndCutOffMonth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so it turns into:&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;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM(SUM({&amp;lt;isProjectAndCutOffMonth&lt;STRONG style="font-style: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit;"&gt;={1}&lt;/EM&gt;&lt;/STRONG&gt;&amp;gt;}duration), '#,##0')&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:30:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398232#M424237</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-08-29T07:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398233#M424238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-users/146975"&gt;petter-s&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Just curious to know that how this expression is better then Flag method. Just wanted to know your input as know sometimes Flag is better and sometimes set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:31:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398233#M424238</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-29T07:31:20Z</dc:date>
    </item>
    <item>
      <title>Re: Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398234#M424239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A flag/indicator is better speedwise. Sometimes the logic needs to be changed by interactions in the UI by the user. Then it is hard to create a load script logic to create a flag in the first place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The flag is performance wise faster as it is precalculated. The Set Expression is more flexible. The Set Expression can always make use of the associative model whereas a flag generated in the load script does not have that available. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:36:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398234#M424239</guid>
      <dc:creator>petter</dc:creator>
      <dc:date>2017-08-29T07:36:50Z</dc:date>
    </item>
    <item>
      <title>Re: Convert To Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398235#M424240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the explanation &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Aug 2017 07:49:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Convert-To-Set-Analysis/m-p/1398235#M424240</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2017-08-29T07:49:57Z</dc:date>
    </item>
  </channel>
</rss>

