<?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 Set Analysis -YTD Through Prior Full Month in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis-YTD-Through-Prior-Full-Month/m-p/1805082#M65415</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to created a dynamic YTD sales calculation through the prior full month based on a Year-Month selection.&lt;/P&gt;&lt;P&gt;I currently have this formula, however, when I select 2021-May it is still showing the sales for May as well:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Year={'$(vMaxYear)'},%DATE_KEY={'&amp;lt;$(vMaxMonthStart)'},Month=,%DATE_KEY=,[Year-Month]=&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;%DATE_KEY = sales order date&lt;/P&gt;&lt;P&gt;vMaxYear = current year (2021)&lt;/P&gt;&lt;P&gt;vMaxMonthStart = start of the max month (5/1/2021)&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
    <pubDate>Tue, 04 May 2021 15:35:54 GMT</pubDate>
    <dc:creator>Qlik_UserEM</dc:creator>
    <dc:date>2021-05-04T15:35:54Z</dc:date>
    <item>
      <title>Set Analysis -YTD Through Prior Full Month</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-YTD-Through-Prior-Full-Month/m-p/1805082#M65415</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am trying to created a dynamic YTD sales calculation through the prior full month based on a Year-Month selection.&lt;/P&gt;&lt;P&gt;I currently have this formula, however, when I select 2021-May it is still showing the sales for May as well:&lt;/P&gt;&lt;P&gt;SUM({&amp;lt;Year={'$(vMaxYear)'},%DATE_KEY={'&amp;lt;$(vMaxMonthStart)'},Month=,%DATE_KEY=,[Year-Month]=&amp;gt;}Sales)&lt;/P&gt;&lt;P&gt;%DATE_KEY = sales order date&lt;/P&gt;&lt;P&gt;vMaxYear = current year (2021)&lt;/P&gt;&lt;P&gt;vMaxMonthStart = start of the max month (5/1/2021)&lt;/P&gt;&lt;P&gt;What am I doing wrong?&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 15:35:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-YTD-Through-Prior-Full-Month/m-p/1805082#M65415</guid>
      <dc:creator>Qlik_UserEM</dc:creator>
      <dc:date>2021-05-04T15:35:54Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -YTD Through Prior Full Month</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-YTD-Through-Prior-Full-Month/m-p/1805105#M65423</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/140804"&gt;@Qlik_UserEM&lt;/a&gt;, I am seeing a couple of things to check:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;When comparing and not filtering an exact value, you must use double quotes.&lt;/LI&gt;&lt;LI&gt;Field %DATE_KEY is used twice in the filtering with different criteria&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can try:&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" color="#008000"&gt;&lt;SPAN&gt;SUM({&amp;lt;Year={'$(vMaxYear)'},%DATE_KEY={"&amp;lt;$(vMaxMonthStart)"},Month=,[Year-Month]=&amp;gt;}Sales)&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;And sometimes the date format can make your filter not work, so you can also try &lt;FONT face="courier new,courier" color="#008000"&gt;Date(vMaxMonthStart, 'MM/DD/YYYY')&lt;/FONT&gt; (use your default date format) instead of vMaxMonthStart as a second try.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;JG&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 18:43:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-YTD-Through-Prior-Full-Month/m-p/1805105#M65423</guid>
      <dc:creator>JuanGerardo</dc:creator>
      <dc:date>2021-05-04T18:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis -YTD Through Prior Full Month</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis-YTD-Through-Prior-Full-Month/m-p/1805108#M65424</link>
      <description>&lt;P&gt;Thank you, this worked perfectly.&lt;/P&gt;</description>
      <pubDate>Tue, 04 May 2021 18:48:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis-YTD-Through-Prior-Full-Month/m-p/1805108#M65424</guid>
      <dc:creator>Qlik_UserEM</dc:creator>
      <dc:date>2021-05-04T18:48:40Z</dc:date>
    </item>
  </channel>
</rss>

