<?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: Two expressions - for the second, show only totals in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757203#M536111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what I had, using &lt;STRONG&gt;Description&lt;/STRONG&gt; and &lt;STRONG&gt;Month as Dimensions, and two Expressions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;=num(sum({&amp;lt;Year={$(=max(Year))}&amp;gt;} MonthlyAmount), '#.##0 $(vCurrency)')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;=num(sum({&amp;lt;Year={$(=max(Year)-1)}&amp;gt;} MonthlyAmount), '#.##0 $(vCurrency)')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Imagen 1.jpg" class="jive-image" src="/legacyfs/online/71499_Imagen 1.jpg" style="font-size: 10pt; line-height: 1.5em; width: 620px; height: 276px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like, for the second expression, to &lt;STRONG&gt;show only the totals.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to do it removing the Month field from the Dimensions, and adding :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a expression for every month in max(Year),&lt;/LI&gt;&lt;LI&gt;other expression for Totals in max(Year),&lt;/LI&gt;&lt;LI&gt;other for Totals in max(Year)-1&lt;/LI&gt;&lt;LI&gt;and other one for Var(%).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I wanted and what I got, following Kristofer's suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Imagen 2.png" class="jive-image" src="/legacyfs/online/71500_Imagen 2.png" style="width: 620px; height: 308px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, but I had to play a bit with &lt;STRONG&gt;getselectedfields(Month).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question was if this could be directly achieved without adding a expression per month, making the second expression to show only the totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Nov 2014 08:21:24 GMT</pubDate>
    <dc:creator>salto</dc:creator>
    <dc:date>2014-11-18T08:21:24Z</dc:date>
    <item>
      <title>Two expressions - for the second, show only totals</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757197#M536105</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a pivot table in which I show the P&amp;amp;L for the current year, and for the previous year, per month:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Imagen 1.jpg" class="jive-image" src="/legacyfs/online/71404_Imagen 1.jpg" style="width: 620px; height: 276px;" /&gt;&lt;/P&gt;&lt;P&gt;Ok, not bad until now. The requirement is that I would need the '2013' column to show only the totals, not the values for every month. The % variation ONLY for the totals would also be fantastic to have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible? Many thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 11:56:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757197#M536105</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-11-17T11:56:25Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions - for the second, show only totals</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757198#M536106</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately, I think the only way is to create one expression per month, one expression for 2013, one for 2014 and one for variation (%).&lt;/P&gt;&lt;P&gt;I have been wrestling with the same problem myself and look forward to being proven wrong &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;Cheers,&lt;/P&gt;&lt;P&gt;Kristofer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 12:06:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757198#M536106</guid>
      <dc:creator>kristoferahlin</dc:creator>
      <dc:date>2014-11-17T12:06:43Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions - for the second, show only totals</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757199#M536107</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Kristofer, will do it with the workaround you have suggested.&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 14:09:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757199#M536107</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-11-17T14:09:55Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions - for the second, show only totals</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757200#M536108</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about setting the expression text colour to white on a white background with a suitable expression using set analysis, an if statement and the dimensionailty() function.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 17 Nov 2014 21:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757200#M536108</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-11-17T21:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions - for the second, show only totals</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757201#M536109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Bill.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had a look at the &lt;STRONG&gt;&lt;EM&gt;dimensionality()&lt;/EM&gt;&lt;/STRONG&gt; function but in my chart, for every month and for totals, the value of &lt;STRONG&gt;&lt;EM&gt;dimensionality()&lt;/EM&gt;&lt;/STRONG&gt; returns 1 in all cases.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And, even if the dimensionality functions returned a different value (let's say,1 for totals and 2 for every month), would it be possible to hide the whole columns in which dimensionality returns 1 (including the heading and not only the values), instead of changing the text colour and background to white?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks again for your suggestion.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 07:56:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757201#M536109</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-11-18T07:56:09Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions - for the second, show only totals</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757202#M536110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure if understood right. If you want same total across months, try with &lt;STRONG&gt;'Total'&lt;/STRONG&gt; something like: Sum( Total Amount) . If that doesn't help, try to share your expected output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 08:03:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757202#M536110</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2014-11-18T08:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Two expressions - for the second, show only totals</title>
      <link>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757203#M536111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello tresesco,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is what I had, using &lt;STRONG&gt;Description&lt;/STRONG&gt; and &lt;STRONG&gt;Month as Dimensions, and two Expressions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expressions are:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;=num(sum({&amp;lt;Year={$(=max(Year))}&amp;gt;} MonthlyAmount), '#.##0 $(vCurrency)')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;EM&gt;=num(sum({&amp;lt;Year={$(=max(Year)-1)}&amp;gt;} MonthlyAmount), '#.##0 $(vCurrency)')&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Imagen 1.jpg" class="jive-image" src="/legacyfs/online/71499_Imagen 1.jpg" style="font-size: 10pt; line-height: 1.5em; width: 620px; height: 276px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like, for the second expression, to &lt;STRONG&gt;show only the totals.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I managed to do it removing the Month field from the Dimensions, and adding :&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;a expression for every month in max(Year),&lt;/LI&gt;&lt;LI&gt;other expression for Totals in max(Year),&lt;/LI&gt;&lt;LI&gt;other for Totals in max(Year)-1&lt;/LI&gt;&lt;LI&gt;and other one for Var(%).&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I wanted and what I got, following Kristofer's suggestion:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Imagen 2.png" class="jive-image" src="/legacyfs/online/71500_Imagen 2.png" style="width: 620px; height: 308px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works, but I had to play a bit with &lt;STRONG&gt;getselectedfields(Month).&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The question was if this could be directly achieved without adding a expression per month, making the second expression to show only the totals.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Nov 2014 08:21:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-expressions-for-the-second-show-only-totals/m-p/757203#M536111</guid>
      <dc:creator>salto</dc:creator>
      <dc:date>2014-11-18T08:21:24Z</dc:date>
    </item>
  </channel>
</rss>

