<?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: Simple Table:  Compare Years Sales - Totals column messing up percentage measure in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623118#M46393</link>
    <description>&lt;P&gt;We all need reboots once in a while.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 12 Sep 2019 11:09:48 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2019-09-12T11:09:48Z</dc:date>
    <item>
      <title>Simple Table:  Compare Years Sales - Totals column messing up percentage measure</title>
      <link>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623100#M46387</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is my first post and the first time I've tried to build a report, apologies if I'm asking basic questions!&lt;/P&gt;&lt;P&gt;I'm trying to build a basic table showing sales over the last 3 years and comparing this year with the previous year in the final column (2018 vs 2017) which is a percentage.&amp;nbsp;&amp;nbsp;I've used measures to achieve this.&lt;/P&gt;&lt;P&gt;The Total column is useful however it's coming in to play when calculating 2018 vs 2017 which is messing up my percentage.&amp;nbsp; How do I exclude it from this calculation?&lt;/P&gt;&lt;P&gt;(I'm using test data so - it's old so I'm assuming the current year is 2018 for the purpose of building this report.)&lt;/P&gt;&lt;P&gt;Meausures:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;mCurrentYear =&amp;nbsp;sum(if(DTPR_Year =CurrentYear,AF,0))&lt;/LI&gt;&lt;LI&gt;mCurrentYearM1 = sum(if(DTPR_Year =CurrentYear-1,AF,0))&lt;/LI&gt;&lt;LI&gt;mCurrentYearM2 =&amp;nbsp;sum(if(DTPR_Year =CurrentYear-2,AF,0))&lt;/LI&gt;&lt;LI&gt;mCYvsmCYM1 =&amp;nbsp;(sum(if(DTPR_Year=CurrentYear,AF,0))-sum(if(DTPR_Year =CurrentYear-1,AF,0)))/sum(if(DTPR_Year =CurrentYear-1,AF,0))&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;mCYvsmCYM1 is a bit long winded but I also can't seem to access one measure from another so I had to recalculate those within it to arrive at the %age difference comparison.&lt;/P&gt;&lt;P&gt;Perhaps there's an altogether better way to achieve this than using measures in the first place?&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Steve&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 20:05:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623100#M46387</guid>
      <dc:creator>SteveW</dc:creator>
      <dc:date>2024-11-16T20:05:31Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Table:  Compare Years Sales - Totals column messing up percentage measure</title>
      <link>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623114#M46391</link>
      <description>&lt;P&gt;&lt;EM&gt;"The Total column is useful however it's coming in to play when calculating 2018 vs 2017 which is messing up my percentage.&amp;nbsp; How do I exclude it from this calculation?"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;What exactly are you looking to exclude and from where? The Total for 2018 vs 2017 (21%)? The value should not be shown or are you expecting to see a different number?&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:44:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623114#M46391</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-12T10:44:38Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Table:  Compare Years Sales - Totals column messing up percentage measure</title>
      <link>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623116#M46392</link>
      <description>&lt;P&gt;Thanks for the reply.&lt;/P&gt;&lt;P&gt;You know I've just realised I'm being stupid.&lt;/P&gt;&lt;P&gt;This report is correct and my brain needs a reboot.&lt;/P&gt;&lt;P&gt;Sorry for wasting time.&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 10:51:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623116#M46392</guid>
      <dc:creator>SteveW</dc:creator>
      <dc:date>2019-09-12T10:51:41Z</dc:date>
    </item>
    <item>
      <title>Re: Simple Table:  Compare Years Sales - Totals column messing up percentage measure</title>
      <link>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623118#M46393</link>
      <description>&lt;P&gt;We all need reboots once in a while.. &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 12 Sep 2019 11:09:48 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Simple-Table-Compare-Years-Sales-Totals-column-messing-up/m-p/1623118#M46393</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2019-09-12T11:09:48Z</dc:date>
    </item>
  </channel>
</rss>

