<?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: Last year set analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525552#M37779</link>
    <description>&lt;P&gt;In the first row and last year column, for example, i'd expect to see 11,685, which is the actual value of 31/12/2017, this is last year's value&lt;/P&gt;</description>
    <pubDate>Wed, 02 Jan 2019 18:25:13 GMT</pubDate>
    <dc:creator>agustapia</dc:creator>
    <dc:date>2019-01-02T18:25:13Z</dc:date>
    <item>
      <title>Last year set analysis with max year</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525149#M37727</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I've been dealing with this problem for a while and I'd like you to take a look:&lt;/P&gt;&lt;P&gt;My data set contains Actuals and Budget figures in the same table, separated by a field named TipoMov. Since budget is for the full next year, when I add the next year budget and do a normal set analysis for actuals, last year figures are the same as this year figures:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;SalesYear={$(=Max(SalesYear)-1)}, TipoMov = {"Actual"}&amp;gt;} Sales)&lt;/P&gt;&lt;P&gt;(In this moment, Max(SalesYear) = 2019&amp;nbsp;because of next year budget)&lt;/P&gt;&lt;P&gt;So I tried to add to the&amp;nbsp;Max a set analysis to look only for actuals, but it didn't work:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;Year&lt;/SPAN&gt;={$(=Max({&amp;lt;TipoMov = {'&lt;SPAN&gt;Actual&lt;/SPAN&gt;'}&amp;gt;} &lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;Year&lt;/SPAN&gt;)-1)}, TipoMov = {"&lt;SPAN&gt;Actual&lt;/SPAN&gt;"}&amp;gt;} &lt;SPAN&gt;Sales&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;When I execute the prior formula in a textbox, it works as expected, but when included in the set analysis it doesn't work.&lt;/P&gt;&lt;P&gt;Then I tried to get the max year from the data load, and using RangeMin and Max functions, but couldn't&amp;nbsp; make it work:&lt;/P&gt;&lt;P&gt;Sum({$&amp;lt;&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;Year&lt;/SPAN&gt;={$(=RangeMin(Max(&lt;SPAN&gt;Sales&lt;/SPAN&gt;&lt;SPAN&gt;Year&lt;/SPAN&gt;), $(vMax))-1)}, TipoMov = {"&lt;SPAN&gt;Actual&lt;/SPAN&gt;"}&amp;gt;} &lt;SPAN&gt;Sales&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Also when I execute the prior formula in a textbox, it works as expected, but when included in the set analysis it doesn't work.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I have run out of ideas,&amp;nbsp; so I hope somebody can tell me what I am doing wrong and how to correct it.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;I know in 2019 it will be fixed, but I don't want to be facing this same problem next year when I load 2020 budget.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Thanks in advance.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:40:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525149#M37727</guid>
      <dc:creator>agustapia</dc:creator>
      <dc:date>2024-11-16T21:40:23Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525150#M37728</link>
      <description>&lt;P&gt;So, essentially when you use this in a text box&lt;/P&gt;&lt;PRE&gt;=Max({&amp;lt;TipoMov = {'Actual'}&amp;gt;} SalesYear) - 1&lt;/PRE&gt;&lt;P&gt;you see 2017, but when you use this&lt;/P&gt;&lt;PRE&gt;Sum({$&amp;lt;SalesYear = {$(=Max({&amp;lt;TipoMov = {'Actual'}&amp;gt;} SalesYear)-1)}, TipoMov = {"Actual"}&amp;gt;} Sales)&lt;/PRE&gt;&lt;P&gt;You still see the Sales for 2018? Is that what the issue is? or do you not see anything at all?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 20:44:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525150#M37728</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-31T20:44:00Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525151#M37729</link>
      <description>&lt;P&gt;I see nulls&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 20:46:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525151#M37729</guid>
      <dc:creator>agustapia</dc:creator>
      <dc:date>2018-12-31T20:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525152#M37730</link>
      <description>&lt;P&gt;Are you making selection in another date or time related field which contradicts your set analysis? If you are, then ignore that field in your set analysis like this&lt;/P&gt;&lt;PRE&gt;Sum({$&amp;lt;SalesYear = {$(=Max({&amp;lt;TipoMov = {'Actual'}&amp;gt;} SalesYear)-1)}, TipoMov = {"Actual"}&lt;FONT color="#FF0000"&gt;, MonthYear, FiscalYear, QuarterYear&lt;/FONT&gt;&amp;gt;} Sales)&lt;/PRE&gt;</description>
      <pubDate>Mon, 31 Dec 2018 20:48:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525152#M37730</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-31T20:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525153#M37731</link>
      <description>No, in fact this particular view is for historical daily sales, then there is no filter selected</description>
      <pubDate>Mon, 31 Dec 2018 20:51:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525153#M37731</guid>
      <dc:creator>agustapia</dc:creator>
      <dc:date>2018-12-31T20:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525154#M37732</link>
      <description>&lt;P&gt;I see nothing wrong with your expression... would you be able to share a sample so that we can see what might be going on?&lt;/P&gt;</description>
      <pubDate>Mon, 31 Dec 2018 20:53:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525154#M37732</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2018-12-31T20:53:15Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525155#M37733</link>
      <description>Since this is classified info I cannot share a quick sample, but i can create a small app with the problem in it so you can take a look at it, only problem is I would be able to do it until wednesday, how can I get back to you when it is done?</description>
      <pubDate>Mon, 31 Dec 2018 20:56:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525155#M37733</guid>
      <dc:creator>agustapia</dc:creator>
      <dc:date>2018-12-31T20:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525537#M37774</link>
      <description>&lt;P&gt;Hi again Sunny,&lt;/P&gt;&lt;P&gt;Attached you can find an app with my issue. Something I couldn't realize with my full app (due to the lenght of the data and the complexity of my formulas) is that the formula is indeed working but the "Date" dimension is preventing data to be displayed.&lt;/P&gt;&lt;P&gt;A workaround I thought of&amp;nbsp; was to add month/day dimensions, remove date dimension and add set expressions to budget and actuall figures, however&amp;nbsp;that would only work for the latest year...&lt;/P&gt;&lt;P&gt;My last resort is to load budget only to&amp;nbsp;the latest actual sales date, but if anyone ever wants to see future butget regardless of not having sales to compare to, I'd have to add it and -again- last year figures might not work.&lt;/P&gt;&lt;P&gt;Thanks for your support!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 17:35:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525537#M37774</guid>
      <dc:creator>agustapia</dc:creator>
      <dc:date>2019-01-02T17:35:32Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525550#M37778</link>
      <description>&lt;P&gt;Can you point to me as to what exactly is the issue here?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="image.png" style="width: 495px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/2881i82052D3AD7B548EF/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 18:22:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525550#M37778</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-02T18:22:47Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525552#M37779</link>
      <description>&lt;P&gt;In the first row and last year column, for example, i'd expect to see 11,685, which is the actual value of 31/12/2017, this is last year's value&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 18:25:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525552#M37779</guid>
      <dc:creator>agustapia</dc:creator>
      <dc:date>2019-01-02T18:25:13Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525554#M37780</link>
      <description>&lt;P&gt;Are you looking to put Last year info on the same row as the current year? If that is what the goal is... you either need Above()/Below() function or preferably use &lt;A href="https://community.qlik.com/t5/Qlik-Design-Blog/The-As-Of-Table/ba-p/1466130" target="_blank"&gt;The As Of Table&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Jan 2019 18:26:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525554#M37780</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-02T18:26:30Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525556#M37781</link>
      <description>Yup, makes sense now... you def. need The As of Table to do this...</description>
      <pubDate>Wed, 02 Jan 2019 18:27:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1525556#M37781</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-01-02T18:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1526570#M37842</link>
      <description>&lt;P&gt;Yes, AsOfTable made it work , it gets trickier when using days but it did the job finally. Thanks!&lt;/P&gt;</description>
      <pubDate>Fri, 04 Jan 2019 18:34:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/1526570#M37842</guid>
      <dc:creator>agustapia</dc:creator>
      <dc:date>2019-01-04T18:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: Last year set analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/2471651#M99728</link>
      <description>&lt;P&gt;Can you please share the script how you did for daily?&lt;/P&gt;</description>
      <pubDate>Fri, 19 Jul 2024 06:52:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Last-year-set-analysis-with-max-year/m-p/2471651#M99728</guid>
      <dc:creator>Boucard</dc:creator>
      <dc:date>2024-07-19T06:52:52Z</dc:date>
    </item>
  </channel>
</rss>

