<?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: Exclude 0-values in pivot-table conditional colour, when comparing values. in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988710#M14468</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried included Year in your pivot table?&amp;nbsp; I think this is why you are getting duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 29 Oct 2015 16:57:46 GMT</pubDate>
    <dc:creator>ogster1974</dc:creator>
    <dc:date>2015-10-29T16:57:46Z</dc:date>
    <item>
      <title>Exclude 0-values in pivot-table conditional colour, when comparing values.</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988709#M14467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;.. Yeah i really didn't know what to call this thread.. &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Business Case: Compare values from user to a benchmark. Colour values red() if value is lower than benchmark - pretty simple.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My problem is this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have a pivot table with values for user A. These values are to be compared to a Benchmark group (known as User X). However, when User A only have values from 2010-2015, but user X has values from 2005-2015 i get a lot of meaningless columns with zero-values in 2005-2009 due to the conditional colour expression below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;sum(Amount) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;User = {'User X'}&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;Amount), red())&lt;/P&gt;&lt;P&gt;----&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If i remove the colour expression i obviously only get data for the years i want, and as such (and since it is not a measure by itself) i really didn't think that by adding a colour expression, i would add data to the pivot table... I just need to get rid of it again..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried multiple variations of if-statements and set expressions, but can't seem to get it done - Help please &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;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 09:48:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988709#M14467</guid>
      <dc:creator />
      <dc:date>2015-10-29T09:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude 0-values in pivot-table conditional colour, when comparing values.</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988710#M14468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried included Year in your pivot table?&amp;nbsp; I think this is why you are getting duplicates.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Oct 2015 16:57:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988710#M14468</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-10-29T16:57:46Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude 0-values in pivot-table conditional colour, when comparing values.</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988711#M14469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andy,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year is being shown as the only thing horizontally (on columns).. The problem is that the years 2005, 2006, 2007, 2008 and 2009 magically appears whenever i make the above mentioned colour expression because "User X" has data on these years.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 07:28:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988711#M14469</guid>
      <dc:creator />
      <dc:date>2015-10-30T07:28:32Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude 0-values in pivot-table conditional colour, when comparing values.</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988712#M14470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps a change to your data model will solve this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I take it User X only function is to benchmark your other users on a yearly basis?&amp;nbsp; If yes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create a new table called UserBenchmark&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Year and BenchmarkAmount values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Qlik will automatically join on the year between your user facts and your benchmark data if named the same then do&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;sum(Amount) &lt;/P&gt;&lt;P&gt;&amp;lt;&lt;/P&gt;&lt;P&gt;sum(&lt;/P&gt;&lt;P&gt;BenchmarkAmount), red())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem solved.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 15:51:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988712#M14470</guid>
      <dc:creator>ogster1974</dc:creator>
      <dc:date>2015-10-30T15:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude 0-values in pivot-table conditional colour, when comparing values.</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988713#M14471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can add a Year=&amp;nbsp; modifier to your set analysis in the sum() function in the color expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year= P( {&amp;lt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;User = {'User A'}&amp;gt;}&lt;/SPAN&gt;&amp;nbsp; Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This should narrow the calculation to include only Years that are associated with User A. The p() function can be used&amp;nbsp; to derive the filter based on a different SET statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can make 'User A' dynamic based on a selection too if you want. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If all your expressions (color etc...) are focused on the Years for User A you shouldn't run into this issue&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 30 Oct 2015 17:09:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988713#M14471</guid>
      <dc:creator>JonnyPoole</dc:creator>
      <dc:date>2015-10-30T17:09:37Z</dc:date>
    </item>
    <item>
      <title>Re: Exclude 0-values in pivot-table conditional colour, when comparing values.</title>
      <link>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988714#M14472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As always you come up with several great answers - thx &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 02 Nov 2015 07:43:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Exclude-0-values-in-pivot-table-conditional-colour-when/m-p/988714#M14472</guid>
      <dc:creator />
      <dc:date>2015-11-02T07:43:15Z</dc:date>
    </item>
  </channel>
</rss>

