<?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: How to replace null value after joing two fields in calculated dimension in chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676522#M506461</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have to do some extra work to have expressions as a dimension, and as a rule the AGGR() function helps. Here, I've aggregated over a primary key field,&amp;nbsp; _Key,&amp;nbsp; but you can substitute whatever you have that functions as a primary key in the table that contains FieldA and FieldB.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;If(IsNull(aggr(Only(FieldA), _Key)) and IsNull(aggr(Only(FieldB), _Key)) , 'Not Known', FieldA &amp;amp; ' ,' &amp;amp; FieldB)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Azam&lt;/P&gt;</description>
    <pubDate>Tue, 18 Feb 2020 09:05:50 GMT</pubDate>
    <dc:creator>a_mullick</dc:creator>
    <dc:date>2020-02-18T09:05:50Z</dc:date>
    <item>
      <title>How to replace null value after joing two fields in calculated dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676493#M506460</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have to join two fields in calculated dimension:&lt;/P&gt;&lt;P&gt;FieldA &amp;amp; ', ' &amp;amp; FieldB&lt;/P&gt;&lt;P&gt;If there is null value I want to print some text: 'no value'.&lt;/P&gt;&lt;P&gt;One of my solution which doesn't work:&lt;/P&gt;&lt;P&gt;if(isnull(FieldA &amp;amp; ', ' &amp;amp; FieldB),'no value',FieldA &amp;amp; ', ' &amp;amp; FieldB)&lt;/P&gt;&lt;P&gt;I tried different combinations but nothing happend. I'm still getting '-'. Is it possible to change null for text in that case?&lt;/P&gt;&lt;P&gt;* I don't want to join fields in script as I want users to see in selection box two separate fields&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 08:06:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676493#M506460</guid>
      <dc:creator>Anna3</dc:creator>
      <dc:date>2020-02-18T08:06:03Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace null value after joing two fields in calculated dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676522#M506461</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;You have to do some extra work to have expressions as a dimension, and as a rule the AGGR() function helps. Here, I've aggregated over a primary key field,&amp;nbsp; _Key,&amp;nbsp; but you can substitute whatever you have that functions as a primary key in the table that contains FieldA and FieldB.&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier" size="2"&gt;If(IsNull(aggr(Only(FieldA), _Key)) and IsNull(aggr(Only(FieldB), _Key)) , 'Not Known', FieldA &amp;amp; ' ,' &amp;amp; FieldB)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Azam&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 09:05:50 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676522#M506461</guid>
      <dc:creator>a_mullick</dc:creator>
      <dc:date>2020-02-18T09:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace null value after joing two fields in calculated dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676641#M506462</link>
      <description>&lt;P&gt;Personally I would tend to do this within the script - with both fields and probably also within an additionally concat-field. Nevertheless something like the following should work within the UI:&lt;/P&gt;&lt;P&gt;if(len(trim(FieldA)), 'no value',&amp;nbsp;FieldA) &amp;amp; ' + ' &amp;amp; if(len(trim(FieldB)), 'no value',&amp;nbsp;FieldB)&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 12:37:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676641#M506462</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2020-02-18T12:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace null value after joing two fields in calculated dimension in chart</title>
      <link>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676652#M506463</link>
      <description>&lt;P&gt;&lt;FONT size="3"&gt;Thank You for answering.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="3"&gt;I had to change it a little but it quit works.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;FONT face="courier new,courier"&gt;if(IsNull(aggr(Only(FieldA), _key)) and IsNull(aggr(Only(FieldB), _key))&amp;nbsp;&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;,'no value',&amp;nbsp;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;aggr(only(FieldA&amp;amp;', ' &amp;amp; FieldB), _key)&lt;/FONT&gt;&lt;FONT face="courier new,courier"&gt;)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;It looked good in chart but after clicking on dimension it made selection on&amp;nbsp;&lt;FONT face="courier new,courier"&gt;_key&lt;/FONT&gt; field instead of &lt;FONT face="courier new,courier"&gt;FieldA&lt;/FONT&gt; and &lt;FONT face="courier new,courier"&gt;FieldB&lt;/FONT&gt;.&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="arial,helvetica,sans-serif" size="3"&gt;However I needed trigger anyway to select &lt;FONT face="courier new,courier"&gt;FieldA&lt;/FONT&gt; when selecting &lt;FONT face="courier new,courier"&gt;_key&lt;/FONT&gt;, so it works almost perfectly now. Thank You &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 18 Feb 2020 13:16:43 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/How-to-replace-null-value-after-joing-two-fields-in-calculated/m-p/1676652#M506463</guid>
      <dc:creator>Anna3</dc:creator>
      <dc:date>2020-02-18T13:16:43Z</dc:date>
    </item>
  </channel>
</rss>

