<?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: Year Over Year Counts in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2538018#M1226771</link>
    <description>&lt;P&gt;Thank you so much for your help here.&amp;nbsp; Your idea to use a variable (I use them so infrequently) really made this come together, along with Ruben's advice.&amp;nbsp; This was truly a group effort and I appreciate you both.&lt;/P&gt;</description>
    <pubDate>Wed, 03 Dec 2025 20:01:15 GMT</pubDate>
    <dc:creator>raynac</dc:creator>
    <dc:date>2025-12-03T20:01:15Z</dc:date>
    <item>
      <title>Year Over Year Counts</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2537862#M1226766</link>
      <description>&lt;P&gt;Hi all!&lt;/P&gt;&lt;P&gt;I am trying to build a chart that shows every client who has one or more bookings in the "Chosen" year.&amp;nbsp; Subsequently, I'd like to show, from that set, if those clients were return guests... ie if they had bookings over the previous year and/or the one before that.&amp;nbsp; So I want only the clients in the bottom chart.&amp;nbsp;&lt;/P&gt;&lt;P&gt;However, I have tried Alternate States and Set Analysis to try and make this work, and every time I add in the previous years, it gives me any client who had a booking in either of these two years, regardless of whether they had one in the year that I am trying to focus on.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="raynac_0-1764699404163.png" style="width: 400px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/185418i02667099815E7DD1/image-size/medium?v=v2&amp;amp;px=400" role="button" title="raynac_0-1764699404163.png" alt="raynac_0-1764699404163.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Can someone please point me towards the formula I'd use to keep the chart from including clients that didn't book in the chosen year?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Tue, 02 Dec 2025 18:28:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2537862#M1226766</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2025-12-02T18:28:38Z</dc:date>
    </item>
    <item>
      <title>Re: Year Over Year Counts</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2537863#M1226767</link>
      <description>&lt;P&gt;Hi, you have at least to options:&lt;/P&gt;&lt;P&gt;- Use a calculated dimension checking the option to supress when value is null, the calcualted dimension should filter customers with booking on the chosen year, like:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Aggr(If([ContionToCheckCustomerOnChosenYear], Customer), Customer)&lt;/LI-CODE&gt;&lt;P&gt;- Filter other expressions, to only calculate when ChosenYear&amp;gt;0, i.e. 1 year prev could be:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;If({Chosen Year]&amp;gt;0, [ExpressionFor1YearPrev)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 02 Dec 2025 18:37:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2537863#M1226767</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-12-02T18:37:51Z</dc:date>
    </item>
    <item>
      <title>Re: Year Over Year Counts</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2537908#M1226768</link>
      <description>&lt;P&gt;May be try this&lt;/P&gt;&lt;P&gt;=Count(&lt;BR /&gt;{&amp;lt;[Client Code] = {"=BookingYear = $(vChosenYear)"}&amp;gt;}&lt;BR /&gt;*{&amp;lt;[Client Code] = {"=BookingYear = $(vChosenYear)-1"}&amp;gt;}&lt;BR /&gt;[Client Code]&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;*&amp;nbsp;Intersection Operator: ONLY include clients who meet BOTH criteria.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 06:42:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2537908#M1226768</guid>
      <dc:creator>Nagaraju_KCS</dc:creator>
      <dc:date>2025-12-03T06:42:07Z</dc:date>
    </item>
    <item>
      <title>Re: Year Over Year Counts</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2537912#M1226769</link>
      <description>&lt;P&gt;Hi, to use that option you should r&lt;SPAN&gt;emove the } before * and the { after *. Operations is betwen &amp;lt;&amp;gt; segments or field values, inside the same set analysis.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And maybe you need to use P():&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;=Count(&lt;BR /&gt;{&amp;lt;[Client Code] = P({&amp;lt;BookingYear={$(vChosenYear)} [Client Code])&amp;gt;&lt;BR /&gt;*&amp;lt;[Client Code] = P({&amp;lt;BookingYear={"=$(vChosenYear)-1"} [Client Code])&amp;gt;}&lt;BR /&gt;[Client Code]&lt;BR /&gt;)&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 07:57:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2537912#M1226769</guid>
      <dc:creator>rubenmarin</dc:creator>
      <dc:date>2025-12-03T07:57:41Z</dc:date>
    </item>
    <item>
      <title>Re: Year Over Year Counts</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2538016#M1226770</link>
      <description>&lt;P&gt;Thank you SO much, Ruben!&amp;nbsp; I used the first option and it worked perfectly, once I used a variable.&amp;nbsp; Wound up doing this:&lt;/P&gt;&lt;P&gt;=Aggr(If([Arrival Year]=$(vChosenYear) , client_code), client_code)&lt;/P&gt;&lt;P&gt;And I set the variables using an OnSelect trigger in the Arrival Year field.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I used&amp;nbsp;$(vChosenYear-1) and&amp;nbsp;$(vChosenYear-2) in Set Analysis for the other two year columns.&amp;nbsp; That may be more complicated than it needed to be, but it's working which is what matters!&lt;/P&gt;&lt;P&gt;Thank you again!&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 19:59:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2538016#M1226770</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2025-12-03T19:59:30Z</dc:date>
    </item>
    <item>
      <title>Re: Year Over Year Counts</title>
      <link>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2538018#M1226771</link>
      <description>&lt;P&gt;Thank you so much for your help here.&amp;nbsp; Your idea to use a variable (I use them so infrequently) really made this come together, along with Ruben's advice.&amp;nbsp; This was truly a group effort and I appreciate you both.&lt;/P&gt;</description>
      <pubDate>Wed, 03 Dec 2025 20:01:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-Over-Year-Counts/m-p/2538018#M1226771</guid>
      <dc:creator>raynac</dc:creator>
      <dc:date>2025-12-03T20:01:15Z</dc:date>
    </item>
  </channel>
</rss>

