<?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: How to convert set analysis expression in to load script if condition in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962389#M1220186</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3349"&gt;@vikasshana&lt;/a&gt;&amp;nbsp; I tried the below Code,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;candidate, Sales&lt;BR /&gt;Exec-123, 100&lt;BR /&gt;Exec1-567, 200&lt;BR /&gt;Exec2-890, 300&lt;BR /&gt;Exec-123, 400&lt;BR /&gt;Exec-123, 500&lt;BR /&gt;Exec-123, 600&lt;BR /&gt;Exec1-567, 700&lt;BR /&gt;Exec1-567, 800&lt;BR /&gt;Exec2-890, 900&lt;BR /&gt;Exec2-890, 1000&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp1:&lt;BR /&gt;Load candidate,&lt;BR /&gt;Sum(Sales) as Total_Sales&lt;BR /&gt;Resident Temp&lt;BR /&gt;where not WildMatch(candidate,'*Exec1*','*Exec2*')&lt;BR /&gt;group by candidate;&lt;/P&gt;
&lt;P&gt;Concatenate(Temp1)&lt;BR /&gt;Load candidate,&lt;BR /&gt;Sum(Sales) as Total_Sales&lt;BR /&gt;Resident Temp&lt;BR /&gt;where WildMatch(candidate,'*Exec1*','*Exec2*')&lt;BR /&gt;group by candidate;&lt;BR /&gt;Drop table Temp;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;Let me know if it is something that you are looking for.&lt;/P&gt;</description>
    <pubDate>Fri, 29 Jul 2022 15:29:53 GMT</pubDate>
    <dc:creator>sidhiq91</dc:creator>
    <dc:date>2022-07-29T15:29:53Z</dc:date>
    <item>
      <title>How to convert set analysis expression in to load script if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962327#M1220180</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;
