<?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: Comparing semester selected vs previous in Water Cooler</title>
    <link>https://community.qlik.com/t5/Water-Cooler/Comparing-semester-selected-vs-previous/m-p/1682172#M11128</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/91871"&gt;@JaviValtu&lt;/a&gt;&amp;nbsp;Are you using QlikView or Sense? I would like to move this into the correct product forum. Thank you.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 05 Mar 2020 16:18:40 GMT</pubDate>
    <dc:creator>Sue_Macaluso</dc:creator>
    <dc:date>2020-03-05T16:18:40Z</dc:date>
    <item>
      <title>Comparing semester selected vs previous</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Comparing-semester-selected-vs-previous/m-p/1681966#M11126</link>
      <description>&lt;P&gt;Hi, I need to display data comparing similar periods against their previous period (Month, Quarter and Semester). The problem is that when user select the current period (unclosed period) we should compare it with the same number of days in the previous period. I applied this logic with Month an Quarter using MonthStart and QuarterStart functions, and it works:&lt;/P&gt;&lt;P&gt;InMonthToDate([Day], Today(), 0) * -1 AS [CurMTDFlag], //Current Month Flag&lt;/P&gt;&lt;P&gt;if ([Day]&amp;gt;=date(MonthStart(Today(), -1),'DD/MM/YYYY') and [Day]&amp;lt;=date(MonthStart(Today(), -1)+(Today()-MonthStart(Today(), 0)),'DD/MM/YYYY'),1,0) as [PrMTDFlag], //Prior Month Flag&lt;/P&gt;&lt;P&gt;InQuarterToDate([Day], Today(), 0) * -1 AS [CurQTDFlag], //Current Quarter Flag&lt;/P&gt;&lt;P&gt;if ([Day]&amp;gt;=date(QuarterStart(Today(), -1),'DD/MM/YYYY') and [Day]&amp;lt;=date(QuarterStart(Today(), -1)+(Today()-QuarterStart(Today(), 0)),'DD/MM/YYYY'),1,0) as [PrQTDFlag], // Prior Quarter Flag&lt;/P&gt;&lt;P&gt;if (InMonths(6,[Day], Today(),0), 1, 0) AS [CurHYTDFlag] //Current Semester Flag&lt;/P&gt;&lt;P&gt;Now, I have this problem:&lt;/P&gt;&lt;P&gt;- How can I apply the same logic for previous SEMESTER (Always considering Semester 1 as Jan-Jun and Semester 2 as Jul-Dec)?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks a lot!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:44:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Comparing-semester-selected-vs-previous/m-p/1681966#M11126</guid>
      <dc:creator>JaviValtu</dc:creator>
      <dc:date>2020-03-05T09:44:22Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing semester selected vs previous</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Comparing-semester-selected-vs-previous/m-p/1681976#M11127</link>
      <description>&lt;P&gt;I have the same problem!! In my case I need to be able to switch between Months (comparing the selected month with its previous), does anyone know any solution?&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 09:45:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Comparing-semester-selected-vs-previous/m-p/1681976#M11127</guid>
      <dc:creator>samazian</dc:creator>
      <dc:date>2020-03-05T09:45:59Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing semester selected vs previous</title>
      <link>https://community.qlik.com/t5/Water-Cooler/Comparing-semester-selected-vs-previous/m-p/1682172#M11128</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/91871"&gt;@JaviValtu&lt;/a&gt;&amp;nbsp;Are you using QlikView or Sense? I would like to move this into the correct product forum. Thank you.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 05 Mar 2020 16:18:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Water-Cooler/Comparing-semester-selected-vs-previous/m-p/1682172#M11128</guid>
      <dc:creator>Sue_Macaluso</dc:creator>
      <dc:date>2020-03-05T16:18:40Z</dc:date>
    </item>
  </channel>
</rss>

