<?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: Value of Date Variable Coming  in Number Format in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822026#M1213628</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried using date() function. But value is coming as shown in below screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sunitha_chellaiah_0-1626253939521.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58565i2CC70035DB1BE28E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sunitha_chellaiah_0-1626253939521.png" alt="sunitha_chellaiah_0-1626253939521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using expression as shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sunitha_chellaiah_1-1626253997617.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58566i5F67B745F43DDFAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sunitha_chellaiah_1-1626253997617.png" alt="sunitha_chellaiah_1-1626253997617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 14 Jul 2021 09:13:18 GMT</pubDate>
    <dc:creator>sunitha_chellaiah</dc:creator>
    <dc:date>2021-07-14T09:13:18Z</dc:date>
    <item>
      <title>Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1821997#M1213626</link>
      <description>&lt;P&gt;Dear All,&lt;/P&gt;&lt;P&gt;While using below mentioned expression, value is coming in number date. It should come in Date format.&lt;/P&gt;&lt;P&gt;=$(=Max(DOJ))&lt;/P&gt;&lt;P&gt;I want to use this expression in set analysis. So I am testing this in text object. Kindly see below screenshot.&lt;/P&gt;&lt;P&gt;Value should come as 28-06-2021. But here it is showing -1999.&lt;/P&gt;&lt;P&gt;Please help me to correct the expression.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sunitha_chellaiah_0-1626250619345.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58561i3966E3598BDD4DA7/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sunitha_chellaiah_0-1626250619345.png" alt="sunitha_chellaiah_0-1626250619345.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 08:18:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1821997#M1213626</guid>
      <dc:creator>sunitha_chellaiah</dc:creator>
      <dc:date>2021-07-14T08:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822001#M1213627</link>
      <description>&lt;P&gt;use date() on top of it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;like&lt;/P&gt;&lt;P&gt;date(max(yourdatefield))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 08:27:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822001#M1213627</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2021-07-14T08:27:26Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822026#M1213628</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have tried using date() function. But value is coming as shown in below screenshot.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sunitha_chellaiah_0-1626253939521.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58565i2CC70035DB1BE28E/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sunitha_chellaiah_0-1626253939521.png" alt="sunitha_chellaiah_0-1626253939521.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I am using expression as shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="sunitha_chellaiah_1-1626253997617.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/58566i5F67B745F43DDFAA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="sunitha_chellaiah_1-1626253997617.png" alt="sunitha_chellaiah_1-1626253997617.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 09:13:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822026#M1213628</guid>
      <dc:creator>sunitha_chellaiah</dc:creator>
      <dc:date>2021-07-14T09:13:18Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822071#M1213629</link>
      <description>&lt;P&gt;are you sure the value stored in DOJ is in date format not in string??&lt;/P&gt;&lt;P&gt;try below in text box&lt;/P&gt;&lt;P&gt;1: Date(max(DOJ))&lt;/P&gt;&lt;P&gt;2: Date(max(Date#(DOJ,'DD-MM-YYYY')))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;No need to write "=$"&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:14:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822071#M1213629</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2021-07-14T11:14:08Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822076#M1213630</link>
      <description>&lt;P&gt;I want to pass that expression in set analysis.&lt;/P&gt;&lt;P&gt;So, I have to use "$".&lt;/P&gt;&lt;P&gt;I have tried using Date# , but I am not getting desired output.&lt;/P&gt;&lt;P&gt;Please help me to correct it.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 11:26:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822076#M1213630</guid>
      <dc:creator>sunitha_chellaiah</dc:creator>
      <dc:date>2021-07-14T11:26:52Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822139#M1213634</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/16248"&gt;@sunitha_chellaiah&lt;/a&gt;&amp;nbsp; try below in text object.&amp;nbsp;&lt;/P&gt;&lt;P&gt;date($(=max(Date)))&lt;/P&gt;&lt;P&gt;While testing the expression in text object "$" is not useful, we use it "$" in set analysis because it is used to evaluate the expression inside set analysis.&lt;/P&gt;&lt;P&gt;If above still not working then try checking in text object without "$" . This is also not working then make sure that your DOJ is in proper Date format.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Jul 2021 14:25:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822139#M1213634</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2021-07-14T14:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822149#M1213635</link>
      <description>&lt;P&gt;The dollar expansion messes things up here...&lt;/P&gt;&lt;P&gt;Try this, just to see what Max() returns:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;=Max(DOJ)&lt;/P&gt;&lt;P&gt;If it returns a date, you cannot dollar expand it, because&lt;BR /&gt;&amp;nbsp; &amp;nbsp;=$(=Max(DOJ))&lt;BR /&gt;will expand to&lt;BR /&gt;&amp;nbsp; &amp;nbsp;=28-06-2021&lt;BR /&gt;which is&lt;BR /&gt;&amp;nbsp; &amp;nbsp;-1999&lt;/P&gt;&lt;P&gt;To solve this, you could try quoting it:&lt;BR /&gt;='$(=Max(DOJ))'&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 07:22:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822149#M1213635</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2021-07-15T07:22:52Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822243#M1213642</link>
      <description>&lt;P&gt;after long time&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp; sir I saw your reply. I always learn something new from your responses.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 04:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822243#M1213642</guid>
      <dc:creator>PrashantSangle</dc:creator>
      <dc:date>2021-07-15T04:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822249#M1213643</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;The dollar expansion messes things up here...&lt;/P&gt;&lt;P&gt;Try this, just to see what Max() returns:&lt;BR /&gt;&amp;nbsp; &amp;nbsp;=Max(DOJ)&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If it returns a date&lt;/STRONG&gt;, you cannot dollar expand it, because&lt;BR /&gt;&amp;nbsp; &amp;nbsp;=$(=Max(DOJ))&lt;BR /&gt;will expand to&lt;BR /&gt;&amp;nbsp; &amp;nbsp;=28-06-2021&lt;BR /&gt;which is&lt;BR /&gt;&amp;nbsp; &amp;nbsp;-1999&lt;/P&gt;&lt;P&gt;To solve this, you could try&lt;BR /&gt;='$(=Max(DOJ))'&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Let me take this opportunity of getting this clarified - Max(Date), returns a number and it could return a date as well. When does max/min return a number and when a date (i.e. formatted)?&lt;/P&gt;&lt;P&gt;In real cases, now I always test the result and then apply additional date() for formatting. However, if I remember correctly I got (long back) cases when date formatted output used to come directly, but not in recent years; is it related to versions?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 05:30:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822249#M1213643</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-07-15T05:30:42Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822259#M1213647</link>
      <description>&lt;P&gt;It is indeed linked to version. In some versions, the formatting was lost. We treated this as a minor bug, and it should be fixed now.&lt;/P&gt;&lt;P&gt;The functions return duals, and sometimes the formatting can be kept, sometimes not.&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Sum() and Avg() loses the formatting. The result is a new number that doesn't exist in the source data.&lt;/LI&gt;&lt;LI&gt;Min() and Max() should pick up the format of the original data.&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Thu, 15 Jul 2021 06:54:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822259#M1213647</guid>
      <dc:creator>hic</dc:creator>
      <dc:date>2021-07-15T06:54:07Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822261#M1213649</link>
      <description>&lt;P&gt;Thank you very much HIC for the clarification.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I also find that in Qlik Sense, 'Auto' format takes the Number format while it is still a dual value.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Jul 2021 07:21:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1822261#M1213649</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2021-07-15T07:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: Value of Date Variable Coming  in Number Format</title>
      <link>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1824467#M1213859</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/6622"&gt;@hic&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;&lt;P&gt;I got the correct value now by using this expression.&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;='$(=Max(DOJ))'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you so much.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Jul 2021 10:59:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-of-Date-Variable-Coming-in-Number-Format/m-p/1824467#M1213859</guid>
      <dc:creator>sunitha_chellaiah</dc:creator>
      <dc:date>2021-07-26T10:59:18Z</dc:date>
    </item>
  </channel>
</rss>

