<?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 How to extract last month's value for every Quarter in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/How-to-extract-last-month-s-value-for-every-Quarter/m-p/1684918#M52167</link>
    <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have to convert the below chart based on different quarters. Which is easy and I did it (please ref 2nd chart). As expected, I am getting value for Q1 as Jan+Feb+Mar ; Q2 as Apr+May+Jun etc.&lt;/P&gt;&lt;P&gt;But Goal here is to get the last month's value for every quarter. Eg. if it is Q1 , I should get value as 10,216 (March)and not 30,441 (Jan+Feb+Mar) similarly for Q2 -10,546 (Jun) and not 31,444 (Apr+May+June)&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;U&gt;Monthly&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Monthly.PNG" style="width: 521px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30079iF150BE9ECE96B2C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Monthly.PNG" alt="Monthly.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;U&gt;Quarterly&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quarterly.PNG" style="width: 466px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30081iB2A8927EC7E349F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Quarterly.PNG" alt="Quarterly.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried something with Set expression but I am getting only one Quarter at a time (which is not as expected). I should get all quarters.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quarterly_1.PNG" style="width: 248px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30082i40F9E13F32F6E16B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Quarterly_1.PNG" alt="Quarterly_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone let me know how to extract the last month's value of every quarter.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Mon, 16 Mar 2020 10:35:35 GMT</pubDate>
    <dc:creator>gayatri7</dc:creator>
    <dc:date>2020-03-16T10:35:35Z</dc:date>
    <item>
      <title>How to extract last month's value for every Quarter</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-extract-last-month-s-value-for-every-Quarter/m-p/1684918#M52167</link>
      <description>&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;I have to convert the below chart based on different quarters. Which is easy and I did it (please ref 2nd chart). As expected, I am getting value for Q1 as Jan+Feb+Mar ; Q2 as Apr+May+Jun etc.&lt;/P&gt;&lt;P&gt;But Goal here is to get the last month's value for every quarter. Eg. if it is Q1 , I should get value as 10,216 (March)and not 30,441 (Jan+Feb+Mar) similarly for Q2 -10,546 (Jun) and not 31,444 (Apr+May+June)&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;U&gt;Monthly&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Monthly.PNG" style="width: 521px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30079iF150BE9ECE96B2C5/image-size/large?v=v2&amp;amp;px=999" role="button" title="Monthly.PNG" alt="Monthly.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&lt;U&gt;Quarterly&lt;/U&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quarterly.PNG" style="width: 466px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30081iB2A8927EC7E349F0/image-size/large?v=v2&amp;amp;px=999" role="button" title="Quarterly.PNG" alt="Quarterly.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I tried something with Set expression but I am getting only one Quarter at a time (which is not as expected). I should get all quarters.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Quarterly_1.PNG" style="width: 248px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/30082i40F9E13F32F6E16B/image-size/large?v=v2&amp;amp;px=999" role="button" title="Quarterly_1.PNG" alt="Quarterly_1.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;DIV class="mceNonEditable lia-copypaste-placeholder"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could anyone let me know how to extract the last month's value of every quarter.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 10:35:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-extract-last-month-s-value-for-every-Quarter/m-p/1684918#M52167</guid>
      <dc:creator>gayatri7</dc:creator>
      <dc:date>2020-03-16T10:35:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to extract last month's value for every Quarter</title>
      <link>https://community.qlik.com/t5/App-Development/How-to-extract-last-month-s-value-for-every-Quarter/m-p/1684947#M52168</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/30273"&gt;@gayatri7&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Maybe you can adapt this to work for you. I assumed that you don't use autoCalendar, otherwise you can obviously just use the Quarter field for your dimension .&lt;/P&gt;&lt;P&gt;LOAD RecNo() AS InvId, Date#(InvDate,'DD/MM/YYYY') AS InvDate, Sales Inline [&lt;BR /&gt;InvDate, Sales&lt;BR /&gt;28/03/2012, 20&lt;BR /&gt;10/12/2012, 25&lt;BR /&gt;5/2/2013, 32&lt;BR /&gt;31/3/2013, 15&lt;BR /&gt;19/5/2013, 19&lt;BR /&gt;15/9/2013, 20&lt;BR /&gt;11/12/2013, 25&lt;BR /&gt;2/3/2014, 10&lt;BR /&gt;14/5/2014, 5&lt;BR /&gt;13/6/2014, 2&lt;BR /&gt;7/7/2014, 10&lt;BR /&gt;4/8/2014, 13&lt;BR /&gt;];&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Dimension:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Dual('Q'&amp;amp;Num(Ceil(Num(Month(InvDate))/3)),Num(Ceil(NUM(Month(InvDate))/3),00))&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Measure:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;InvId = {'=Month(InvDate)=Month(QuarterEnd(InvDate))'}&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Sum(If(Month(InvDate)=Month(QuarterEnd(InvDate)),Sales,0))&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mauritz&lt;/P&gt;</description>
      <pubDate>Mon, 16 Mar 2020 11:26:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/How-to-extract-last-month-s-value-for-every-Quarter/m-p/1684947#M52168</guid>
      <dc:creator>Mauritz_SA</dc:creator>
      <dc:date>2020-03-16T11:26:01Z</dc:date>
    </item>
  </channel>
</rss>

