<?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 using the Condition function with the Set Analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614876#M226872</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can't use this in scripting&lt;/P&gt;&lt;P&gt;for scripting each user field should be in the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you wan't to do this in scripting and not via an expression in a straight table ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 06 Feb 2014 10:52:43 GMT</pubDate>
    <dc:creator>dirk_konings</dc:creator>
    <dc:date>2014-02-06T10:52:43Z</dc:date>
    <item>
      <title>How to using the Condition function with the Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614871#M226867</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 Any one tell me that how can i use the below function in the Set Analysis the coding I am using as below.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Prorate Coding for monthly target &lt;/STRONG&gt;=&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if(date(vToday)=date(vToday) and date(vToday)&amp;lt;=monthend,sum((Del_Target)/Del_No_Day)*(day(vToday)-1),sum((Del_Target)/Del_No_Day)*day(monthend))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Actual sales Quantity &lt;/STRONG&gt; = sum(QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Below set is working but it capture the total monthly target rather then the prorate target.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Set Analysis&lt;/STRONG&gt;= Count({$&amp;lt;[Parent Code]=&lt;STRONG&gt;{'=sum(QTY)/(Monthly_&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;Target&lt;/STRONG&gt;&lt;STRONG style="font-size: 10pt; line-height: 1.5em;"&gt;)'}&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;&amp;gt;} DISTINCT [Parent Code])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# Replacing the &lt;STRONG&gt;{'=sum(QTY)/(Del_Target)'}&lt;/STRONG&gt; by&amp;nbsp; = sum(QTY) / if(date(vToday)=date(vToday) and date(vToday)&amp;lt;=monthend,sum((Del_Target)/Del_No_Day)*(day(vToday)-1),sum((Del_Target)/Del_No_Day)*day(monthend))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest how to use the &lt;STRONG&gt;Prorate Target&lt;/STRONG&gt; rather then &lt;STRONG&gt;Monthly_ Target.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 09:16:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614871#M226867</guid>
      <dc:creator>tabisen1</dc:creator>
      <dc:date>2014-02-06T09:16:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to using the Condition function with the Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614872#M226868</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;INsert the cndition function in a variable, and use the variale in set analysis.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 09:21:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614872#M226868</guid>
      <dc:creator />
      <dc:date>2014-02-06T09:21:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to using the Condition function with the Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614873#M226869</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;# Replacing the &lt;/SPAN&gt;&lt;STRONG style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;{'=sum(QTY)/(Del_Target)'}&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; by&amp;nbsp; = sum(QTY) / if(date(vToday)=date(vToday) and date(vToday)&amp;lt;=monthend,sum((Del_Target)/Del_No_Day)*(day(vToday)-1),sum((Del_Target)/Del_No_Day)*day(monthend))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;In the above expression i am using the Variable i.e. &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;vToday. &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Table fields &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Del_No_Day&lt;/SPAN&gt; &lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Del_Target&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;QTY&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Can u explain me in details how to create the prorate variable&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 09:37:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614873#M226869</guid>
      <dc:creator>tabisen1</dc:creator>
      <dc:date>2014-02-06T09:37:17Z</dc:date>
    </item>
    <item>
      <title>Re: How to using the Condition function with the Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614874#M226870</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;vCondition=&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt; sum(QTY) / if(date(vToday)=date(vToday) and date(vToday)&amp;lt;=monthend,sum((Del_Target)/Del_No_Day)*(day(vToday)-1),sum((Del_Target)/Del_No_Day)*day(monthend))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;and &lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt;Replacing the &lt;STRONG&gt;{'=sum(QTY)/(Del_Target)'}&lt;/STRONG&gt; by &lt;SPAN style="background-color: rgba(255, 255, 255, 0);"&gt; &lt;STRONG&gt;{$(vCondition)}&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 09:45:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614874#M226870</guid>
      <dc:creator />
      <dc:date>2014-02-06T09:45:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to using the Condition function with the Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614875#M226871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mario,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the below error while Loading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Aggregation expressions not allowed in GROUP BY clause&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Let VCondition= sum(QTY) / if(date(vToday)=date(vToday) and date(vToday)&amp;lt;=monthend,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;sum((Del_Target)/Del_No_Day)*(day(vToday)-1),sum((Del_Target)/Del_No_Day)*day(monthend))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;their are two table in one table the Monthly Target and other table the Quantity.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to join two table i have created a key. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:47:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614875#M226871</guid>
      <dc:creator>tabisen1</dc:creator>
      <dc:date>2014-02-06T10:47:41Z</dc:date>
    </item>
    <item>
      <title>Re: How to using the Condition function with the Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614876#M226872</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can't use this in scripting&lt;/P&gt;&lt;P&gt;for scripting each user field should be in the same table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why do you wan't to do this in scripting and not via an expression in a straight table ?&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Dirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:52:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614876#M226872</guid>
      <dc:creator>dirk_konings</dc:creator>
      <dc:date>2014-02-06T10:52:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to using the Condition function with the Set Analysis</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614877#M226873</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My instructions are not for scripting, but for use in presentation...in scripting you can't use it!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 06 Feb 2014 10:55:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-using-the-Condition-function-with-the-Set-Analysis/m-p/614877#M226873</guid>
      <dc:creator />
      <dc:date>2014-02-06T10:55:12Z</dc:date>
    </item>
  </channel>
</rss>

