<?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 inyeartodate function in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/inyeartodate-function/m-p/501803#M187469</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below expression in a chart to compare the current with the previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to choose the year current and previous and also&lt;/P&gt;&lt;P&gt;you have to choose the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if (InYearToDate (date_id, Today(), 0), sales)) for current sales by now&lt;/P&gt;&lt;P&gt;Sum(if (InYearToDate (date_id, Today(), 0), sales)) for previous sales for the period that the current sales has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example that compares the 1/12/2013-17/12/2013 with the 1/12/2012-17/12/2012&lt;/P&gt;&lt;P&gt;If the month is completed the expression will compare the hole month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue i have is that i want to compare the sales for the current and the previous year and the month for the maximum&lt;/P&gt;&lt;P&gt;hour. How can i do this ? I tried this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if (InYearToDate (date_id,max(hour), Today(), 0), sales)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but nonthing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Dec 2013 13:43:10 GMT</pubDate>
    <dc:creator>geogou1973</dc:creator>
    <dc:date>2013-12-18T13:43:10Z</dc:date>
    <item>
      <title>inyeartodate function</title>
      <link>https://community.qlik.com/t5/QlikView/inyeartodate-function/m-p/501803#M187469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have the below expression in a chart to compare the current with the previous month.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to choose the year current and previous and also&lt;/P&gt;&lt;P&gt;you have to choose the month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if (InYearToDate (date_id, Today(), 0), sales)) for current sales by now&lt;/P&gt;&lt;P&gt;Sum(if (InYearToDate (date_id, Today(), 0), sales)) for previous sales for the period that the current sales has&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example that compares the 1/12/2013-17/12/2013 with the 1/12/2012-17/12/2012&lt;/P&gt;&lt;P&gt;If the month is completed the expression will compare the hole month&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The issue i have is that i want to compare the sales for the current and the previous year and the month for the maximum&lt;/P&gt;&lt;P&gt;hour. How can i do this ? I tried this &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(if (InYearToDate (date_id,max(hour), Today(), 0), sales)) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but nonthing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Dec 2013 13:43:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/inyeartodate-function/m-p/501803#M187469</guid>
      <dc:creator>geogou1973</dc:creator>
      <dc:date>2013-12-18T13:43:10Z</dc:date>
    </item>
  </channel>
</rss>

