<?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: Set expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658328#M240236</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In such queries attach a sample qvw to get faster solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 11 Jun 2014 10:56:58 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2014-06-11T10:56:58Z</dc:date>
    <item>
      <title>Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658327#M240235</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&lt;STRONG style="color: #ff0000; font-size: 8pt;"&gt;&amp;nbsp; &lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Fields:&lt;/P&gt;&lt;P&gt;REC_DAT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Received Date&lt;/P&gt;&lt;P&gt;WERKS&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Plant&lt;/P&gt;&lt;P&gt;MATNR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Material Number&lt;/P&gt;&lt;P&gt;INV_QTY&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Invoice Quantity – 3PL qty&lt;/P&gt;&lt;P&gt;PCN_DAT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; PCN date&lt;/P&gt;&lt;P&gt;GR_DAT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; GR Date&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Logic&lt;/P&gt;&lt;P&gt;For 3PL stock as on 30.04.2014&lt;/P&gt;&lt;P&gt;REC_DAT &amp;lt;= monthend &amp;amp; GR_DAT = “ ” or &amp;gt; monthend this is the logic that i should calculate for all the monthend value to get the 3pl stock&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(&lt;SPAN style="font-size: 8pt;"&gt;{&amp;lt;REC_DAT= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=MonthEnd(Today()))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[GR Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;= {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;$(=MonthEnd(Today()))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, ''}&amp;gt;} &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt; I tried the above expression but it doesnt work&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 10:46:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658327#M240235</guid>
      <dc:creator />
      <dc:date>2014-06-11T10:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658328#M240236</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In such queries attach a sample qvw to get faster solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 10:56:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658328#M240236</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-11T10:56:58Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658329#M240237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try something like sum({&amp;lt;REC_DAT= {"&amp;lt;=$(=MonthEnd(Today()))"}, [GR Date]= {"&amp;gt;$(=MonthEnd(Today()))"'}&amp;gt;} INV_QTY). &lt;/P&gt;&lt;P&gt;Note, you will have to make sure the date formats of REC_DAT and GR Date match the default date format of your document.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:01:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658329#M240237</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-11T11:01:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658330#M240238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thats not working and i have tried it before&lt;BR /&gt; and date formats is same for all&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:11:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658330#M240238</guid>
      <dc:creator />
      <dc:date>2014-06-11T11:11:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658331#M240239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the format of REC_DAT and GR_DAT are they numeric or readable dates?&lt;/P&gt;&lt;P&gt;MonthEnd(Today()) will return a value that is formatted and not numeric&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:12:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658331#M240239</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-06-11T11:12:08Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658332#M240240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;31-04-2014(DD-MM-YYYY) this is the format for all the date fields in the application&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:14:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658332#M240240</guid>
      <dc:creator />
      <dc:date>2014-06-11T11:14:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658333#M240241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Make sure your date fields actually contain data values and not string values that only look like dates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658333#M240241</guid>
      <dc:creator>Gysbert_Wassenaar</dc:creator>
      <dc:date>2014-06-11T11:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658334#M240242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if your date fields are numeric use $(=num(DayStart(MonthEnd(Today()))))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:16:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658334#M240242</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-06-11T11:16:30Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658335#M240243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would update these values by using num(DayStart(Rec_Dat)) as Rec_Dat in the script&lt;/P&gt;&lt;P&gt;then in the expression us&amp;nbsp; $(=num(DayStart(MonthEnd(Today()))))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date values that are formatted are hideous&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:17:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658335#M240243</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-06-11T11:17:50Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658336#M240244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the sample application have a look at it once&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:29:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658336#M240244</guid>
      <dc:creator />
      <dc:date>2014-06-11T11:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658337#M240245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;=sum({&amp;lt;REC_DAT= {"&amp;lt;=$(=MonthEnd(Today()))"}, GR_DAT= {"&amp;gt;$(=MonthEnd(Today()))"}&amp;gt;} INV_QTY)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Works. Note, in your sample qvw you would get zero as the GR_DAT condition fails. Try with full data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:35:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658337#M240245</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-06-11T11:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658338#M240246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;if you change the date format on your PC it won't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 11:49:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658338#M240246</guid>
      <dc:creator>ali_hijazi</dc:creator>
      <dc:date>2014-06-11T11:49:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set expression</title>
      <link>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658339#M240247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what if the condition for GR_DAT can be null and monthend can i have the expression for both the condition that can be null and &amp;gt;monthend&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;another query whether the above expression provides only for my current month or it provides for all the months&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 11 Jun 2014 12:19:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-expression/m-p/658339#M240247</guid>
      <dc:creator />
      <dc:date>2014-06-11T12:19:44Z</dc:date>
    </item>
  </channel>
</rss>

