<?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: Format Date in Set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004146#M959368</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;You cannot do any formatting or any calculations in Left hand side of the set analysis expression, instead you have make the changes in the RHS as required like below&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;count({$&amp;lt;MY_date={"$(=Date(Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MY_date&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)-1, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YYYY-MM-DD&lt;/SPAN&gt;'))"}&amp;gt;}Country)&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: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YYYY-MM-DD replace with actual MY_Date format, so that the expression works.&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; 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;Regards,&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;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 02 Nov 2015 07:37:30 GMT</pubDate>
    <dc:creator>jagan</dc:creator>
    <dc:date>2015-11-02T07:37:30Z</dc:date>
    <item>
      <title>Format Date in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004143#M959365</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I want to use below expression but it gives error,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please help me to correct it&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({$&amp;lt;Date(MY_date,'YYYY-MM-DD')={$(=Max(&lt;SPAN style="font-size: 13.3333px;"&gt;MY_date&lt;/SPAN&gt;)-1)}&amp;gt;}Country)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 07:13:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004143#M959365</guid>
      <dc:creator>anuradhaa</dc:creator>
      <dc:date>2015-11-02T07:13:51Z</dc:date>
    </item>
    <item>
      <title>Re: Format Date in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004144#M959366</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you should set the left hand side of the expression&amp;nbsp; in the script and then need to compare the same&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Date(MY_date,'YYYY-MM-DD') set this in the script and then use &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or try once like this :&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;count({$&amp;lt;Date(MY_date,'YYYY-MM-DD')={"$(=Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;MY_date&lt;/SPAN&gt;&lt;SPAN style="color: #000000; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)-1)"}&amp;gt;}Country)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 07:18:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004144#M959366</guid>
      <dc:creator>avinashelite</dc:creator>
      <dc:date>2015-11-02T07:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: Format Date in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004145#M959367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can't put an expression in the LHS section of set analysis, that has to be a field (script generated). Hence, you better try to format the date in the RHS of your set comparison, like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;count({$&amp;lt;MY_date={"$(=Date(Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;MY_date&lt;/SPAN&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;)-1), 'DD-MM-YYYY') "}&amp;gt;}Country)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #000000;"&gt;Change the date format as it is with My_date field.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 07:26:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004145#M959367</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2015-11-02T07:26:02Z</dc:date>
    </item>
    <item>
      <title>Re: Format Date in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004146#M959368</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;You cannot do any formatting or any calculations in Left hand side of the set analysis expression, instead you have make the changes in the RHS as required like below&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;count({$&amp;lt;MY_date={"$(=Date(Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MY_date&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)-1, '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YYYY-MM-DD&lt;/SPAN&gt;'))"}&amp;gt;}Country)&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: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;YYYY-MM-DD replace with actual MY_Date format, so that the expression works.&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; 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;Regards,&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;Jagan.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 07:37:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004146#M959368</guid>
      <dc:creator>jagan</dc:creator>
      <dc:date>2015-11-02T07:37:30Z</dc:date>
    </item>
    <item>
      <title>Re: Format Date in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004147#M959369</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;try this&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;count({$&amp;lt;MY_date={"$(=date(Max(&lt;/SPAN&gt;&lt;SPAN style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;MY_date&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;)-1,'YYYY-MM-DD'))"}&amp;gt;}Country)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 07:38:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004147#M959369</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2015-11-02T07:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Format Date in Set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004148#M959370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You connot use expressions like "set_identifier". I suggest you to prepare additinal field with suitable format of date in script and use it in set analysis. Moreover, using numeric presentation of date is more effective then text format of date.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 07:50:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Format-Date-in-Set-analysis/m-p/1004148#M959370</guid>
      <dc:creator>smirkinaa</dc:creator>
      <dc:date>2015-11-02T07:50:11Z</dc:date>
    </item>
  </channel>
</rss>

