<?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: Rolling 13 month chart and table...why so difficult? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347505#M414520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You already noticed the below points.&lt;/P&gt;&lt;P&gt;1. Sales person names are null in most of the months (but amount is there)&lt;/P&gt;&lt;P&gt;2. if we do suppress null, the month doesn't have amount will go off. (e.g Aug-2016)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166468_Capture1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;3. Try to change the MonYear field as Proper field. It seems to be a text.&lt;/P&gt;&lt;P&gt;Like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/166475_Capture.JPG" style="height: 83px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Dimension:_&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MonYear&lt;/P&gt;&lt;P&gt;=Aggr(if(sum(TOTAL &amp;lt;MonYear&amp;gt; Amount)&amp;lt;&amp;gt;0,SalesPerson,''),MonYear,SalesPerson)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonYear={'&amp;gt;=$(=AddMonths(Max(MonYear),-13)) &amp;lt;=$(=Max(MonYear))'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the Attachment&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/166476_Capture2.JPG" style="height: 171px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Jun 2017 04:58:04 GMT</pubDate>
    <dc:creator>settu_periasamy</dc:creator>
    <dc:date>2017-06-12T04:58:04Z</dc:date>
    <item>
      <title>Rolling 13 month chart and table...why so difficult?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347502#M414517</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So my customer comes to me and says:&amp;nbsp; Hey I want to have a report that shows a chart of rolling 13 month sales data for my team, and I want a table showing the same data underneath it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Should be no problem&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Here you go customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166444_pastedImage_7.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&amp;nbsp; &lt;/STRONG&gt;That looks pretty good, but where is August 2016 and January 2017?&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Your team didn't have any sales for those months.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; So?!&amp;nbsp; I still want to see the month!&amp;nbsp; It isn't exactly a rolling 13 month report if it only shows 11 months!&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Hmm, good point, let me see what I can do&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Here you go customer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/166464_pastedImage_21.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; That's looking better, I see all the months...no wait...what is that extra month at the end? &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; I don't know.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; And who is that extra salesperson in yellow?&amp;nbsp; Sales person "-"???&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; I don't know.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; Wait there are actual figures for that extra month in the table?!&amp;nbsp; Where are those coming from??&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; I don't know.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; This is unacceptable.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Let me see what I can do.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Here you go customer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/166465_pastedImage_22.png" style="max-height: 900px; max-width: 1200px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; Oh good the months look right now.&amp;nbsp; Wait...that mystery Sales Person is still there.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; I know&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; What gives?&amp;nbsp; I can't show my managers a report with that in there.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; QlikView appears to be unable to handle this particular situation adequately.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; You know I could do this in about 30 minutes in Excel exactly the way I want it.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Yes, I know, I could too.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; The only reason I bought these expensive servers, software, and your time is so that I could have this automated.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #0000ff;"&gt;Me&lt;/SPAN&gt;:&lt;/STRONG&gt; Yes, I understand.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN style="color: #008000;"&gt;Customer&lt;/SPAN&gt;:&lt;/STRONG&gt; I'm NOT happy.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;---------------------------------------------------&lt;/P&gt;&lt;P&gt;So this was, of course, a fictional story, but situations like this seem to happen again and again. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've attached the sample data as well as three QVWs that represent the three examples above.&amp;nbsp; QlikView is an amazing tool and can do amazing things, but it is very difficult to explain to customers when something seemingly as simple as this causes issues. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For this particular Rolling 13 month scenario I have tried all of the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;An expression for the Date Dimension that limits it to the past 13 months&lt;/LI&gt;&lt;LI&gt;Every combination of "Suppress When Value Is Null" and "Show All Values" that I can think of on both Dimensions&lt;/LI&gt;&lt;LI&gt;Every combination of "Suppres Zero-Values", "Suppress Missing" and "Populate Missing Cells" I can think of&lt;/LI&gt;&lt;LI&gt;ValueList based dynamic Dimensions for Date&lt;/LI&gt;&lt;LI&gt;Simple if..then expressions for the sales amount&lt;/LI&gt;&lt;LI&gt;Set Analysis based expressions for the sales amount&lt;/LI&gt;&lt;LI&gt;Individual expressions for each month (works on the table, not on the chart)&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing I haven't tried, and seems like a real hack, would be to populate the data with a dummy record for each SalesPerson for each month with zero value so there is at least one entry each month for each person.&amp;nbsp; I may try it just to see if it works, but in the real situation, where there are millions of rows in the source data, this would be very unpalatable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I am missing something obvious here, and I would be ecstatic to be told as much. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 00:06:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347502#M414517</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T00:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 13 month chart and table...why so difficult?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347503#M414518</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you try this? I am assuming this. I haven't check the file&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;=Sum({$&amp;lt;Mon-Year={'&amp;gt;=$(=MonthName(AddMonths(Max(Mon-Year),-13))) &amp;lt;=$(=MonthName(Max(Mon-Year)))'}&amp;gt;} Sales)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;PS - Please UN-check the suppress from presentation tab and then same in Dimension for Mon-Year dimension&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 03:15:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347503#M414518</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-06-12T03:15:33Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 13 month chart and table...why so difficult?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347504#M414519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I liked your fictional story. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; Have a look here: &lt;A href="https://community.qlik.com/qlik-blogpost/2928"&gt;How to populate a sparsely populated field&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 04:54:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347504#M414519</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2017-06-12T04:54:47Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 13 month chart and table...why so difficult?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347505#M414520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You already noticed the below points.&lt;/P&gt;&lt;P&gt;1. Sales person names are null in most of the months (but amount is there)&lt;/P&gt;&lt;P&gt;2. if we do suppress null, the month doesn't have amount will go off. (e.g Aug-2016)&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture1.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/166468_Capture1.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;3. Try to change the MonYear field as Proper field. It seems to be a text.&lt;/P&gt;&lt;P&gt;Like below&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/166475_Capture.JPG" style="height: 83px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Dimension:_&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;MonYear&lt;/P&gt;&lt;P&gt;=Aggr(if(sum(TOTAL &amp;lt;MonYear&amp;gt; Amount)&amp;lt;&amp;gt;0,SalesPerson,''),MonYear,SalesPerson)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;Expression&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;MonYear={'&amp;gt;=$(=AddMonths(Max(MonYear),-13)) &amp;lt;=$(=Max(MonYear))'}&amp;gt;} Amount)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Find the Attachment&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture2.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/166476_Capture2.JPG" style="height: 171px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 04:58:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347505#M414520</guid>
      <dc:creator>settu_periasamy</dc:creator>
      <dc:date>2017-06-12T04:58:04Z</dc:date>
    </item>
    <item>
      <title>Re: Rolling 13 month chart and table...why so difficult?</title>
      <link>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347506#M414521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Settu,&lt;/P&gt;&lt;P&gt;Thanks for the reply.&amp;nbsp; I follow what you are doing here I think.&amp;nbsp; In the Dimension you are elminating any SalesPerson who has never had any sales and thus eliminating the mystery "-" person. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With the expression you are limiting the data to the last 13 months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that sound right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't quite follow the change to the fields in the Master Calendar.&amp;nbsp; Is that just for easier sorting purposes? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did notice one thing, and I know this isn't part of my original story, but when I select additional criteria from the List Boxes, such as "Product Category" it goes back to skipping months. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Jun 2017 18:48:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Rolling-13-month-chart-and-table-why-so-difficult/m-p/1347506#M414521</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-06-12T18:48:00Z</dc:date>
    </item>
  </channel>
</rss>

