<?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 Different number format; same expression? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Different-number-format-same-expression/m-p/492994#M483677</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add a Total sales column along with a horizontally presented expression, which works, but I can't seem to format the Total column as currency seperate from the percentages. Here is my single expression:&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;And the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43024" alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/43024_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I went with. Probably not the most efficient, but it works:&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]))), (Num([Discount Percent] * 100, '##.0')) &amp;amp; '%' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps someone in the future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 20 Jun 2013 14:22:05 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-06-20T14:22:05Z</dc:date>
    <item>
      <title>Different number format; same expression?</title>
      <link>https://community.qlik.com/t5/QlikView/Different-number-format-same-expression/m-p/492994#M483677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm trying to add a Total sales column along with a horizontally presented expression, which works, but I can't seem to format the Total column as currency seperate from the percentages. Here is my single expression:&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;And the result:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG __jive_id="43024" alt="Capture.PNG" class="jive-image-thumbnail jive-image" src="https://community.qlik.com/legacyfs/online/43024_Capture.PNG" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff0000;"&gt;&lt;STRONG&gt;UPDATE:&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I went with. Probably not the most efficient, but it works:&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]))), (Num([Discount Percent] * 100, '##.0')) &amp;amp; '%' )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps someone in the future.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 20 Jun 2013 14:22:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Different-number-format-same-expression/m-p/492994#M483677</guid>
      <dc:creator />
      <dc:date>2013-06-20T14:22:05Z</dc:date>
    </item>
  </channel>
</rss>

