<?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: Can anyone help me solve this problem? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511886#M436669</link>
    <description>&lt;P&gt;Thanks&amp;nbsp;again Steverark&lt;/P&gt;</description>
    <pubDate>Sun, 25 Nov 2018 12:33:17 GMT</pubDate>
    <dc:creator>sadrisalihu</dc:creator>
    <dc:date>2018-11-25T12:33:17Z</dc:date>
    <item>
      <title>Can anyone help me solve this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511849#M436663</link>
      <description>&lt;P&gt;&lt;SPAN&gt;The logic is to take a subtotal for the items who has the value in previous year, so as an example they are the lines I made in yellow.&lt;/SPAN&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="test.png" style="width: 999px;"&gt;&lt;img src="https://community.qlik.com/t5/image/serverpage/image-id/936i6EBC69C12A55FB60/image-size/large?v=v2&amp;amp;px=999" role="button" title="test.png" alt="test.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 21:50:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511849#M436663</guid>
      <dc:creator>sadrisalihu</dc:creator>
      <dc:date>2024-11-16T21:50:04Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me solve this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511852#M436664</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You should be able to do this with Set Analysis and the P() function.&lt;/P&gt;&lt;P&gt;First I would create variables for vMaxYear and vPriorYear, with expressions like:&lt;/P&gt;&lt;P&gt;=Year(Max(DateField))&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;=vMaxYear-1&lt;/P&gt;&lt;P&gt;The expression for the latest year would be:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(vMaxYear)},Field1=P({&amp;lt;Year={$(vPriorYear)}&amp;gt;}Field1)&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;The expression for the prior year would then be:&lt;/P&gt;&lt;P&gt;sum({&amp;lt;Year={$(vPriorYear)},Field1=P({&amp;lt;Year={$(vMaxYear)}&amp;gt;}Field1)&amp;gt;}Value)&lt;/P&gt;&lt;P&gt;This would allow you to create the second table, with Item 5 and Item 7 missing and the like to like total.&lt;/P&gt;&lt;P&gt;If you require a table with two totals then you have to get a bit more creative. You will have to turn off totals in the chart and calculate the two totals yourself, by creating a new dimension with all items and then the two total lines, and then linking this back into the Field1 dimension.&lt;/P&gt;&lt;P&gt;I describe this approach in this blog post:&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.quickintelligence.co.uk/qlikview-accumulate-values/" target="_blank"&gt;https://www.quickintelligence.co.uk/qlikview-accumulate-values/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Hope that points you in the right direction.&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 00:00:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511852#M436664</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2018-11-25T00:00:24Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me solve this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511875#M436667</link>
      <description>&lt;P&gt;Thanks a lot Steverark&lt;/P&gt;&lt;P&gt;Your help was great.&lt;/P&gt;&lt;P&gt;Please can you help me and how to add a new row like a photo "Total Like To Like" and "Grant Total" at the end.&lt;/P&gt;&lt;P&gt;Thank you for your help.&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 10:35:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511875#M436667</guid>
      <dc:creator>sadrisalihu</dc:creator>
      <dc:date>2018-11-25T10:35:40Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me solve this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511879#M436668</link>
      <description>&lt;P&gt;Glad that the Set Analysis worked for you.&lt;/P&gt;&lt;P&gt;The blog post describes what you need to get the two total rows. Basically though you need to create a table that&amp;nbsp;associates&amp;nbsp;to Field1 with a one to one match to each field, and then two totals that link to all.&lt;/P&gt;&lt;P&gt;Something like:&lt;/P&gt;&lt;P&gt;LikeForLike:&lt;BR /&gt;LOAD DISTINCT&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Field1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Field1 as LikeForLike&lt;BR /&gt;RESIDENT DataTable;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD DISTINCT&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; Field1,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;'Total'&amp;nbsp;as LikeForLike&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;RESIDENT DataTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;LOAD DISTINCT&lt;BR /&gt;&amp;nbsp; &amp;nbsp; Field1,&lt;BR /&gt;&amp;nbsp; &amp;nbsp;&amp;nbsp;'Total Like For Like'&amp;nbsp;as LikeForLike&lt;BR /&gt;RESIDENT DataTable;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;You can then build your table using LikeForLike as the dimension.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The expression would need ot know whether it was on the total like for like row or any other row. It would need to read something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;if(LikeForLike = 'Total Like For Like',&lt;BR /&gt;sum({&amp;lt;Year={$(vMaxYear)},Field1=P({&amp;lt;Year={$(vPriorYear)}&amp;gt;}Field1)&amp;gt;}Value),&lt;BR /&gt;sum({&amp;lt;Year={$(vMaxYear)}&amp;gt;}Value))&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Hope that works out for you.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 11:00:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511879#M436668</guid>
      <dc:creator>stevedark</dc:creator>
      <dc:date>2018-11-25T11:00:09Z</dc:date>
    </item>
    <item>
      <title>Re: Can anyone help me solve this problem?</title>
      <link>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511886#M436669</link>
      <description>&lt;P&gt;Thanks&amp;nbsp;again Steverark&lt;/P&gt;</description>
      <pubDate>Sun, 25 Nov 2018 12:33:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Can-anyone-help-me-solve-this-problem/m-p/1511886#M436669</guid>
      <dc:creator>sadrisalihu</dc:creator>
      <dc:date>2018-11-25T12:33:17Z</dc:date>
    </item>
  </channel>
</rss>

