<?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 to Date set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283434#M856041</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my date field is simply called DAY. Just to confirm I use correct syntax, would it be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Location&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'External'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Active'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Test Filter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Remove Testing'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Date(Today(), Day))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;this gave me the correct result, but I just want to be sure I fully understand what I am putting. This additional syntax will take some digging to comprehend.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I don't know where I'd be without this message board. Thank you all&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Feb 2017 19:16:22 GMT</pubDate>
    <dc:creator>jason_nicholas</dc:creator>
    <dc:date>2017-02-15T19:16:22Z</dc:date>
    <item>
      <title>Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283426#M856033</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have searched a number of threads to determine the set analysis function for displaying year to date data. I don't fully understand how this function works, and I am not getting the expected results. I would appreciate feedback and corrections to my approach.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the function I am using&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Event Flag]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Event Flag'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Active'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Test Filter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Remove Testing'},&lt;/SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;&lt;SPAN style="color: #800000;"&gt;Year&lt;/SPAN&gt;={&lt;EM style=": ; color: #808080;"&gt;$(=Max(Year))&lt;/EM&gt;},&lt;SPAN style="color: #800000;"&gt;Month&lt;/SPAN&gt;={&lt;/STRONG&gt;&lt;SPAN style="color: #800000;"&gt;&lt;STRONG&gt;"&amp;lt;=$(=max(Month))&lt;/STRONG&gt;"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN&gt;&lt;SPAN style="font-size: 12pt;"&gt;}&lt;/SPAN&gt;&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;I have region as a dimension, and the goal is to show a pie chart distribution of the number of [Booking ID]s that fit a specific description per region, to date (or potentially through the last completed month). When I add in the highlighted year to date function above, the chart totals are still measuring the entire year instead of year to date.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;My date field is loaded by year, month, and day separately. In addition, all of the data in this report only includes the current year, so maybe I can remove the Year setting altogether?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can someone explain in plain text how this function is supposed to work? How does it look at the current date (or date of last update)? It is my understanding that max(month) is looking for the maximum month listed in the data, but my data source looks ahead as well as behind, so the max(month) is always going to be December.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Is there a different function I could use to measure the number of bookings in my report that occur before a set date (today, the last reload date, or the end of the previous month)?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&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/Year-to-Date-set-analysis/m-p/1283426#M856033</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283427#M856034</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would recommend to create a Month field with numeric representation&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD Month,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(Month) as NumMonth&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;FROM ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;next if you need the YTD as of the current month, Max(Month) isn't going to work. Instead use Today's month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count(DISTINCT{$&amp;lt;[Event Flag] = {'Event Flag'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, Year = {$(=Max(Year))}, &lt;SPAN style="color: #ff0000;"&gt;Month = {"&amp;lt;=$(=Num(Month(Today())))"}&lt;/SPAN&gt;&amp;gt;}[Booking ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 16:49:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283427#M856034</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T16:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283428#M856035</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works well. I had to use a preceding load for NumMonth, because my primary load uses&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD&lt;/P&gt;&lt;P&gt;Month([Booking Date] as Month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, once I got that, the function worked. I am not fully clear on the syntax, particularly in the use of the parentheses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I see that it says "select the year that is the maximum year in the data", and select the month (by number) that is less than or equal to today's month number, but what does the additional () mean? I have seen it in a number of threads, and I can't quite get what it is for.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 18:44:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283428#M856035</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T18:44:26Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283429#M856036</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You don't have to do preceding load, you can do this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD [Booking Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(&lt;SPAN style="font-size: 13.3333px;"&gt;[Booking Date]) as Month,&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(Month(&lt;SPAN style="font-size: 13.3333px;"&gt;[Booking Date]&lt;/SPAN&gt;)) as NumMonth&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;
