<?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: &amp;quot;Set Analysis&amp;quot; in Load Script in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412560#M615253</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, that is correct. I need only the rows that meet one of the two criteria above.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I will try Only(), thanks for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 16 Aug 2017 17:11:28 GMT</pubDate>
    <dc:creator>blpetosa</dc:creator>
    <dc:date>2017-08-16T17:11:28Z</dc:date>
    <item>
      <title>"Set Analysis" in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412556#M615249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am basically trying to recreate set analysis in my load script. I have different types of "Goal_Types" that I need to base the output on.&lt;/P&gt;&lt;P&gt;The set analysis that I use for visualizations is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Goal_Type={4}&amp;gt;} Goal) &lt;/P&gt;&lt;P&gt;This gives me a value where goal type is 4.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to get this into the load script so it only brings in rows where the goal is less than 30% of the actual. I got around this before by only loading in Goal_Type 4, and using this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE event/Goal &amp;lt;.3&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I have to bring in 2 more Goal_Types (7 &amp;amp; 8), so I need to base the logic off of the different types. I need something like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHERE event/(&lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;Goal_Type={4}&amp;gt;} Goal))&amp;lt;.3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;OR &lt;SPAN style="font-size: 13.3333px;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;Goal_Type={8}&amp;gt;} Goal)) - &lt;SPAN style="font-size: 13.3333px;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;sum({&amp;lt;Goal_Type={7}&amp;gt;} Goal))) &amp;gt; 0&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thanks in advance for any help you can offer,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Ben&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 16:27:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412556#M615249</guid>
      <dc:creator>blpetosa</dc:creator>
      <dc:date>2017-08-16T16:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: "Set Analysis" in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412557#M615250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is this sum you are doing is per event?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 16:38:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412557#M615250</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-16T16:38:04Z</dc:date>
    </item>
    <item>
      <title>Re: "Set Analysis" in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412558#M615251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Each row has a different unique identifier that has an "event" total, and I only want rows where the "Goal" is than 30% of it. I used the sum aggregation because the value is stored as a character (which I converted with NUM) in the back end, and when I use count, it will just give me 1 since there is only one value. This is a different question, but can you do set analysis without aggregation, like "just give me the value where", instead of having to count or sum? Does this answer you question?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 16:53:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412558#M615251</guid>
      <dc:creator>blpetosa</dc:creator>
      <dc:date>2017-08-16T16:53:39Z</dc:date>
    </item>
    <item>
      <title>Re: "Set Analysis" in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412559#M615252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1) The issue is that we will have Goal_Type = 7 and Goal_Type = 8 on different lines, so I guess I am asking that do you want to bring only those events where goals for Goal_Type = 8 minus the goals for Goal_type = 7 is greater than 0?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) You can use Only() function because a FieldName as expression is equivalent of using Only(FieldName). The benefit here is that you can use set analysis within Only() function&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 17:00:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412559#M615252</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-08-16T17:00:00Z</dc:date>
    </item>
    <item>
      <title>Re: "Set Analysis" in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412560#M615253</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Yes, that is correct. I need only the rows that meet one of the two criteria above.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; I will try Only(), thanks for that.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 17:11:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412560#M615253</guid>
      <dc:creator>blpetosa</dc:creator>
      <dc:date>2017-08-16T17:11:28Z</dc:date>
    </item>
    <item>
      <title>Re: "Set Analysis" in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412561#M615254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Would it be better to assign those three Goal_Types as three different variables earlier on in the script? Then they would be 3 different fields, with their respective values. I believe I used a "general load" to do something like this in the past.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 17:21:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412561#M615254</guid>
      <dc:creator>blpetosa</dc:creator>
      <dc:date>2017-08-16T17:21:04Z</dc:date>
    </item>
    <item>
      <title>Re: "Set Analysis" in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412562#M615255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;* generic load&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 17:30:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412562#M615255</guid>
      <dc:creator>blpetosa</dc:creator>
      <dc:date>2017-08-16T17:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: "Set Analysis" in Load Script</title>
      <link>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412563#M615256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I actually got it to work. I went back and split up the goal_types into separate tables with a generic load. I then used a for loop to get them all together, and joined them back into the resident table. I then loaded a new table with the goal_types as fields, resident the previous one, and joined it into the table I needed to. This the second time this week you responded quickly to an issue I was having. I really appreciate that Sunny.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 16 Aug 2017 20:34:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/quot-Set-Analysis-quot-in-Load-Script/m-p/1412563#M615256</guid>
      <dc:creator>blpetosa</dc:creator>
      <dc:date>2017-08-16T20:34:15Z</dc:date>
    </item>
  </channel>
</rss>