&lt;P&gt;I've the below two expression, I would like to do them in the load script instead of set expression. '*Exec*' is nothing but a wild match&lt;/P&gt;
&lt;P&gt;=sum({&amp;lt;candidate={"*Exec*"}&amp;gt;}Sales)+sum({&amp;lt;candidate={"*Exec1*"}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;=sum({&amp;lt;candidate={"*Exec2*"}&amp;gt;}Sales)+sum({&amp;lt;candidate={"*Exec1*"}&amp;gt;}Sales)&lt;/P&gt;
&lt;P&gt;Let me know how to achieve it.&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;V&lt;/P&gt;
&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/46628"&gt;@sunny_talwar&lt;/a&gt;&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/22949"&gt;@tresB&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 14:02:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962327#M1220180</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2022-07-29T14:02:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert set analysis expression in to load script if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962346#M1220182</link>
      <description>&lt;P&gt;Can you share sample data with required output?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 13:51:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962346#M1220182</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2022-07-29T13:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert set analysis expression in to load script if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962348#M1220183</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Below is the example data&lt;/P&gt;
&lt;TABLE style="height: 250px; width: 50%;" border="1" width="25%"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;candidate&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;Exec-123&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="25px"&gt;100&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec1-567&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;200&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec2-890&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;300&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;Exec-123&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="25px"&gt;400&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;Exec-123&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="25px"&gt;500&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;Exec-123&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="25px"&gt;600&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec1-567&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;700&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec1-567&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;800&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec2-890&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;900&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec2-890&lt;/SPAN&gt;&lt;SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;1000&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Expected Output&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;candidate&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec1-567&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;3,300 (100+200+400+500+600+700+800)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec1-890&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;3,800 (100+300+400+500+600+900+1000)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Fri, 29 Jul 2022 14:02:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962348#M1220183</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2022-07-29T14:02:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert set analysis expression in to load script if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962362#M1220184</link>
      <description>&lt;P&gt;Try below&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data:&lt;BR /&gt;Load *&lt;BR /&gt;Inline [&lt;BR /&gt;candidate,Sales&lt;BR /&gt;Exec-123,100&lt;BR /&gt;Exec1-567,200&lt;BR /&gt;Exec2-890,300&lt;BR /&gt;Exec-123,400&lt;BR /&gt;Exec-123,500&lt;BR /&gt;Exec-123,600&lt;BR /&gt;Exec1-567,700&lt;BR /&gt;Exec1-567,800&lt;BR /&gt;Exec2-890,900&lt;BR /&gt;Exec2-890,1000&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;/P&gt;
&lt;P&gt;Temp:&lt;BR /&gt;Load &lt;BR /&gt;Sum(Sales) as ex_Sales&lt;BR /&gt;Resident data&lt;BR /&gt;where not wildmatch(candidate,'*Exec1*','*Exec2*')&lt;BR /&gt;group by candidate&lt;BR /&gt;;&lt;BR /&gt;Join&lt;BR /&gt;Load &lt;BR /&gt;candidate,&lt;BR /&gt;Sum(Sales) as Sales&lt;BR /&gt;Resident data&lt;BR /&gt;where wildmatch(candidate,'*Exec1*','*Exec2*')&lt;BR /&gt;group by candidate&lt;BR /&gt;;&lt;BR /&gt;drop table data;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Final:&lt;BR /&gt;Load candidate,&lt;BR /&gt;Sum(ex_Sales + Sales) as Sales&lt;BR /&gt;Resident Temp&lt;BR /&gt;group by candidate&lt;BR /&gt;;&lt;/P&gt;
&lt;P&gt;Drop table Temp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Prashant Sangle&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 14:31:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962362#M1220184</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2022-07-29T14:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert set analysis expression in to load script if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962389#M1220186</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/3349"&gt;@vikasshana&lt;/a&gt;&amp;nbsp; I tried the below Code,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp:&lt;BR /&gt;Load * Inline [&lt;BR /&gt;candidate, Sales&lt;BR /&gt;Exec-123, 100&lt;BR /&gt;Exec1-567, 200&lt;BR /&gt;Exec2-890, 300&lt;BR /&gt;Exec-123, 400&lt;BR /&gt;Exec-123, 500&lt;BR /&gt;Exec-123, 600&lt;BR /&gt;Exec1-567, 700&lt;BR /&gt;Exec1-567, 800&lt;BR /&gt;Exec2-890, 900&lt;BR /&gt;Exec2-890, 1000&lt;BR /&gt;];&lt;/P&gt;
&lt;P&gt;NoConcatenate&lt;BR /&gt;Temp1:&lt;BR /&gt;Load candidate,&lt;BR /&gt;Sum(Sales) as Total_Sales&lt;BR /&gt;Resident Temp&lt;BR /&gt;where not WildMatch(candidate,'*Exec1*','*Exec2*')&lt;BR /&gt;group by candidate;&lt;/P&gt;
&lt;P&gt;Concatenate(Temp1)&lt;BR /&gt;Load candidate,&lt;BR /&gt;Sum(Sales) as Total_Sales&lt;BR /&gt;Resident Temp&lt;BR /&gt;where WildMatch(candidate,'*Exec1*','*Exec2*')&lt;BR /&gt;group by candidate;&lt;BR /&gt;Drop table Temp;&lt;/P&gt;
&lt;P&gt;Exit Script;&lt;/P&gt;
&lt;P&gt;Let me know if it is something that you are looking for.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2022 15:29:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1962389#M1220186</guid>
      <dc:creator>sidhiq91</dc:creator>
      <dc:date>2022-07-29T15:29:53Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert set analysis expression in to load script if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1963254#M1220235</link>
      <description>&lt;P&gt;thank you&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;and&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6188"&gt;@sidhiq91&lt;/a&gt;&amp;nbsp;for the suggestion, but I would like to see output as below.&lt;/P&gt;
&lt;TABLE border="1"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;candidate&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="25px"&gt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec1-567&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;3,300 (100+200+400+500+600+700+800)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="12.5%" height="47px"&gt;&lt;SPAN&gt;Exec1-890&lt;/SPAN&gt;&lt;/TD&gt;
&lt;TD width="12.5%" height="47px"&gt;3,800 (100+300+400+500+600+900+1000)&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Tue, 02 Aug 2022 09:39:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1963254#M1220235</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2022-08-02T09:39:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert set analysis expression in to load script if condition</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1963287#M1220236</link>
      <description>&lt;P&gt;Thanks for that&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/42758"&gt;@PrashantSangle&lt;/a&gt;&amp;nbsp;, it is working as expected.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2022 10:30:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-set-analysis-expression-in-to-load-script-if/m-p/1963287#M1220236</guid>
      <dc:creator>vikasshana</dc:creator>
      <dc:date>2022-08-02T10:30:29Z</dc:date>
    </item>
  </channel>
</rss>

