<?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 Need last 3 months data in pivot table in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249098#M858753</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview and working on one of the dashboard where pivot table is involved.I need to show last three months net sales in table as a column and i have below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Sum({&amp;lt;[Calendar Year/Month (Key)]={"&amp;gt;$(vMonthprev) &amp;lt;= $(vMonthprev1)"}&amp;gt;}[NET SALES])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have Month and year in list box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Month is in below format &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Jan , Feb , Mar ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year is in below format&lt;/P&gt;&lt;P&gt;2014 , 2015 , 2016 ,2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have cal month as a field apart from year and month. Somehow this expression is giving eme 0 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used vMonthprev = (Date(AddMonths(Date#([Calendar Year/Month],'MMM YYYY'),-1),'MMM YYYY')) variable to get previous month &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMonthprev = &lt;SPAN style="font-size: 13.3333px;"&gt;(Date(AddMonths(Date#([Calendar Year/Month],'MMM YYYY'),0),'MMM YYYY')) variable to show dynamically selected month and year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me if i am doing any mistake while writing expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have calmonth in list box but Month and year separately in different list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached image for reference.please guide me for my query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
    <dc:creator />
    <dc:date>2020-11-25T16:16:04Z</dc:date>
    <item>
      <title>Need last 3 months data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249098#M858753</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to qlikview and working on one of the dashboard where pivot table is involved.I need to show last three months net sales in table as a column and i have below expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=Sum({&amp;lt;[Calendar Year/Month (Key)]={"&amp;gt;$(vMonthprev) &amp;lt;= $(vMonthprev1)"}&amp;gt;}[NET SALES])&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have Month and year in list box.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Month is in below format &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Jan , Feb , Mar ....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;year is in below format&lt;/P&gt;&lt;P&gt;2014 , 2015 , 2016 ,2017&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have cal month as a field apart from year and month. Somehow this expression is giving eme 0 value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have used vMonthprev = (Date(AddMonths(Date#([Calendar Year/Month],'MMM YYYY'),-1),'MMM YYYY')) variable to get previous month &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;vMonthprev = &lt;SPAN style="font-size: 13.3333px;"&gt;(Date(AddMonths(Date#([Calendar Year/Month],'MMM YYYY'),0),'MMM YYYY')) variable to show dynamically selected month and year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please guide me if i am doing any mistake while writing expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't have calmonth in list box but Month and year separately in different list boxes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have attached image for reference.please guide me for my query.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249098#M858753</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Need last 3 months data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249099#M858754</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13.3333px;"&gt;[Calendar Year/Month (Key)]&lt;/SPAN&gt; read as date field by QlikView?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2622"&gt;Get the Dates Right&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/2954"&gt;Why don’t my dates work?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/qlik-blogpost/4394"&gt;Dates in Set Analysis&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 18:36:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249099#M858754</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-27T18:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: Need last 3 months data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249100#M858755</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Sunny,&lt;/P&gt;&lt;P&gt;Thanks for reply.I am not using any date field in my dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Highlighted image in green is from Calmonth and orange one is showing value of variable for month selected through below expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(Date(AddMonths(Date#([Calendar Year/Month],'MMM YYYY'),0),'MMM YYYY'))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is it really necessary to have date in dashboard?Please guide me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Month_data.jpg" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/151089_Month_data.jpg" style="height: 457px; width: 620px;" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 18:56:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249100#M858755</guid>
      <dc:creator />
      <dc:date>2017-01-27T18:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: Need last 3 months data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249101#M858756</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When using set analysis on dates, its always a good idea to have them in dual format because then you can do ranges, you can sort them correctly and so on and so forth. I would def. encourage you to help QlikView read them as date using Date#() or TimeStamp#() function and then your life would be so much easier with the date range you are looking to get&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Jan 2017 19:08:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249101#M858756</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-27T19:08:35Z</dc:date>
    </item>
    <item>
      <title>Re: Need last 3 months data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249102#M858757</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have attached last 3 months sales qvw file along with excel data.Please let me know if i am missing anything in terms of format.&lt;/P&gt;&lt;P&gt;Thanks for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 11:11:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249102#M858757</guid>
      <dc:creator />
      <dc:date>2017-01-30T11:11:42Z</dc:date>
    </item>
    <item>
      <title>Re: Need last 3 months data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249103#M858758</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I were you, I would handle your dates like this in the script:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data1:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Customer, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(Date#([CalMonth (Key)], 'YYYYMM')), 'YYYYMM') as [CalMonth (Key)], &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Date(MonthStart(Date#(Calmonth, 'MMM YYYY')), 'MMM YYYY') as Calmonth, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(Date#(Calmonth, 'MMM YYYY')) as Month, &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Sales&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;FROM&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Book1.xlsx&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;(ooxml, embedded labels, table is Sheet1);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Data:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD *,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp; Year([CalMonth (Key)]) as YEAR,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(Month([CalMonth (Key)])) as MONTH&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Resident Data1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DROP Table Data1;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Jan 2017 13:19:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249103#M858758</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-01-30T13:19:12Z</dc:date>
    </item>
    <item>
      <title>Re: Need last 3 months data in pivot table</title>
      <link>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249104#M858759</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Sunny for help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Feb 2017 18:10:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Need-last-3-months-data-in-pivot-table/m-p/1249104#M858759</guid>
      <dc:creator />
      <dc:date>2017-02-01T18:10:46Z</dc:date>
    </item>
  </channel>
</rss>

