<?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: How to convert the format of Date in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1823001#M1213727</link>
    <description>&lt;P&gt;Yes you are right its seems same to me that I am complicating the things but the thing is I need dates to be shown in descending order in the front end ,hence I am assigning the values to dates using daul function&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 440px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58795i9A191FD2EA7C98F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 09:45:21 GMT</pubDate>
    <dc:creator>kunkumnaveen</dc:creator>
    <dc:date>2021-07-19T09:45:21Z</dc:date>
    <item>
      <title>How to convert the format of Date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1821635#M1213584</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I got two requirements to do&amp;nbsp;&lt;/P&gt;&lt;P&gt;1) To show dates in desc order (Which is done using below code)&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;Dual(&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;date($(varMaxDate) - Iterno()+1,'DD-MM-YY'),&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#339966"&gt;&lt;STRONG&gt;if( date($(varMaxDate) - IterNo() + 1) =Date($(varMaxDate)),1,Peek("MainDate")+1))as "MainDate"&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;2)&amp;nbsp; I need to display Max Date and Min Date,hence in KPI I have written below expressions&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; expression : Max(MainDate),Min(MainDate)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 595px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58462i8A268BBF77AEF195/image-dimensions/595x255?v=v2" width="595" height="255" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Instead of getting Max Date and Min Date , I am getting numbers as shown above, this is because&amp;nbsp;of&amp;nbsp; &lt;STRONG&gt;Daul&lt;/STRONG&gt; function ,hence how I convert those numbers into date in UI&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000"&gt;Thanks&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 07:36:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1821635#M1213584</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-07-13T07:36:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert the format of Date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1821671#M1213590</link>
      <description>&lt;P&gt;Is there any way to write a expression to get Max date and Min date in DD-MM-YY format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 13 Jul 2021 09:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1821671#M1213590</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-07-13T09:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert the format of Date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1822930#M1213719</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I am still looking for the suggestions on writing a expression which can get me max and&lt;/P&gt;&lt;P&gt;min dates in a KPI instead of numbers&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1822930#M1213719</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-07-19T06:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert the format of Date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1822934#M1213720</link>
      <description>&lt;P&gt;Put formatting function date() around max/min, like:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Date(&lt;/STRONG&gt;max(MainDate)&lt;STRONG&gt;, 'DD-MM-YYYY')&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1822934#M1213720</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-07-19T06:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert the format of Date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1822965#M1213724</link>
      <description>&lt;P&gt;Hi Tresesco,&lt;/P&gt;&lt;P&gt;Thanks for reply,&lt;/P&gt;&lt;P&gt;I tried using the same ,what I am getting is some thing strange , I suppose to get 30th july 2021 as max date but I am getting&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58786i23B39DFE47EB9AD0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 07:46:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1822965#M1213724</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-07-19T07:46:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert the format of Date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1822989#M1213726</link>
      <description>&lt;P&gt;Your approach for date creation seems to be wrong. Date is dual field by default, i.e. - if you have a proper date, you don't need to create a dual value for this field explicitly. If you are doing so, that means your number values at the back of the date values are not real date values but some custom values that are just being used for sorting. With this approach you are complicating things unnecessarily. I&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 08:49:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1822989#M1213726</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-07-19T08:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert the format of Date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1823001#M1213727</link>
      <description>&lt;P&gt;Yes you are right its seems same to me that I am complicating the things but the thing is I need dates to be shown in descending order in the front end ,hence I am assigning the values to dates using daul function&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Capture.PNG" style="width: 440px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58795i9A191FD2EA7C98F4/image-size/large?v=v2&amp;amp;px=999" role="button" title="Capture.PNG" alt="Capture.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 09:45:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1823001#M1213727</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2021-07-19T09:45:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert the format of Date</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1823019#M1213731</link>
      <description>&lt;P&gt;I see your point. In visualization you can set your sort order, but for selection panel field sort order - it seems to be always 'ascending'. There should have been a setting for this sort order; and this is really imperative for date fields.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;As a workaround, you can try putting negative weight to the date field and then use another negation for any calculation on top of it.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;Dual(-MainDate, MainDate) as MainDate&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;and then&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;STRONG&gt;Date(&lt;/STRONG&gt;&lt;SPAN&gt;max(&lt;STRONG&gt;-&lt;/STRONG&gt;MainDate)&lt;/SPAN&gt;&lt;STRONG&gt;, 'DD-MM-YYYY')&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 11:20:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-convert-the-format-of-Date/m-p/1823019#M1213731</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-07-19T11:20:00Z</dc:date>
    </item>
  </channel>
</rss>

