<?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 - Date Format Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324790#M410017</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;%StartDate and %EndDate are hidden fields used in a Calendar object for user to select.&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;Tried using set identifier 1 to test this and still getting no results. So, I guess issue continues to be with the dates.&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;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 17 Apr 2017 13:28:42 GMT</pubDate>
    <dc:creator>spetushi</dc:creator>
    <dc:date>2017-04-17T13:28:42Z</dc:date>
    <item>
      <title>Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324786#M410013</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;I have the following set analysis expression which brings relevant records but not within specified date range. I think this is due to different date formats and need help to fore came date format within the expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Report Source Type]={'Marketing'}, [Receipt Date]={'&amp;gt;=$(%StartDate)&amp;lt;=$(%EndDate)'}, [Partner Source]=&amp;gt;} [ReportID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;[Receipt Date] has format: 'DD-MMM-YYYY'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;%StartDate and &lt;SPAN style="font-size: 13.3333px;"&gt;%EndDate have format: 'dd/mm/yyyy'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Can I format either date(s) in the expression itself?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;Sokol&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 21:27:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324786#M410013</guid>
      <dc:creator>spetushi</dc:creator>
      <dc:date>2017-04-15T21:27:37Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324787#M410014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Maybe like&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; [Receipt Date]={&lt;STRONG&gt;"&lt;/STRONG&gt;&amp;gt;=$(=Date(%StartDate,'DD-MMM-YYYY'))&amp;lt;=$(=Date(%EndDate,'DD-MMM-YYYY'))&lt;STRONG&gt;"&lt;/STRONG&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;&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;Note that I've also changed the single quotes after and before {..} to double quotes.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 15 Apr 2017 21:55:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324787#M410014</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-15T21:55:40Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324788#M410015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the reply Stefan. I applied your suggestion as follows, but I am getting no results this time.&lt;/P&gt;&lt;P&gt;I am suspecting the issue now is not in the dates but rather with the "[Partner Source]" filter. I would like to ignore user selection against this field. Am I defining this incorrectly?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Report Source Type]={'Marketing'}, [Receipt Date]={"&amp;gt;=$(=Date(%StartDate,'DD-MMM-YYYY'))&amp;lt;=$(=Date(%EndDate,'DD-MMM-YYYY'))"}, &lt;STRONG&gt;[Partner Source]=&lt;/STRONG&gt;&amp;gt;}[ReportID])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Sokol&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 12:56:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324788#M410015</guid>
      <dc:creator>spetushi</dc:creator>
      <dc:date>2017-04-17T12:56:23Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324789#M410016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why do you think the issue is now with the Partner Source field selection?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can ignore all user selections by using set identifier 1 to test this:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&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: 12px; background-color: #f2f2f2;"&gt;Count({&lt;STRONG&gt;1&lt;/STRONG&gt;&amp;lt;[Report Source Type]={'Marketing'}, [Receipt Date]={"&amp;gt;=$(=Date(%StartDate,'DD-MMM-YYYY'))&amp;lt;=$(=Date(%EndDate,'DD-MMM-YYYY'))"} &lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;&amp;gt;}[ReportID])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your expression should ignore selections in that field,though.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I assume that the issue is still with your date field filter. Is %StartDate and %EndDate a field with a single selected value or a variable?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:20:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324789#M410016</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-17T13:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324790#M410017</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;%StartDate and %EndDate are hidden fields used in a Calendar object for user to select.&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;Tried using set identifier 1 to test this and still getting no results. So, I guess issue continues to be with the dates.&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;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:28:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324790#M410017</guid>
      <dc:creator>spetushi</dc:creator>
      <dc:date>2017-04-17T13:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324791#M410018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does it work with hard coded date ranges in your set expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:33:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324791#M410018</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-17T13:33:33Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324792#M410019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you please share the data that you are using?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:48:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324792#M410019</guid>
      <dc:creator>parul_mehta</dc:creator>
      <dc:date>2017-04-17T13:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324793#M410020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Something fishy with my dates. It does if I use:&lt;/P&gt;&lt;P&gt; -&amp;nbsp; [Receipt Date]={"&amp;gt;=01/03/2017"}&lt;/P&gt;&lt;P&gt; -&amp;nbsp; but not if I use: [Receipt Date]={"&amp;gt;=01-Mar-2017"}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your suggestions.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:48:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324793#M410020</guid>
      <dc:creator>spetushi</dc:creator>
      <dc:date>2017-04-17T13:48:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324794#M410021</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This depends on your default date format:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... have a look at your script, it looks like that:&lt;/P&gt;&lt;P&gt;SET DateFormat='DD.MM.YYYY';&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;--&amp;gt; if the text doesn't "fit" your default format. then you you must force it like that:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;date(date#('01-Mar-2017','DD-MMM-YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;makedate(2017,3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A set analysis gets always text as input. If you do a numerical comparison, the number will only be "there" if it matches one of your default formats...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:55:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324794#M410021</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-04-17T13:55:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324795#M410022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try to use the numeric representation for your dates:&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: 12px; background-color: #f2f2f2;"&gt; [Receipt Date]={"&amp;gt;=42795"}&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or&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; background-color: #f2f2f2;"&gt;[Receipt Date]={&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;"&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;&amp;gt;=$(=Floor(Min(%StartDate)))&amp;lt;=$(=Floor(Max(%EndDate)))&lt;/SPAN&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;"&lt;/STRONG&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #f2f2f2;"&gt;}&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 13:57:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324795#M410022</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-04-17T13:57:20Z</dc:date>
    </item>
    <item>
      <title>Re: Set analysis - Date Format Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324796#M410023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will do it. Thanks Stefan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Apr 2017 14:35:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Set-analysis-Date-Format-Issue/m-p/1324796#M410023</guid>
      <dc:creator>spetushi</dc:creator>
      <dc:date>2017-04-17T14:35:46Z</dc:date>
    </item>
  </channel>
</rss>

