<?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: Quarter Year conversion creating dates with decimals in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756071#M58310</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77079"&gt;@aswinnar&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(isnull(DATEFIELD),null(),'Q'&amp;amp;Ceil(month(floor(DATEFIELD))/3)&amp;amp;'-'&amp;amp;year(floor(DATEFIELD))&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Mon, 26 Oct 2020 23:02:37 GMT</pubDate>
    <dc:creator>Kushal_Chawda</dc:creator>
    <dc:date>2020-10-26T23:02:37Z</dc:date>
    <item>
      <title>Quarter Year conversion creating dates with decimals</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756067#M58309</link>
      <description>&lt;P&gt;Hi Everyone,&amp;nbsp;&lt;/P&gt;&lt;P&gt;In my app we have a date field that I am needing to convert to a Quarter Year format&lt;/P&gt;&lt;P&gt;so for a date of 2019 - 05 - 01 - 00:00:00&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am expecting to get a value of Q2-2019&lt;/P&gt;&lt;P&gt;However based on the expression I have, I am getting Q1.6666666666667 - 2019&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The expression I am using:&amp;nbsp;&lt;/P&gt;&lt;P&gt;if(isnull(DATEFIELD),null(),'Q'&amp;amp;Ceil(month(date(left(DATEFIELD,11),'MM)))/3&amp;amp;'-'&amp;amp;Date(left(DATEFIELD,11),'YYYY'))&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there something I am doing wrong in my expression. There are some values where I am getting whole numberd for the quarter dates, but most of the values seem to be having the quarter date in decimals.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 01:14:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756067#M58309</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2024-11-16T01:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter Year conversion creating dates with decimals</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756071#M58310</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77079"&gt;@aswinnar&lt;/a&gt;&amp;nbsp; try below&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(isnull(DATEFIELD),null(),'Q'&amp;amp;Ceil(month(floor(DATEFIELD))/3)&amp;amp;'-'&amp;amp;year(floor(DATEFIELD))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 23:02:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756071#M58310</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-26T23:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter Year conversion creating dates with decimals</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756072#M58311</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;That expression doesn't seem to be working. I am getting Q- as the result&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 23:10:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756072#M58311</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-10-26T23:10:19Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter Year conversion creating dates with decimals</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756073#M58312</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/77079"&gt;@aswinnar&lt;/a&gt;&amp;nbsp; make sure that your&amp;nbsp;&lt;SPAN&gt;DATEFIELD is in proper date format. Based on&amp;nbsp;DATEFIELD you can set the below variables in main tab&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;SET DateFormat='YourDATEFIELDFormat';&amp;nbsp;&amp;nbsp;&lt;BR /&gt;SET TimestampFormat='YourDATEFIELDFormat';&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;or else I will try to modify your expression like below&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(isnull(DATEFIELD),null(),'Q'&amp;amp;Ceil(month(date(left(DATEFIELD,11)))/3)&amp;amp;'-'&amp;amp;Date(left(DATEFIELD,11),'YYYY'))&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2020 23:18:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756073#M58312</guid>
      <dc:creator>Kushal_Chawda</dc:creator>
      <dc:date>2020-10-26T23:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Quarter Year conversion creating dates with decimals</title>
      <link>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756077#M58313</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/336"&gt;@Kushal_Chawda&lt;/a&gt;&amp;nbsp;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;The second expression is working for me. Thanks for the help!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2020 00:19:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Quarter-Year-conversion-creating-dates-with-decimals/m-p/1756077#M58313</guid>
      <dc:creator>aswinnar</dc:creator>
      <dc:date>2020-10-27T00:19:32Z</dc:date>
    </item>
  </channel>
</rss>

