<?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: YTD vs LYTD Expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/YTD-vs-LYTD-Expression/m-p/1377369#M806831</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Had to change 'Month' to '[Period Num]' and it worked. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2017 15:42:52 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2017-10-30T15:42:52Z</dc:date>
    <item>
      <title>YTD vs LYTD Expression</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-vs-LYTD-Expression/m-p/1377367#M806829</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been having some trouble generating an expression that outputs a percentage comparing YTD sales to LYTD sales. Currently my expression is comparing jan-dec 2016 sales to jan-sept 2017 sales, and I would like it to compare jan-sept 2016 and 2017. Please let me know if you need any clarification. My current equation is provided below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=IF(sum( {$&amp;lt;Year = {$(#=Only(Year)-1)}&amp;gt;}[Total Sales])=0,'N/A', Round((sum([Total Sales])/sum( {$&amp;lt;Year = {$(#=Only(Year)-1)}&amp;gt;}[Total Sales])*100)-100,0.01) &amp;amp; '%')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&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/YTD-vs-LYTD-Expression/m-p/1377367#M806829</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: YTD vs LYTD Expression</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-vs-LYTD-Expression/m-p/1377368#M806830</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can try below expresion.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=IF(sum( {$&amp;lt;Year = {$(#=Only(Year)-1)}&amp;gt;}[Total Sales])=0,'N/A', Round((sum([Total Sales])/sum( {$&amp;lt;Year = {$(#=Only(Year)-1)},Month = {"&amp;lt;=$(=Max({&amp;lt;Year = &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;{$(#=Only(Year))}&lt;/SPAN&gt;&amp;gt;}Month))"}&amp;gt;}[Total Sales])*100)-100,0.01) &amp;amp; '%')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Regards,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Kaushik Solanki&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:28:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-vs-LYTD-Expression/m-p/1377368#M806830</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-10-30T15:28:14Z</dc:date>
    </item>
    <item>
      <title>Re: YTD vs LYTD Expression</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-vs-LYTD-Expression/m-p/1377369#M806831</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Had to change 'Month' to '[Period Num]' and it worked. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:42:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-vs-LYTD-Expression/m-p/1377369#M806831</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-10-30T15:42:52Z</dc:date>
    </item>
    <item>
      <title>Re: YTD vs LYTD Expression</title>
      <link>https://community.qlik.com/t5/QlikView/YTD-vs-LYTD-Expression/m-p/1377370#M806832</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushik Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 15:45:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/YTD-vs-LYTD-Expression/m-p/1377370#M806832</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2017-10-30T15:45:22Z</dc:date>
    </item>
  </channel>
</rss>

