<?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 What Dimension do I use? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230286#M82131</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthName(AdmitDate) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 27 Apr 2011 13:54:48 GMT</pubDate>
    <dc:creator />
    <dc:date>2011-04-27T13:54:48Z</dc:date>
    <item>
      <title>What Dimension do I use?</title>
      <link>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230282#M82127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have tried a few different dimensions to get what I am after but each has a problem with it.&lt;BR /&gt;1: If I use the month for the dimension it will separate by months but not years.&lt;BR /&gt;2: If I use the year, it will separate the years but not the months.&lt;BR /&gt;3: If I use the Month/Year combination with the following calculation&lt;BR /&gt; Date(makedate(year(AdmitDate),month(AdmitDate)),'MMM-YYYY') AS MonYear,&lt;BR /&gt; It will separate the months and years as I want but If a visit crosses from one month into the next, all days from this visit will go in the starting month.&lt;/P&gt;&lt;P&gt;I the inline table below&lt;BR /&gt;Jan-2010 should = 3&lt;BR /&gt;Feb-2010 should = 3&lt;BR /&gt;Jan-2011 should = 3 ( it shows 4)&lt;BR /&gt;Feb-2011 should =2 (it shows1)&lt;/P&gt;&lt;P&gt;The fifth line in the table has a date range that crosses from Jan to Feb. The strange thing is I had this part working when I was using the month as the dimension.&lt;/P&gt;&lt;P&gt;Visits:&lt;BR /&gt;LOAD * INLINE [&lt;BR /&gt; VisitID, InpatientServiceID, AdmitDate, DischargeDate&lt;BR /&gt; 2, MED, 01/01/2010, 01/03/2010&lt;BR /&gt; 118, MED, 02/02/2010, 02/04/2010&lt;BR /&gt; 1539, MED, 01/01/2011, 01/02/2011&lt;BR /&gt; 1676, OOB, 02/01/2011, 02/01/2011&lt;BR /&gt; 1671, MST, 01/31/2011, 02/01/2011&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;%%%% &lt;B&gt;Question on Forum Procedure&lt;/B&gt; %%%%%%%%%%%%%%%&lt;BR /&gt;I asked this questions previously, received an answer and verified it. Since then I found an exception that I need to handle. In the future do I reopen the old thread somehow or start a new one?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 Apr 2011 18:08:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230282#M82127</guid>
      <dc:creator>dhborchardt</dc:creator>
      <dc:date>2011-04-26T18:08:58Z</dc:date>
    </item>
    <item>
      <title>What Dimension do I use?</title>
      <link>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230283#M82128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I think you should use this:&lt;/P&gt;&lt;P&gt;Date(makedate(year(AdmitDate + IterNo() - 1),month(AdmitDate + IterNo() - 1)),'MMM-YYYY') AS MonYear&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps you,&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;* I'm not sure on how you shoud proceed, but If what you asked earlier was solved, and now you need another answer, i'd start another thread.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 04:04:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230283#M82128</guid>
      <dc:creator>fosuzuki</dc:creator>
      <dc:date>2011-04-27T04:04:50Z</dc:date>
    </item>
    <item>
      <title>What Dimension do I use?</title>
      <link>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230284#M82129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What if you try:&lt;/P&gt;&lt;P&gt;date(monthstart(AdmitDate), 'MMM-YYYY') AS MonthYear,&lt;/P&gt;&lt;P&gt;?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 13:42:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230284#M82129</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-27T13:42:23Z</dc:date>
    </item>
    <item>
      <title>What Dimension do I use?</title>
      <link>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230285#M82130</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;See Attachment.&lt;BR /&gt;&lt;BR /&gt;Let me know if this works for you ok?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 13:47:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230285#M82130</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2011-04-27T13:47:34Z</dc:date>
    </item>
    <item>
      <title>What Dimension do I use?</title>
      <link>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230286#M82131</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why not try:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MonthName(AdmitDate) ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 13:54:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230286#M82131</guid>
      <dc:creator />
      <dc:date>2011-04-27T13:54:48Z</dc:date>
    </item>
    <item>
      <title>What Dimension do I use?</title>
      <link>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230287#M82132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Date(makedate(year(AdmitDate + IterNo() - 1),month(AdmitDate + IterNo() - 1)),'MMM-YYYY') AS xxMonYear,&lt;/P&gt;&lt;P&gt;This did the trick. If you look at the table (attached qvw) you can see that it properly handled the dates. I threw an additional visit in to test the change of year and it handled that event also.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Apr 2011 14:37:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/What-Dimension-do-I-use/m-p/230287#M82132</guid>
      <dc:creator>dhborchardt</dc:creator>
      <dc:date>2011-04-27T14:37:31Z</dc:date>
    </item>
  </channel>
</rss>

