<?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: Expression after horizontally listed expression in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Expression-after-horizontally-listed-expression/m-p/457706#M484228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use partial sums (AKA subtotals / totals, which you can enable in presentation tab per dimension) and use dimensionality() resp. secondarydimensionality() to switch your one expression to show your discount percentages in your detail columns and the sum in your total column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(SecondaryDimensionality() = 0, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourSumExpression,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourPercentageExpression&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jun 2013 23:16:37 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2013-06-10T23:16:37Z</dc:date>
    <item>
      <title>Expression after horizontally listed expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-after-horizontally-listed-expression/m-p/457705#M484227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How can I add an expression after a horizontally listed expression without it falling under the horizontal values? In the case below, I want to list the sum of sales for each customer# after the last Product column value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42436" class="jive-image-thumbnail jive-image" onclick="" alt="Capture.PNG" src="https://community.qlik.com/legacyfs/online/42436_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I DONT get this result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42437" class="jive-image-thumbnail jive-image" onclick="" alt="Capture1.PNG" src="https://community.qlik.com/legacyfs/online/42437_Capture1.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 20:10:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-after-horizontally-listed-expression/m-p/457705#M484227</guid>
      <dc:creator />
      <dc:date>2013-06-10T20:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Expression after horizontally listed expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-after-horizontally-listed-expression/m-p/457706#M484228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use partial sums (AKA subtotals / totals, which you can enable in presentation tab per dimension) and use dimensionality() resp. secondarydimensionality() to switch your one expression to show your discount percentages in your detail columns and the sum in your total column.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something along these lines:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(SecondaryDimensionality() = 0, &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourSumExpression,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; YourPercentageExpression&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jun 2013 23:16:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-after-horizontally-listed-expression/m-p/457706#M484228</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2013-06-10T23:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: Expression after horizontally listed expression</title>
      <link>https://community.qlik.com/t5/QlikView/Expression-after-horizontally-listed-expression/m-p/457707#M484229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Excellent answer swuehl! That worked perfectly. Any suggestions on how to format the two ( sales, percent ) seperately? I currently have my expression formated as "Fixed to" 1 decimal place and "Show in Percent%" which is fine for the percentages but not the sales.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's my expression now:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(SecondaryDimensionality() = 0, If(Sum([Discount Percent]) &amp;gt; 0, Money(Sum([Sales Amount]))), [Discount Percent])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="42471" alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/42471_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jun 2013 14:49:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Expression-after-horizontally-listed-expression/m-p/457707#M484229</guid>
      <dc:creator />
      <dc:date>2013-06-11T14:49:28Z</dc:date>
    </item>
  </channel>
</rss>

