<?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 Error in my Set Analysis syntax, in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491210#M183509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am experiencing problems with the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;(inLeveransDatum -Lev_Leveranstid)&amp;gt; Villkor_inlev&amp;gt;} %InLevNr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to be a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i am trying to do is find the value between two dates (inLeveransDatum&amp;nbsp; - Lev_Leveranstid and then do a check if they are greater than the actual condition so example 5 days 1 day or 3 days and then count the amount of i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Nov 2013 09:03:07 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-11-07T09:03:07Z</dc:date>
    <item>
      <title>Error in my Set Analysis syntax,</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491210#M183509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi i am experiencing problems with the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;(inLeveransDatum -Lev_Leveranstid)&amp;gt; Villkor_inlev&amp;gt;} %InLevNr)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it seems to be a syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what i am trying to do is find the value between two dates (inLeveransDatum&amp;nbsp; - Lev_Leveranstid and then do a check if they are greater than the actual condition so example 5 days 1 day or 3 days and then count the amount of i&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:03:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491210#M183509</guid>
      <dc:creator />
      <dc:date>2013-11-07T09:03:07Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my Set Analysis syntax,</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491211#M183510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try like:&lt;/P&gt;&lt;P&gt;=Count({&amp;lt;Lev_Leveranstid={"=(inLeveransDatum-Lev_Leveranstid)&amp;gt;Villkor_inlev"}&amp;gt;} DISTINCT Lev_Leveranstid)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: DISTINCT you might or might not need.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:14:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491211#M183510</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-11-07T09:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my Set Analysis syntax,</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491212#M183511</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;I am afraid that unfortunately you cannot set that calculation directly in the set analysis. You need to save it before (in a field in the script) and use the field in the set analysis expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;inLeveransDatum -Lev_Leveranstid as NewField;&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;count({$&amp;lt;NewField= {"&amp;gt;= Villkor_inlev"}&amp;gt;} %InLevNr)&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:17:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491212#M183511</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2013-11-07T09:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my Set Analysis syntax,</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491213#M183512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this expression&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;=&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;If&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;((&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;inLeveransDatum&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; - &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Lev_Leveranstid&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&amp;gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Villkor_inlev&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, 1, 0), &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[%InLevNr]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;))&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Jagan.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:18:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491213#M183512</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2013-11-07T09:18:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error in my Set Analysis syntax,</title>
      <link>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491214#M183513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure you want to do SET? there are alternative ways of solving it. I attach a solution with sum(aggr())&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: line-through;"&gt;-sum(aggr( ($(vL.Delay)&amp;lt;=(inLeveransDatum-Lev_Leveranstid)),%InLevNr))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;-sum(aggr( only(Villkor_inlev)&amp;lt;=(inLeveransDatum-Lev_Leveranstid)),%InLevNr))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edit: Missed the Villkor_inlev. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Nov 2013 09:22:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Error-in-my-Set-Analysis-syntax/m-p/491214#M183513</guid>
      <dc:creator>Vegar</dc:creator>
      <dc:date>2013-11-07T09:22:57Z</dc:date>
    </item>
  </channel>
</rss>

