<?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: If Only (....) = Only (....), something, null()  - gives null for total. in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/If-Only-Only-something-null-gives-null-for-total/m-p/1441234#M432418</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(aggr(if( Only( Country) = vAlternativeCountry,Sum( Sales), null()),City))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 29 Sep 2017 09:31:42 GMT</pubDate>
    <dc:creator>Frank_Hartmann</dc:creator>
    <dc:date>2017-09-29T09:31:42Z</dc:date>
    <item>
      <title>If Only (....) = Only (....), something, null()  - gives null for total.</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-Only-something-null-gives-null-for-total/m-p/1441232#M432416</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;the heading might be confusing, apologies here. There is a problem I am facing (see also attached QVW):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using expression like this in my straight table:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if(Only(Country) = vAlternativeCountry,&lt;/P&gt;&lt;P&gt;Sum(Sales), null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;variable vAlternativeCountry contains: =Only({&amp;lt;City=$::City&amp;gt;}Country)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also straight table is in Alternate state A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is that I get null for total.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/178142_pastedImage_0.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to use dimensionality () &amp;lt;&amp;gt; 0, but couldn't make it work.&lt;/P&gt;&lt;P&gt;Can someone help me to get the total there?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Basically the table will show all cities of the country, when I select one city.]&lt;/P&gt;&lt;P&gt;[I kinda don't want to use p in set analysis]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for any help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 09:25:40 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-Only-something-null-gives-null-for-total/m-p/1441232#M432416</guid>
      <dc:creator>retko1985</dc:creator>
      <dc:date>2017-09-29T09:25:40Z</dc:date>
    </item>
    <item>
      <title>Re: If Only (....) = Only (....), something, null()  - gives null for total.</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-Only-something-null-gives-null-for-total/m-p/1441233#M432417</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this as expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum({&amp;lt;Country = p({$}), City&amp;gt;}Sales)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 09:29:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-Only-something-null-gives-null-for-total/m-p/1441233#M432417</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2017-09-29T09:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: If Only (....) = Only (....), something, null()  - gives null for total.</title>
      <link>https://community.qlik.com/t5/QlikView/If-Only-Only-something-null-gives-null-for-total/m-p/1441234#M432418</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sum(aggr(if( Only( Country) = vAlternativeCountry,Sum( Sales), null()),City))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 29 Sep 2017 09:31:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/If-Only-Only-something-null-gives-null-for-total/m-p/1441234#M432418</guid>
      <dc:creator>Frank_Hartmann</dc:creator>
      <dc:date>2017-09-29T09:31:42Z</dc:date>
    </item>
  </channel>
</rss>

