<?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: Show Previous Quarter (sales) as a Calculated Field based on the current quarter that is selecte in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Show-Previous-Quarter-sales-as-a-Calculated-Field-based-on-the/m-p/1607688#M737301</link>
    <description>&lt;P&gt;Design Blog post regarding how to create a Master Calendar that may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
    <pubDate>Tue, 30 Jul 2019 18:30:15 GMT</pubDate>
    <dc:creator>Brett_Bleess</dc:creator>
    <dc:date>2019-07-30T18:30:15Z</dc:date>
    <item>
      <title>Show Previous Quarter (sales) as a Calculated Field based on the current quarter that is selected</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Previous-Quarter-sales-as-a-Calculated-Field-based-on-the/m-p/1599022#M737299</link>
      <description>&lt;P&gt;Hi Folks.&lt;/P&gt;&lt;P&gt;What I would like to do is add another column called [Previous QTR Sales] and then when:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; The user selects:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Q1 the [Sales] column will show sales for Q1 and [Previous QTR Sales] shows Q4 previous year Sales. *there is no data for this so i cannot check but just want to mention it because this will be a problem for me in 2020 Q1.&lt;/LI&gt;&lt;LI&gt;Q2 the [Sales] column will show sales for Q2 and [Previous QTR Sales] Shows Q1 sales&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Q3 the [Sales] column will show sales for Q2 and [Previous QTR Sales] Shows Q2 sales&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;&lt;SPAN&gt;Q4 the [Sales] column will show sales for Q2 and [Previous QTR Sales] Shows Q3 sales&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;SPAN&gt;I thought this would be easy but nothing I have read or found so far works and keeps me from having to up date a parameter every Quarter / Year.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thank you in advance for your help!&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Rupali E&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="https://community.qlik.com/people/kaushik.solanki" target="_blank" rel="noopener"&gt;kaushik.solanki&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/t5/tag/sunny%20t/tg-p/board-id/new-to-qlikview" target="_blank" rel="noopener tag"&gt;sunny t&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:31:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Previous-Quarter-sales-as-a-Calculated-Field-based-on-the/m-p/1599022#M737299</guid>
      <dc:creator>rupaliqlik</dc:creator>
      <dc:date>2024-11-16T20:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: Show Previous Quarter (sales) as a Calculated Field based on the current quarter that is selecte</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Previous-Quarter-sales-as-a-Calculated-Field-based-on-the/m-p/1600581#M737300</link>
      <description>&lt;P&gt;Are you creating a master calendar table? Are you setting any variables like the following?&lt;/P&gt;&lt;P&gt;Let vCurr_Yr = Year(Today()); &amp;nbsp;Let vCurr_Mo = Month(Today());&amp;nbsp;Let vCurr_Qtr = Ceil(Month(Today())/3);&lt;BR /&gt;&lt;BR /&gt;Establishing a master calendar would be best in my opinion, but if you are using variables you can say:&lt;/P&gt;&lt;P&gt;Let vPrev_Qtr = If(vCurr_Qtr = 1, 4, vCurr_Qtr-1)&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;Let vPrev_Yr = If(vCurr_Qtr = 1, 4, vCurr_Yr-1)&lt;/P&gt;&lt;P&gt;Then use those variables in your expressions with Set Analysis:&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Year={$(vPrev_Yr)},Quarter={$(vPrev_Qtr)}&amp;gt;} Sales)&lt;/P&gt;</description>
      <pubDate>Tue, 09 Jul 2019 19:07:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Previous-Quarter-sales-as-a-Calculated-Field-based-on-the/m-p/1600581#M737300</guid>
      <dc:creator>olivetwist</dc:creator>
      <dc:date>2019-07-09T19:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Show Previous Quarter (sales) as a Calculated Field based on the current quarter that is selecte</title>
      <link>https://community.qlik.com/t5/QlikView/Show-Previous-Quarter-sales-as-a-Calculated-Field-based-on-the/m-p/1607688#M737301</link>
      <description>&lt;P&gt;Design Blog post regarding how to create a Master Calendar that may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527" target="_blank"&gt;https://community.qlik.com/t5/Qlik-Design-Blog/The-Master-Calendar/ba-p/1471527&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Regards,&lt;BR /&gt;Brett&lt;/P&gt;</description>
      <pubDate>Tue, 30 Jul 2019 18:30:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Show-Previous-Quarter-sales-as-a-Calculated-Field-based-on-the/m-p/1607688#M737301</guid>
      <dc:creator>Brett_Bleess</dc:creator>
      <dc:date>2019-07-30T18:30:15Z</dc:date>
    </item>
  </channel>
</rss>

