<?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 YTD comparison minus one day in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/YTD-comparison-minus-one-day/m-p/1692709#M52940</link>
    <description>&lt;P&gt;Our data warehouse is always one day behind. This makes true inYTD comparisons unequal unless I subtract.&lt;/P&gt;&lt;P&gt;For example, on 4/2. If I'm doing a comparison between the current year and the previous year, I'm comparing data up to 4/1 in the current year but 4/2 in the previous year.&lt;/P&gt;&lt;P&gt;I'm using an auto-calendar but I don't see a "DaysAgo" option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current set analysis for the previous year's Sales measure. I need this to be inYTD, 1 year ago, but also one day before to make it equal. Does anyone have any recommendations?&lt;/P&gt;&lt;P&gt;Sum( { $&amp;lt; [INV_DATE.autoCalendar.InYTD]={1}, [INV_DATE.autoCalendar.YearsAgo]={1} &amp;gt; } [SALES] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 18:47:57 GMT</pubDate>
    <dc:creator>smithc2005</dc:creator>
    <dc:date>2024-11-16T18:47:57Z</dc:date>
    <item>
      <title>YTD comparison minus one day</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-comparison-minus-one-day/m-p/1692709#M52940</link>
      <description>&lt;P&gt;Our data warehouse is always one day behind. This makes true inYTD comparisons unequal unless I subtract.&lt;/P&gt;&lt;P&gt;For example, on 4/2. If I'm doing a comparison between the current year and the previous year, I'm comparing data up to 4/1 in the current year but 4/2 in the previous year.&lt;/P&gt;&lt;P&gt;I'm using an auto-calendar but I don't see a "DaysAgo" option.&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my current set analysis for the previous year's Sales measure. I need this to be inYTD, 1 year ago, but also one day before to make it equal. Does anyone have any recommendations?&lt;/P&gt;&lt;P&gt;Sum( { $&amp;lt; [INV_DATE.autoCalendar.InYTD]={1}, [INV_DATE.autoCalendar.YearsAgo]={1} &amp;gt; } [SALES] )&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 18:47:57 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-comparison-minus-one-day/m-p/1692709#M52940</guid>
      <dc:creator>smithc2005</dc:creator>
      <dc:date>2024-11-16T18:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: YTD comparison minus one day</title>
      <link>https://community.qlik.com/t5/App-Development/YTD-comparison-minus-one-day/m-p/1692718#M52941</link>
      <description>&lt;P&gt;I just thought of something: Could modifying my inYTD flag in the Autocalander be the solution?&lt;/P&gt;&lt;DIV&gt;Now:&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;If (DayNumberOfYear($1) &amp;lt;= DayNumberOfYear(Today()), 1, 0) AS [InYTD]&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;Proposed:&lt;/DIV&gt;&lt;DIV&gt;If (DayNumberOfYear($1) &amp;lt;= DayNumberOfYear(Today()&lt;SPAN&gt;&lt;STRONG&gt;-1&lt;/STRONG&gt;&lt;/SPAN&gt;), 1, 0) AS [InYTD]&lt;/DIV&gt;</description>
      <pubDate>Fri, 10 Apr 2020 20:54:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/YTD-comparison-minus-one-day/m-p/1692718#M52941</guid>
      <dc:creator>smithc2005</dc:creator>
      <dc:date>2020-04-10T20:54:00Z</dc:date>
    </item>
  </channel>
</rss>

