<?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: Create a column in straight table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Create-a-column-in-straight-table/m-p/1660648#M456041</link>
    <description>&lt;P&gt;Hi, I think you will need help from script, precalculating values, having additional fields for last months values or using an asof table:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 26 Dec 2019 07:43:48 GMT</pubDate>
    <dc:creator>rubenmarin</dc:creator>
    <dc:date>2019-12-26T07:43:48Z</dc:date>
    <item>
      <title>Create a column in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-column-in-straight-table/m-p/1660634#M456040</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;Need help in creating a calculated column(&lt;STRONG&gt;Last 6 months Mat_Count&lt;/STRONG&gt;) in straight table.&lt;/P&gt;&lt;P&gt;In the &amp;nbsp;below table ,beside Sum(Mat_count) column, i have to create a column - &lt;STRONG&gt;sum of 6 months mat_count &amp;nbsp;of each month&lt;/STRONG&gt;&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-center" image-alt="Range2.PNG" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25995iCB27A8740875E773/image-size/large?v=v2&amp;amp;px=999" role="button" title="Range2.PNG" alt="Range2.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;For example for 2019 and Oct &amp;nbsp;month the sum of mat 6 months is as shown below&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Range1.PNG" style="width: 925px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/25997i245713445FDA0DB1/image-size/large?v=v2&amp;amp;px=999" role="button" title="Range1.PNG" alt="Range1.PNG" /&gt;&lt;/span&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This above &lt;STRONG&gt;76224&lt;/STRONG&gt;&amp;nbsp; value should be shown in &lt;STRONG&gt;Last 6 months column&lt;/STRONG&gt; beside sum(mat_Count) in last row &amp;nbsp;where year 2019,Oct.&lt;/P&gt;&lt;P&gt;the same for the Sep month etc...&lt;/P&gt;&lt;P&gt;What is try :&lt;/P&gt;&lt;P&gt;Took Two variables :&lt;/P&gt;&lt;P&gt;1)vFloor_Max=&lt;STRONG&gt;max(Floor_Date)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;2)vMaxDate_5=&amp;nbsp;&lt;STRONG&gt;num(addmonths(max(Floor_Date),-6))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;STRONG&gt;sum({&amp;lt;Floor_Date={"&amp;gt;=$(=vMaxDate_5)&amp;lt;=$(=vFloor_Max)"}&amp;gt;}mat_count)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;the expression is working when no month (Jan,Feb etc...) has selected ,when a month has selected it showing only selected month sum(&lt;STRONG&gt;mat_count) insteady of showing sum of six month mat_count from the selected month.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Note: Six months should be calculated irrespective of years I mean if 2019 feb is selectes then six months from that &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2019 Feb, 2019Jan,2018Dec,2018Nov,2018Oct,2018Sep,2018Aug..&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Please find the sample data attachment&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 06:16:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-column-in-straight-table/m-p/1660634#M456040</guid>
      <dc:creator>kunkumnaveen</dc:creator>
      <dc:date>2019-12-26T06:16:47Z</dc:date>
    </item>
    <item>
      <title>Re: Create a column in straight table</title>
      <link>https://community.qlik.com/t5/QlikView/Create-a-column-in-straight-table/m-p/1660648#M456041</link>
      <description>&lt;P&gt;Hi, I think you will need help from script, precalculating values, having additional fields for last months values or using an asof table:&amp;nbsp;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 26 Dec 2019 07:43:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Create-a-column-in-straight-table/m-p/1660648#M456041</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2019-12-26T07:43:48Z</dc:date>
    </item>
  </channel>
</rss>