&lt;P&gt;I see that it says "select the year that is the maximum year in the data", and select the month (by number) that is less than or equal to today's month number, but what does the additional () mean? I have seen it in a number of threads, and I can't quite get what it is for.&lt;/P&gt;
&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Additional ()? Where?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 18:50:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283429#M856036</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T18:50:26Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283430#M856037</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;A further question:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;Am I correct in assuming the function will give me the total through the end of the current month? Or would it be accurate to the day? &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;My data has 5 bookings in January, and 1 in February. The February booking has already happened, so I get an accurate result of '6'. Would this correctly calculate as '5' if the February booking were in the future?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 18:59:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283430#M856037</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T18:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283431#M856038</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This will give you the correct result to the end of the month.&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;=Num(Month(Today()))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;will be 2 regardless if it is 1st Feb or 28th Feb. So, all data for Feb will be included. Do you want just until today?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283431#M856038</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T19:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283432#M856039</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For accuracy of today's date, I would use this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{$&amp;lt;[Event Flag] = {'Event Flag'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, Year = {$(=Max(Year))}&lt;SPAN style="color: #ff0000;"&gt;, Month&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;, &lt;/SPAN&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13.3333px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN style="color: #ff0000;"&gt;[B&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;ooking Date&lt;/SPAN&gt;&lt;SPAN style="color: #ff0000;"&gt;]&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #ff0000;"&gt;= {"&amp;lt;=$(=Date(Today(), 'DateFieldFormatHere'))"}&lt;/SPAN&gt;&amp;gt;}[Booking ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:08:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283432#M856039</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T19:08:22Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283433#M856040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I misunderstood how the statement works. I though the Month (in bold, below) was a reference to the field I created above it. Now I understand it is a function in itself. Thanks for the clarity&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOAD [Booking Date],&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month(&lt;SPAN style="font-size: 13.33px;"&gt;[Booking Date]) as Month,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Num(&lt;STRONG&gt;Month&lt;/STRONG&gt;(&lt;SPAN style="font-size: 13.33px;"&gt;[Booking Date]&lt;/SPAN&gt;)) as NumMonth&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.33px;"&gt;the statement Today&lt;STRONG&gt;()&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; which is then followed by the three parentheses closing out the function. I don't get what the () at the end of Today (or other functions I have seen it in) means.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:11:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283433#M856040</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T19:11:00Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283434#M856041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;my date field is simply called DAY. Just to confirm I use correct syntax, would it be:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;{$&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Location&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'External'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Status&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Active'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Test Filter]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;={'Remove Testing'},&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;STRONG&gt;&lt;EM style=": ; color: #808080; font-size: 8pt;"&gt;$(=Max(Year))&lt;/EM&gt;&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;}, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;lt;=$(=Date(Today(), Day))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;}&amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking ID]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;this gave me the correct result, but I just want to be sure I fully understand what I am putting. This additional syntax will take some digging to comprehend.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I don't know where I'd be without this message board. Thank you all&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:16:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283434#M856041</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T19:16:22Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283435#M856042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Booking Date is just a Day? Not sure I understand... Can you share a screenshot of how Booking Date looks? Also, look here:&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>Wed, 15 Feb 2017 19:19:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283435#M856042</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T19:19:54Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283436#M856043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here are all the parenthesis:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 12pt;"&gt;&amp;lt;=$&lt;SPAN style="color: #cc99ff; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;=Num&lt;SPAN style="color: #00ff00; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;Month&lt;SPAN style="color: #0000ff; font-style: inherit; font-family: inherit;"&gt;(&lt;/SPAN&gt;Today&lt;/STRONG&gt;&lt;STRONG style="color: #ff0000; font-size: 13px; font-style: inherit; font-family: inherit; font-weight: inherit;"&gt;&lt;SPAN style="font-size: 12pt;"&gt;&lt;STRONG&gt;()&lt;SPAN style="color: #0000ff;"&gt;)&lt;/SPAN&gt;&lt;SPAN style="color: #00ff00;"&gt;)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #008000;"&gt;&lt;STRONG style=": ; color: #cc99ff; font-size: 12pt;"&gt;)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:21:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283436#M856043</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T19:21:35Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283437#M856044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;LOAD&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Year&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;NUM&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Month&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;NumMonth&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;,&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Day&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;I can't upload screen shots, but this is how I load the date&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:23:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283437#M856044</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T19:23:42Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283438#M856045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do like this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LOAD &lt;SPAN style="color: #ff0000;"&gt;Date([Booking Date]) as [Booking Date],&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year([Booking Date]) as Year, &lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month([Booking Date]) as Month,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM(Month([Booking Date])) as NumMonth,&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day([Booking Date]) as Day,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;No need for Date format anymore...&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;Count(DISTINCT{$&amp;lt;[Event Flag] = {'Event Flag'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}, Year = {$(=Max(Year))}, Month, [Booking Date] = {"&amp;lt;=$(=Date(Today()))"}&amp;gt;}[Booking ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:26:16 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283438#M856045</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T19:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283439#M856046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this has all been amazing, and informative. I will use the link you provided to help clarify my understanding of the function, but for now, at least I can move on to finding my next problem. Thank you for your help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:30:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283439#M856046</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T19:30:30Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283440#M856047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.3333px;"&gt;No problem at all. While we are here, I am going to provide you one other way to approach this problem assuming your application reloads everyday&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;LOAD Date([Booking Date]) as [Booking Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year([Booking Date]) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month([Booking Date]) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM(Month([Booking Date])) as NumMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day([Booking Date]) as Day,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #ff0000;"&gt; If(&lt;STRONG style="font-size: 13.3333px;"&gt;[Booking Date]&lt;/STRONG&gt; &amp;lt;= Today() and Year = Year(Today()), 1, 0) as Flag&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;and then you need just this:&lt;/P&gt;&lt;P style="font-size: 13.3333px;"&gt;&lt;STRONG style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Count(DISTINCT{$&amp;lt;[Event Flag] = {'Event Flag'}, Status = {'Active'}, [Test Filter] = {'Remove Testing'}&lt;SPAN style="color: #ff0000;"&gt;, Flag = {1}&lt;/SPAN&gt;&amp;gt;}[Booking ID])&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 19:35:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283440#M856047</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T19:35:21Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283441#M856048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That is much cleaner, and will be easier to describe in my documentation. Kudos&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:05:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283441#M856048</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T20:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283442#M856049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used your exact syntax, but it gave me an error, saying it couldn't find field YEAR. I expect this is because YEAR doesn't exist until I load it in this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried it without the YEAR function, because my source data will always only contain the current year, and never any other&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;IF&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;[Booking Date]&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;lt;= &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Today&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(),1,0) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;as&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt; Flag&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;, &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;This worked, but I have an interesting NULL result on tomorrow's date. Not every one, just one single entry. this won't impact the function, but I don't understand why that would be the case&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:16:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283442#M856049</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T20:16:19Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283443#M856050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My bad, try this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LOAD Date([Booking Date]) as [Booking Date],&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Year([Booking Date]) as Year,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Month([Booking Date]) as Month,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUM(Month([Booking Date])) as NumMonth,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Day([Booking Date]) as Day,&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; If([Booking Date] &amp;lt;= Today() and &lt;STRONG style="color: #ff0000; font-size: 13.3333px;"&gt;Year([Booking Date])&lt;/STRONG&gt; = Year(Today()), 1, 0) as Flag&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:17:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283443#M856050</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T20:17:48Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283444#M856051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;NULL result on tomorrow's date? What does that mean? Can you elaborate?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:18:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283444#M856051</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-02-15T20:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: Year to Date set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283445#M856052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I created a table of Booking ID, Booking Date, and Flag, to test the results of the Flag function. It worked on every single entry except the one. But, as it turns out, it was a separate and unrelated error. I sorted it out.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Feb 2017 20:25:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Year-to-Date-set-analysis/m-p/1283445#M856052</guid>
      <dc:creator>jason_nicholas</dc:creator>
      <dc:date>2017-02-15T20:25:45Z</dc:date>
    </item>
  </channel>
</rss>

