<?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: Crosstable Rolling 6 Months Date Issue in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1700253#M506267</link>
    <description>&lt;P&gt;The expression:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Month]={"&amp;gt;=$(= Date(AddMonths(Max(Month),-5))) &amp;lt;=$(=Max(Month))"}&amp;gt;} [Hours])&lt;/P&gt;&lt;P&gt;seems to give 6 rolling months as per below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gp_oconnor_0-1588950426078.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33211i35A2F3FED1BFB351/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gp_oconnor_0-1588950426078.png" alt="gp_oconnor_0-1588950426078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 08 May 2020 15:08:28 GMT</pubDate>
    <dc:creator>gp_oconnor</dc:creator>
    <dc:date>2020-05-08T15:08:28Z</dc:date>
    <item>
      <title>Crosstable Rolling 6 Months Date Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1699991#M506264</link>
      <description>&lt;P&gt;I need to show rolling 6 months of data in my chart but I think I am having an issue with the Month field not being formatted as a date correctly. Anyone have any ideas?&lt;/P&gt;&lt;P&gt;= sum({&amp;lt;Month={ " &amp;gt;= $(= Date(AddMonths(Max(Month),-5))) &amp;lt;= $(=Max(Month)) " }&amp;gt;} Hours)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Load Script:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;EPIC_HOURS_CROSSTABLE:&lt;BR /&gt;UNQUALIFY*;&lt;BR /&gt;CrossTable(Month, Hours, &lt;span class="lia-unicode-emoji" title=":smiling_face_with_sunglasses:"&gt;😎&lt;/span&gt;&lt;BR /&gt;LOAD&lt;BR /&gt;[GPL Project #],&lt;BR /&gt;[Ticket #],&lt;BR /&gt;trim( subfield([Requesting Market],',')) as EPIC_MARKET,&lt;BR /&gt;[Project Name],&lt;BR /&gt;Comments as HOURS_COMMENTS,&lt;BR /&gt;//[Module for Hours],&lt;BR /&gt;subfield(SubField([Module for Hours],'/',1),',') as [Module for Hours],&lt;BR /&gt;[SA Assigned],&lt;BR /&gt;Status as HOURS_STATUS,&lt;BR /&gt;[1/1/2019],&lt;BR /&gt;[2/1/2019],&lt;BR /&gt;[3/1/2019],&lt;BR /&gt;[4/1/2019],&lt;BR /&gt;[5/1/2019],&lt;BR /&gt;[6/1/2019],&lt;BR /&gt;[7/1/2019],&lt;BR /&gt;[8/1/2019],&lt;BR /&gt;[9/1/2019],&lt;BR /&gt;[10/1/2019],&lt;BR /&gt;[11/1/2019],&lt;BR /&gt;[12/1/2019],&lt;BR /&gt;[1/1/2020],&lt;BR /&gt;[2/1/2020],&lt;BR /&gt;[3/1/2020],&lt;BR /&gt;[4/1/2020],&lt;BR /&gt;[5/1/2020],&lt;BR /&gt;[6/1/2020],&lt;BR /&gt;[7/1/2020],&lt;BR /&gt;[8/1/2020],&lt;BR /&gt;[9/1/2020]&lt;BR /&gt;FROM&lt;BR /&gt;[..\External_Data\Epic Acute Care Capacity Worksheet with Month.xlsx]&lt;BR /&gt;(ooxml, embedded labels, header is 8 lines, table is Optimization, filters(&lt;BR /&gt;Remove(Col, Pos(Top, 15)),&lt;BR /&gt;Remove(Col, Pos(Top, 14)),&lt;BR /&gt;Remove(Col, Pos(Top, 13)),&lt;BR /&gt;Remove(Col, Pos(Top, 12)),&lt;BR /&gt;Remove(Col, Pos(Top, 11)),&lt;BR /&gt;Remove(Col, Pos(Top, 10)),&lt;BR /&gt;Remove(Col, Pos(Top, 9))&lt;BR /&gt;))&lt;BR /&gt;Where wildmatch( [Module for Hours], '*Clin*','*Orders*');&lt;/P&gt;&lt;P&gt;Final:&lt;BR /&gt;LOAD [GPL Project #],&lt;BR /&gt;[Ticket #],&lt;BR /&gt;EPIC_MARKET,&lt;BR /&gt;[Project Name],&lt;BR /&gt;[Module for Hours],&lt;BR /&gt;[SA Assigned],&lt;BR /&gt;Hours,&lt;BR /&gt;date#(num#(Month),'MM/DD/YYYY') as Month&lt;BR /&gt;RESIDENT&lt;BR /&gt;EPIC_HOURS_CROSSTABLE&lt;BR /&gt;where today()&amp;gt;=Month;&lt;/P&gt;&lt;P&gt;Drop TABLE EPIC_HOURS_CROSSTABLE;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="2020-05-07_13-14-04.png" style="width: 664px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33161iC6226B705C406BC5/image-size/large?v=v2&amp;amp;px=999" role="button" title="2020-05-07_13-14-04.png" alt="2020-05-07_13-14-04.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 00:43:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1699991#M506264</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2024-11-16T00:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable Rolling 6 Months Date Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1700063#M506265</link>
      <description>&lt;P&gt;I see a few potential issues with the date conversion:&lt;/P&gt;&lt;P&gt;- The dates appear to have a format "M/D/YYYY", but the date# function is listed with the format "MM/DD/YYYY' - that could cause a problem.&lt;/P&gt;&lt;P&gt;- Since you are converting the string format to the date format using date#(), I don't think that you need to convert the string to the number using num#() as well - Date#() should be sufficient&lt;/P&gt;&lt;P&gt;- The WHERE condition compares the today() function with the field Month that is not converted yet, which might also cause a problem. I'd recommend moving that WHERE condition to a preceding load that you could add on top of the resident load.&lt;/P&gt;&lt;P&gt;Having said that, I can't quite explain why the Month field looks like it is properly formatted as a date - based on all of the above, it shouldn't ...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 03:29:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1700063#M506265</guid>
      <dc:creator>Oleg_Troyansky</dc:creator>
      <dc:date>2020-05-08T03:29:10Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable Rolling 6 Months Date Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1700247#M506266</link>
      <description>&lt;P&gt;Is there any other way I can get the chart to show only the last rolling 6 months? I am trying to produce an Nprinting report but I've never done it with a crosstable before.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 14:31:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1700247#M506266</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2020-05-08T14:31:27Z</dc:date>
    </item>
    <item>
      <title>Re: Crosstable Rolling 6 Months Date Issue</title>
      <link>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1700253#M506267</link>
      <description>&lt;P&gt;The expression:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;[Month]={"&amp;gt;=$(= Date(AddMonths(Max(Month),-5))) &amp;lt;=$(=Max(Month))"}&amp;gt;} [Hours])&lt;/P&gt;&lt;P&gt;seems to give 6 rolling months as per below.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gp_oconnor_0-1588950426078.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/33211i35A2F3FED1BFB351/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gp_oconnor_0-1588950426078.png" alt="gp_oconnor_0-1588950426078.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2020 15:08:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Crosstable-Rolling-6-Months-Date-Issue/m-p/1700253#M506267</guid>
      <dc:creator>gp_oconnor</dc:creator>
      <dc:date>2020-05-08T15:08:28Z</dc:date>
    </item>
  </channel>
</rss>

