<?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 Date changes to Number when export to Excel in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262193#M98746</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The added field appears as date, but I cannot use that for Quarters and other formats. What will be the date format for CQ, CYQ or CYQS in the above code? The other thing I've tried is converting everything other field, except the date field to text. This time it exports to excel in the desired format, but sorting in the charts within QV is messed up. For some reason I can't get QV and Excel to work at the same time. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 Jul 2011 23:54:52 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-07-15T23:54:52Z</dc:date>
    <item>
      <title>Date changes to Number when export to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262190#M98743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've following code that generates a Calendar QVD. That QVD is then referred by other QV applications as input. Chart within QV displays date/months/quarters/years as desired format. However, when the values in chart is exported to excel, date format changes to numbers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start month = 40694&lt;/P&gt;&lt;P&gt;for i = 0 to 26;&lt;/P&gt;&lt;P&gt;let vLoop_Month=Num(DayStart(MonthEnd(addmonths(StartMonth,-i))));&lt;BR /&gt;let vLoop_Quarter=Num(DayStart(QuarterEnd(addmonths(StartMonth,-i))));&lt;/P&gt;&lt;P&gt;MasterCalendar:&lt;BR /&gt;load $(vLoop_Month) as DateKey,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month($(vLoop_Month)) as CM,&amp;nbsp; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q'&amp;amp;ceil(Month($(vLoop_Month))/3) as CQ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year($(vLoop_Month)) as CY,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(Year($(vLoop_Quarter))&amp;amp;'-'&amp;amp;'Q'&amp;amp;ceil(Month($(vLoop_Quarter))/3),$(vLoop_Quarter)) as CYQ,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(Year($(vLoop_Month))&amp;amp;'-'&amp;amp;Month($(vLoop_Month)),$(vLoop_Month)) as CYM,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(dual(Year($(vLoop_Month))&amp;amp;'-'&amp;amp;Month($(vLoop_Month)),$(vLoop_Month)), 'M/YY') as CYM2,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual('Q'&amp;amp; ceil(Month($(vLoop_Quarter))/3)&amp;amp;'/'&amp;amp;date($(vLoop_Quarter),'YY'),$(vLoop_Quarter)) as CYQS &lt;BR /&gt;autogenerate(1);&lt;/P&gt;&lt;P&gt;Next&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Store above into Calendar.qvd&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Other QVWs just reads the Calendar QVD. So all the fields such as CM, CQ, CY, CYQ, CYM, CYM2, and CYQS are displayed as desired date format in QV. However, when I export them to excel they are converted to numbers. Any help will be appreciated. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 22:08:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262190#M98743</guid>
      <dc:creator />
      <dc:date>2011-07-06T22:08:53Z</dc:date>
    </item>
    <item>
      <title>Re: Date changes to Number when export to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262191#M98744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check if the added field 'ExtDate' appears in Excel in the date format.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;StartMonth = 40694;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;for i = 0 to 26;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;let vLoop_Month=Num(DayStart(MonthEnd(addmonths($(StartMonth),-i))));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;let vLoop_Quarter=Num(DayStart(QuarterEnd(addmonths($(StartMonth),-i))));&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;MasterCalendar:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;load $(vLoop_Month) as DateKey,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(vLoop_Month),'MM/DD/YYYY') as ExtDate,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month($(vLoop_Month)) as CM,&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q'&amp;amp;ceil(Month($(vLoop_Month))/3) as CQ,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year($(vLoop_Month)) as CY,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(Year($(vLoop_Quarter))&amp;amp;'-'&amp;amp;'Q'&amp;amp;ceil(Month($(vLoop_Quarter))/3),$(vLoop_Quarter)) as CYQ,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual(Year($(vLoop_Month))&amp;amp;'-'&amp;amp;Month($(vLoop_Month)),$(vLoop_Month)) as CYM,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(dual(Year($(vLoop_Month))&amp;amp;'-'&amp;amp;Month($(vLoop_Month)),$(vLoop_Month)), 'M/YY') as CYM2,&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; dual('Q'&amp;amp; ceil(Month($(vLoop_Quarter))/3)&amp;amp;'/'&amp;amp;date($(vLoop_Quarter),'YY'),$(vLoop_Quarter)) as CYQS &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;autogenerate(1);&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3366ff;"&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;Next&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Jul 2011 22:58:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262191#M98744</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-07-06T22:58:08Z</dc:date>
    </item>
    <item>
      <title>Date changes to Number when export to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262192#M98745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Go to "User Preferences" --&amp;gt; "Export Tab"&amp;nbsp;&amp;nbsp; select "Full formatting" and see if that helps .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 21:37:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262192#M98745</guid>
      <dc:creator />
      <dc:date>2011-07-15T21:37:08Z</dc:date>
    </item>
    <item>
      <title>Date changes to Number when export to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262193#M98746</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The added field appears as date, but I cannot use that for Quarters and other formats. What will be the date format for CQ, CYQ or CYQS in the above code? The other thing I've tried is converting everything other field, except the date field to text. This time it exports to excel in the desired format, but sorting in the charts within QV is messed up. For some reason I can't get QV and Excel to work at the same time. Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 23:54:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262193#M98746</guid>
      <dc:creator />
      <dc:date>2011-07-15T23:54:52Z</dc:date>
    </item>
    <item>
      <title>Re: Date changes to Number when export to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262194#M98747</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try the following script and it works for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;StartMonth = 40694;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;for i = 0 to 26;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;let vLoop_Month=Num(DayStart(MonthEnd(addmonths($(StartMonth),-i))));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;let vLoop_Quarter=Num(DayStart(QuarterEnd(addmonths($(StartMonth),-i))));&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;MasterCalendar:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;load $(vLoop_Month) as DateKey,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date($(vLoop_Month),'MM/DD/YYYY') as ExtDate,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month($(vLoop_Month)) as CM, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'Q'&amp;amp;ceil(Month($(vLoop_Month))/3) as CQ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year($(vLoop_Month)) as CY,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text(Year($(vLoop_Quarter))&amp;amp;'-'&amp;amp;'Q'&amp;amp;ceil(Month($(vLoop_Quarter))/3)) as CYQ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text(Year($(vLoop_Month))&amp;amp;'-'&amp;amp;Month($(vLoop_Month))) as CYM,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(dual(Year($(vLoop_Month))&amp;amp;'-'&amp;amp;Month($(vLoop_Month)),$(vLoop_Month)), 'M/YY') as CYM2,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Text('Q'&amp;amp; ceil(Month($(vLoop_Quarter))/3)&amp;amp;'/'&amp;amp;date($(vLoop_Quarter),'YY')) as CYQS&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;autogenerate(1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier; color: #0000ff;"&gt;Next&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Jul 2011 06:03:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262194#M98747</guid>
      <dc:creator>nagaiank</dc:creator>
      <dc:date>2011-07-16T06:03:33Z</dc:date>
    </item>
    <item>
      <title>Date changes to Number when export to Excel</title>
      <link>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262195#M98748</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; Property of line chart prevents me from exporting custom dates as dates and it converts them to number. Once I converted the line chart into Straight table and then exported, it started working as expected. So from now on every chart that needs exporting we ended up giving Fast Change option to clients.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Oct 2011 21:48:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Date-changes-to-Number-when-export-to-Excel/m-p/262195#M98748</guid>
      <dc:creator />
      <dc:date>2011-10-20T21:48:22Z</dc:date>
    </item>
  </channel>
</rss>

