<?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 Analysis Problem in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856026#M300049</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks like just a small issue with your date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RefDate is in which format ?&amp;nbsp; in Num format or YYYY/MM/DD .....&lt;/P&gt;&lt;P&gt;Today() is by default in the date format defined in your load script (e.g. SET DateFormat='YYYY/MM/DD';)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Because the Set Analysis is working in a different app, it is 99,9% just a date format issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 May 2015 07:43:36 GMT</pubDate>
    <dc:creator>r_wroblewski</dc:creator>
    <dc:date>2015-05-27T07:43:36Z</dc:date>
    <item>
      <title>Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856022#M300045</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'm trying to create a sum of Budget values with a set analysis. I guess it's just a small issue, but I'm somehow stuck with it. Why do I get a value of zero when there is clearly a value? I actually would like to look the formula like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUM({$&amp;lt;WOType={'Productive'}, WOLDepartment={'Maintenance'}, RefDate={"&amp;lt;=$(=Today(0)-1)"}&amp;gt;} BdgTotalTime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but I only get a 0 for that. So I tried to simplify the set analysis and tried to sum a single day only.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=SUM({$&amp;lt;WOType={'Productive'}, RefDate={"42125"}, WOLDepartment={'Maintenance'}&amp;gt;} BdgTotalTime)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, I only get a value of 0. If I remove the RefDate completely I do get the value of the BudgetTotalTime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RefDate is a normal date field in my calendar. Funny enough, the very same set analysis does work in a different app.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm happy to get any hints as to where to look.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:23:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856022#M300045</guid>
      <dc:creator />
      <dc:date>2015-05-27T07:23:45Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856023#M300046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello!&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; font-size: 13px;"&gt;SUM({$&amp;lt;WOType={'Productive'}, WOLDepartment={'Maintenance'}, RefDate={"&amp;lt;=$(=date(Today(0)-1))"}&amp;gt;} BdgTotalTime)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:25:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856023#M300046</guid>
      <dc:creator>pokassov</dc:creator>
      <dc:date>2015-05-27T07:25:43Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856024#M300047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Awesome, thanks a lot &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:34:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856024#M300047</guid>
      <dc:creator />
      <dc:date>2015-05-27T07:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856025#M300048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check your date format (&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RefDate&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;when you give (Today(0)-1) it will return numeric format and it will not match with your &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RefDate, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;when you give Date(Today(0)-1) it will return date format with 'DD/MM/YYYY'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;So you need to check if your date is in same format &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;'DD/MM/YYYY' or its in 'MM/DD/YYYY'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;If this is the case , you need to change the format of your column or =Date(Today(0)-1,'MM/DD/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &lt;/P&gt;&lt;P&gt;BKC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:40:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856025#M300048</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-05-27T07:40:27Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856026#M300049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthias,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it looks like just a small issue with your date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;RefDate is in which format ?&amp;nbsp; in Num format or YYYY/MM/DD .....&lt;/P&gt;&lt;P&gt;Today() is by default in the date format defined in your load script (e.g. SET DateFormat='YYYY/MM/DD';)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; line-height: 1.5em;"&gt;Because the Set Analysis is working in a different app, it is 99,9% just a date format issue.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:43:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856026#M300049</guid>
      <dc:creator>r_wroblewski</dc:creator>
      <dc:date>2015-05-27T07:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856027#M300050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The load script has (in both apps) a date format of &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET DateFormat='DD.MM.YYYY'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also copy pasted the same calendar script from one to the other app, so I assume that RefDate has the same date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yet with the inclusion of the "date" as per Sergei's reply, it works (in both apps): &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;RefDate={"&amp;lt;=$(=date(Today(0)-1))"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Surprisingly, in my other app it works both ways (with or without the date()), but at least my issue is solved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&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; font-size: 13px;"&gt;Thanks for all the replies &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 07:59:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856027#M300050</guid>
      <dc:creator />
      <dc:date>2015-05-27T07:59:17Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis Problem</title>
      <link>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856028#M300051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matthias&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I checked again and the reason why you need Date() is because Today()-1 will change format from your default to numeral format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. Today() = 2015/05/27 (default setting)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Today()-1 = 42150&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(Today()-1) = 2015/05/26&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so the -1 change the format automatically and you need date() to bring it back to the correct format for your set analysis.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also learnt again something new.^^&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ronny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 May 2015 08:07:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-Analysis-Problem/m-p/856028#M300051</guid>
      <dc:creator>r_wroblewski</dc:creator>
      <dc:date>2015-05-27T08:07:27Z</dc:date>
    </item>
  </channel>
</rss>

