<?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: Optimize Expression without IF in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927072#M979188</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean hide the % when the value is zero?&lt;/P&gt;&lt;P&gt;In what context do you want to display this number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do this:&lt;/P&gt;&lt;P&gt;Num(Sum(Sale) / Sum( Quantity)*100, '0.0%;-0.0%';0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will use the appropriate format for positive, negative and zero respectively&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 28 Aug 2015 14:13:55 GMT</pubDate>
    <dc:creator>jonathandienst</dc:creator>
    <dc:date>2015-08-28T14:13:55Z</dc:date>
    <item>
      <title>Optimize Expression without IF</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927071#M979187</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Dear all,&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;This is my expression : &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Num( Sum(Sale) / Sum( Quantity)*100,'#.#')&amp;amp;'%'&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;I''d like to reduce '%' when the result of sum equal zero and without IF expression. I need your help,pleaseee!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 09:09:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927071#M979187</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-28T09:09:39Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Expression without IF</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927072#M979188</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you mean hide the % when the value is zero?&lt;/P&gt;&lt;P&gt;In what context do you want to display this number?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could do this:&lt;/P&gt;&lt;P&gt;Num(Sum(Sale) / Sum( Quantity)*100, '0.0%;-0.0%';0)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will use the appropriate format for positive, negative and zero respectively&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 28 Aug 2015 14:13:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927072#M979188</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-28T14:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Expression without IF</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927073#M979189</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very very much &lt;A href="https://community.qlik.com/qlik-users/13229"&gt;jontydkpi&lt;/A&gt;‌ &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 29 Aug 2015 16:11:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927073#M979189</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-29T16:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Expression without IF</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927074#M979190</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;A href="https://community.qlik.com/qlik-users/13229"&gt;jontydkpi&lt;/A&gt;‌,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am so sorry about that. Last day, I just check the zero value&amp;nbsp; and I miss to check correct format.&lt;/P&gt;&lt;P&gt;I provide the following photo: &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97399_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I wanna format % as the left photo. Can you give me advice for this problem? &lt;/P&gt;&lt;P&gt;Regards! &lt;/P&gt;&lt;P&gt;Kirk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 05:15:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927074#M979190</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T05:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Expression without IF</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927075#M979191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well the %format effectively multiplies by 100, so 0.5 displays as 50%. Just remove the *100 from the expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=Num(Sum(Sale) / Sum( Quantity), '0.0%;-0.0%';0)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 05:37:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927075#M979191</guid>
      <dc:creator>jonathandienst</dc:creator>
      <dc:date>2015-08-31T05:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Expression without IF</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927076#M979192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do you have Comma ',' before last zero? I guess it should be semicolon. I think 0.0% and -0.0% and the 0 are separated by semicolon and enclosed with apostrophe, try this - &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt; '0.0%;-0.0%;0'. &lt;A href="https://community.qlik.com/qlik-users/13229"&gt;jontydkpi&lt;/A&gt;&lt;/SPAN&gt; might have typo in last response.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 05:53:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927076#M979192</guid>
      <dc:creator>Digvijay_Singh</dc:creator>
      <dc:date>2015-08-31T05:53:09Z</dc:date>
    </item>
    <item>
      <title>Re: Optimize Expression without IF</title>
      <link>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927077#M979193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yup, thank you and.. the number after dot will be rounded. &lt;/P&gt;&lt;P&gt;The data after remove *100 : &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/97409_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I wanna get the number after dot. I dont wanna be rounded number. Like left value. Do you mind if you .... fix it again ? ? &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/grin.png" /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Aug 2015 05:58:26 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Optimize-Expression-without-IF/m-p/927077#M979193</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2015-08-31T05:58:26Z</dc:date>
    </item>
  </channel>
</rss>

