<?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: Qliksense:develop a single calculated date dimension showing - Year, Quarter, Month, Week, Day v in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1534850#M601650</link>
    <description>&lt;P&gt;This has been resolved by using a solution where we enhance our existing algorithm by prefixing some extra spaces in the values , like -&lt;/P&gt;&lt;P&gt;4 spaces before Yr&lt;/P&gt;&lt;P&gt;3 spaces before Q&lt;/P&gt;&lt;P&gt;2 spaces before M&lt;/P&gt;&lt;P&gt;1 space before Week&lt;/P&gt;&lt;P&gt;&amp;amp; it will sort well alphabetically......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(YEAR(CLOSED)&amp;lt;&amp;gt; YEAR(Today()),'Yr-'&amp;amp; YEAR(CLOSED),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(QuarterName(CLOSED)&amp;lt;&amp;gt; QuarterName(Today()),'Q' &amp;amp; Ceil(NUm(Month([CLOSED]))/3)&amp;amp;'-'&amp;amp;year([CLOSED]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Month(CLOSED)&amp;lt;&amp;gt; Month(Today()),'M-'&amp;amp; Month([CLOSED])&amp;amp;'-'&amp;amp;year([CLOSED]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Week(CLOSED)&amp;lt;&amp;gt; Week(Today()), Week([CLOSED])&amp;amp;'-'&amp;amp;year([CLOSED]),dayname(CLOSED))))) AS CALC_FIELD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 25 Jan 2019 05:17:15 GMT</pubDate>
    <dc:creator>rahulgoyal1287</dc:creator>
    <dc:date>2019-01-25T05:17:15Z</dc:date>
    <item>
      <title>Qliksense:develop a single calculated date dimension showing - Year, Quarter, Month, Week, Day view</title>
      <link>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1508767#M601647</link>
      <description>&lt;P&gt;Hi Community Members,&lt;/P&gt;&lt;P&gt;I need some help in designing a calculated dimension which should work in following manner -&amp;nbsp;&lt;/P&gt;&lt;P&gt;When a year is finished then dates of that year should be clubbed under a year, to be named as 'Year - &amp;lt;year&amp;gt;'&lt;/P&gt;&lt;P&gt;Then, when a quarter is finished then dates of that quarter should be mapped under a quarter , named as 'Q &amp;lt;Quarter Number&amp;gt; - &amp;lt;Year&amp;gt; '&lt;/P&gt;&lt;P&gt;in the same way then Month, to be named as '&amp;lt;Month&amp;gt; - &amp;lt;Year&amp;gt;'&lt;/P&gt;&lt;P&gt;then Week, to be named as '&amp;lt;Week&amp;gt; - &amp;lt;Year&amp;gt;'&lt;/P&gt;&lt;P&gt;rest the remaining days&amp;nbsp; which are not yet mapped under any week.&lt;/P&gt;&lt;P&gt;&lt;FONT color="#993300"&gt;&lt;U&gt;&lt;EM&gt;This is required in ascending order.&lt;/EM&gt;&lt;/U&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;I have already developed a script which is working fine partially with only a problem of values coming in descending order... mentioned below -&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(YEAR(CLOSED)&amp;lt;&amp;gt; YEAR(Today()),'Yr-'&amp;amp; YEAR(CLOSED),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(QuarterName(CLOSED)&amp;lt;&amp;gt; QuarterName(Today()),'Q' &amp;amp; Ceil(NUm(Month([CLOSED]))/3)&amp;amp;'-'&amp;amp;year([CLOSED]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Month(CLOSED)&amp;lt;&amp;gt; Month(Today()),'M-'&amp;amp; Month([CLOSED])&amp;amp;'-'&amp;amp;year([CLOSED]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Week(CLOSED)&amp;lt;&amp;gt; Week(Today()), Week([CLOSED])&amp;amp;'-'&amp;amp;year([CLOSED]),dayname(CLOSED))))) AS CALC_FIELD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;U&gt;Screenshot for your reference:&lt;/U&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="snapshot.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/547iEA1BD825F1F69605/image-size/large?v=v2&amp;amp;px=999" role="button" title="snapshot.png" alt="snapshot.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Request you to please help me in aligning the script&amp;nbsp;to achieve the desired results. Many Thanks in advance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Rahul Goyal&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 05:12:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1508767#M601647</guid>
      <dc:creator>rahulgoyal1287</dc:creator>
      <dc:date>2024-11-16T05:12:35Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense:develop a single calculated date dimension showing - Year, Quarter, Month, Week, Day v</title>
      <link>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1508771#M601648</link>
      <description>Hi, Have you tried using order by clause.</description>
      <pubDate>Mon, 19 Nov 2018 07:36:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1508771#M601648</guid>
      <dc:creator>jobsonkjoseph</dc:creator>
      <dc:date>2018-11-19T07:36:39Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense:develop a single calculated date dimension showing - Year, Quarter, Month, Week, Day v</title>
      <link>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1510093#M601649</link>
      <description>&lt;P&gt;Hello J,&lt;/P&gt;&lt;P&gt;Yes, I have used sorting feature in descending order to get the following sequence -&lt;/P&gt;&lt;P&gt;Year &amp;gt; Quarter &amp;gt; Month &amp;gt; Week &amp;gt; Days&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It is working partially by adhering to above sequence however&amp;nbsp;within any specific bucket 'Lets say Quarter' it is coming in descending order.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Rahul&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Nov 2018 04:37:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1510093#M601649</guid>
      <dc:creator>rahulgoyal1287</dc:creator>
      <dc:date>2018-11-21T04:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Qliksense:develop a single calculated date dimension showing - Year, Quarter, Month, Week, Day v</title>
      <link>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1534850#M601650</link>
      <description>&lt;P&gt;This has been resolved by using a solution where we enhance our existing algorithm by prefixing some extra spaces in the values , like -&lt;/P&gt;&lt;P&gt;4 spaces before Yr&lt;/P&gt;&lt;P&gt;3 spaces before Q&lt;/P&gt;&lt;P&gt;2 spaces before M&lt;/P&gt;&lt;P&gt;1 space before Week&lt;/P&gt;&lt;P&gt;&amp;amp; it will sort well alphabetically......&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(YEAR(CLOSED)&amp;lt;&amp;gt; YEAR(Today()),'Yr-'&amp;amp; YEAR(CLOSED),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(QuarterName(CLOSED)&amp;lt;&amp;gt; QuarterName(Today()),'Q' &amp;amp; Ceil(NUm(Month([CLOSED]))/3)&amp;amp;'-'&amp;amp;year([CLOSED]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Month(CLOSED)&amp;lt;&amp;gt; Month(Today()),'M-'&amp;amp; Month([CLOSED])&amp;amp;'-'&amp;amp;year([CLOSED]),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;IF(Week(CLOSED)&amp;lt;&amp;gt; Week(Today()), Week([CLOSED])&amp;amp;'-'&amp;amp;year([CLOSED]),dayname(CLOSED))))) AS CALC_FIELD&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 25 Jan 2019 05:17:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Qliksense-develop-a-single-calculated-date-dimension-showing/m-p/1534850#M601650</guid>
      <dc:creator>rahulgoyal1287</dc:creator>
      <dc:date>2019-01-25T05:17:15Z</dc:date>
    </item>
  </channel>
</rss>

