<?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: Value not shown when no sales (nested if expression) in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Value-not-shown-when-no-sales-nested-if-expression/m-p/518801#M1126336</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please post a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 23 Dec 2013 09:02:46 GMT</pubDate>
    <dc:creator>tresB</dc:creator>
    <dc:date>2013-12-23T09:02:46Z</dc:date>
    <item>
      <title>Value not shown when no sales (nested if expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Value-not-shown-when-no-sales-nested-if-expression/m-p/518800#M1126335</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have got the following dimension:&lt;/P&gt;&lt;P&gt;"group" = {group1, group2, group3}&lt;/P&gt;&lt;P&gt;each group as got its own budget: group1 = 1000; group2 = 10000; group3 = 20000&lt;/P&gt;&lt;P&gt;I do not want to touch the script or codes, so with the following nested expression I can show the budget for each group:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(group = group1, 1000,&lt;/P&gt;&lt;P&gt;//otherwise&lt;/P&gt;&lt;P&gt;if(group = group2, 10000,&lt;/P&gt;&lt;P&gt;//otherwise&lt;/P&gt;&lt;P&gt;if(group = group3, 20000&lt;/P&gt;&lt;P&gt;)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(this is just a small version, I have got 10 "if's").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This works fine, BUT: There are no sales for group3 for the month of november 2013, so apparently it does not want to show me the budget of group3 either. It only shows "-".&lt;/P&gt;&lt;P&gt;I tried to untick "suppress values when zero", but this does not help.&lt;/P&gt;&lt;P&gt;The formula works fine in the month of October, since there are sales for each of the three groups, but since nothing of group3 has been sold in the month of November, it does now show me the budget...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I solve this problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 08:53:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-not-shown-when-no-sales-nested-if-expression/m-p/518800#M1126335</guid>
      <dc:creator />
      <dc:date>2013-12-23T08:53:02Z</dc:date>
    </item>
    <item>
      <title>Re: Value not shown when no sales (nested if expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Value-not-shown-when-no-sales-nested-if-expression/m-p/518801#M1126336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you please post a sample?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 09:02:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-not-shown-when-no-sales-nested-if-expression/m-p/518801#M1126336</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2013-12-23T09:02:46Z</dc:date>
    </item>
    <item>
      <title>Re: Value not shown when no sales (nested if expression)</title>
      <link>https://community.qlik.com/t5/QlikView/Value-not-shown-when-no-sales-nested-if-expression/m-p/518802#M1126337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Plese see the attache qvw file which may help u.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create 2 dimension and expression like below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. =ValueList('Group1','Group2','Group3')&lt;/P&gt;&lt;P&gt;2. =replace(grp,grp,'')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. =sum(if(ValueList('Group1','Group2','Group3')=grp,bud,0))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should be straight table and un check suppress zero option and hide the un wantd colums.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Dec 2013 17:18:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Value-not-shown-when-no-sales-nested-if-expression/m-p/518802#M1126337</guid>
      <dc:creator />
      <dc:date>2013-12-23T17:18:25Z</dc:date>
    </item>
  </channel>
</rss>

