<?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 sort months across a year change? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646332#M473841</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the following dimension in you script and use it in your chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DUAL(LEFT(TEXT(MONTH([Sales Date])), 1), YEAR([Sales Date]) * 100 + MONTH([Sales Date])) AS [Sales Month Cont]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 16 Oct 2014 16:33:57 GMT</pubDate>
    <dc:creator>d_pranskus</dc:creator>
    <dc:date>2014-10-16T16:33:57Z</dc:date>
    <item>
      <title>How to sort months across a year change?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646331#M473840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am creating a table that has sum(Sales) for the last 12 months by using this formula:&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;CloseDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;vLoadDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: maroon; font-size: 9pt;"&gt;CloseDate&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &amp;gt; (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;AddMonths&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;vLoadDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;,-12)) - &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Floor&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: blue; font-size: 9pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;(&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style="color: gray; font-size: 9pt; font-family: 'Courier New';"&gt;vLoadDate&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt;))+1), Sales))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; font-size: 9pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use just the first letter of each month.&amp;nbsp; My question comes with sorting.&amp;nbsp; As of today, a normal sort would show Nov &amp;amp; Dec (Sales Month) of LAST year after the current month of October...when I want to show Nov &amp;amp; Dec of last year BEFORE January of this year.&amp;nbsp; What is the best way to sort this dimension (Sales Month)?&amp;nbsp; Being that this is a rolling-12 month chart, I would want all of last year’s month sorted before this year’s month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any thoughts?&amp;nbsp; Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 16:25:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646331#M473840</guid>
      <dc:creator />
      <dc:date>2014-10-16T16:25:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort months across a year change?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646332#M473841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the following dimension in you script and use it in your chart:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DUAL(LEFT(TEXT(MONTH([Sales Date])), 1), YEAR([Sales Date]) * 100 + MONTH([Sales Date])) AS [Sales Month Cont]&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 16:33:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646332#M473841</guid>
      <dc:creator>d_pranskus</dc:creator>
      <dc:date>2014-10-16T16:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort months across a year change?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646333#M473842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a buch!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 20:17:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646333#M473842</guid>
      <dc:creator />
      <dc:date>2014-10-16T20:17:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to sort months across a year change?</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646334#M473843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Now that I have the dates, I’m trying to create a stacked bar chart with the dimension I am stacking called&amp;nbsp; Segment.&amp;nbsp; However, I don’t have a variable name to put in the denominator…&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Sales) / Sum (Total &amp;lt;&lt;STRONG style="color: red;"&gt;???&lt;/STRONG&gt;&amp;gt; Sales)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried my Sales_Month and Sales_Date fields, but neither worked.&amp;nbsp; The chart renders, but the bars aren’t staking to 100%.&amp;nbsp; Any suggestions?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Oct 2014 15:16:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-sort-months-across-a-year-change/m-p/646334#M473843</guid>
      <dc:creator />
      <dc:date>2014-10-17T15:16:38Z</dc:date>
    </item>
  </channel>
</rss>

