<?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: from set analysis to script during load in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/from-set-analysis-to-script-during-load/m-p/1119512#M891536</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try this solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 24 Aug 2016 04:58:56 GMT</pubDate>
    <dc:creator />
    <dc:date>2016-08-24T04:58:56Z</dc:date>
    <item>
      <title>from set analysis to script during load</title>
      <link>https://community.qlik.com/t5/QlikView/from-set-analysis-to-script-during-load/m-p/1119510#M891534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Good day everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to convert this syntax from set analysis to script (during load)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: blue; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: maroon; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Active&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: maroon; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Location&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={Canada','*Can*'}&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: blue; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: maroon; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;EmpNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;)-&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: blue; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;({&amp;lt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: maroon; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Terminated&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={1},&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: maroon; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Location&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;={'Canada','*Can*'}&amp;gt;}&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: blue; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Distinct&lt;/SPAN&gt; &lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: maroon; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;EmpNo&lt;/SPAN&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;- where Active is record tag as active employee, same goes to Terminated (tag)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;- Location is a field &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;- EmpNo is Employee number&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;syntax is count Emp No if the employee is active and if location is Canada - count if terminated and location is canada&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;Regards, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12.0pt; line-height: 115%; font-family: 'Courier New'; mso-fareast-font-family: Calibri; mso-fareast-theme-font: minor-latin; color: black; mso-ansi-language: EN-US; mso-fareast-language: EN-US; mso-bidi-language: AR-SA;"&gt;&lt;BR /&gt; &lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/from-set-analysis-to-script-during-load/m-p/1119510#M891534</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: from set analysis to script during load</title>
      <link>https://community.qlik.com/t5/QlikView/from-set-analysis-to-script-during-load/m-p/1119511#M891535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It's quite hard to convert a chart expression to an aggregation in the script without knowing the context, i.e. your chart expression will still be sensitive to user selections and also consider the dimensional aggregation scope.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/3285"&gt;The Aggregation Scope&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all fields are within the same table and you want to calculate in global context (no selections, no dimensions), maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Count(DISTINCT If(Active=1,EmpNo)) - Count(DISTINCT If(Terminated = 1, EmpNo)) as Result&lt;/P&gt;&lt;P&gt;RESIDENT YourTable&lt;/P&gt;&lt;P&gt;WHERE WildMatch(Location, '*Can*');&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Aug 2016 20:14:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/from-set-analysis-to-script-during-load/m-p/1119511#M891535</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-08-16T20:14:33Z</dc:date>
    </item>
    <item>
      <title>Re: from set analysis to script during load</title>
      <link>https://community.qlik.com/t5/QlikView/from-set-analysis-to-script-during-load/m-p/1119512#M891536</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I will try this solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Aug 2016 04:58:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/from-set-analysis-to-script-during-load/m-p/1119512#M891536</guid>
      <dc:creator />
      <dc:date>2016-08-24T04:58:56Z</dc:date>
    </item>
  </channel>
</rss>

