<?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: conditionally replace 0 with '-' without breaking set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903547#M314228</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, something more complex must be going on ... in my simple examples it does seem to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;flag = 0,&lt;/P&gt;&lt;P&gt;'-',&lt;/P&gt;&lt;P&gt;sum({&amp;lt;flag={1}&amp;gt;}data)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me put together my exact example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Apr 2015 17:42:42 GMT</pubDate>
    <dc:creator />
    <dc:date>2015-04-13T17:42:42Z</dc:date>
    <item>
      <title>conditionally replace 0 with '-' without breaking set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903543#M314224</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using set analysis to limit some records, but I am having trouble including conditional logic.&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The set analysis results in a 0 sometimes, I need this 0 to be replaced with a '-'.&amp;nbsp; If I wrap an if statement around the set analysis I can no longer limit the records, because the set analysis is ignored.&amp;nbsp; How do I replace 0 with '-' in a chart and use set analysis?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:01:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903543#M314224</guid>
      <dc:creator />
      <dc:date>2015-04-13T17:01:43Z</dc:date>
    </item>
    <item>
      <title>Re: conditionally replace 0 with '-' without breaking set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903544#M314225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use something like below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF(YourExpression = 0,'-',YourExpression)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:09:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903544#M314225</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-13T17:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: conditionally replace 0 with '-' without breaking set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903545#M314226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;doesn't work because the if will return something on every record and we need the set analysis to be respected&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:13:15 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903545#M314226</guid>
      <dc:creator />
      <dc:date>2015-04-13T17:13:15Z</dc:date>
    </item>
    <item>
      <title>Re: conditionally replace 0 with '-' without breaking set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903546#M314227</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You need to provide more details if you think this isn't going to work. Because from the looks of it, I think it should work, but you might be right. Before you provide more details it would be hard to troubleshoot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best,&lt;/P&gt;&lt;P&gt;Sunny&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:18:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903546#M314227</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2015-04-13T17:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: conditionally replace 0 with '-' without breaking set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903547#M314228</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;yes, something more complex must be going on ... in my simple examples it does seem to work:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if(&lt;/P&gt;&lt;P&gt;flag = 0,&lt;/P&gt;&lt;P&gt;'-',&lt;/P&gt;&lt;P&gt;sum({&amp;lt;flag={1}&amp;gt;}data)&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me put together my exact example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:42:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903547#M314228</guid>
      <dc:creator />
      <dc:date>2015-04-13T17:42:42Z</dc:date>
    </item>
    <item>
      <title>Re: conditionally replace 0 with '-' without breaking set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903548#M314229</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;if(&lt;SPAN style="line-height: 1.5em;"&gt;sum({&amp;lt;flag={1}&amp;gt;}data) = 0,'-',&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 12px; background-color: #f2f2f2;"&gt;sum({&amp;lt;flag={1}&amp;gt;}data)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="line-height: 1.5em;"&gt;)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:57:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/conditionally-replace-0-with-without-breaking-set-analysis/m-p/903548#M314229</guid>
      <dc:creator>MK_QSL</dc:creator>
      <dc:date>2015-04-13T17:57:33Z</dc:date>
    </item>
  </channel>
</rss>

