<?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 Field value to Null in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419186#M1164741</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I'm doing a project where I needed to have 2 dates (DateA, DateB) from 2 independent tables (TableA, TableB) related to one field that the user can filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;To do so, I implemented document triggers &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;"Select In Field" for the fields of TableA (Year, Month, Day of Week, ...) that change the selected values of fields related to TableB. Unfortunately this doesn't work as I expected...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;YearA&lt;/STRONG&gt; has:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;2009, 2010, 2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;YearB&lt;/STRONG&gt; has:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;2009, 2010, 2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;So far, so good there the same years in both fields but from now on it gets bad...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;MonthA&lt;/STRONG&gt; has:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;January, February, March, April&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;MonthB &lt;/STRONG&gt;has:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;&lt;EM&gt;January&lt;/EM&gt;, &lt;EM&gt;March, &lt;/EM&gt;July, September&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;So, when I select the year &lt;STRONG&gt;2010 &lt;/STRONG&gt;in the "&lt;STRONG&gt;YearA&lt;/STRONG&gt;" listbox, "&lt;STRONG&gt;YearB&lt;/STRONG&gt;" gets the same value after the trigger implementation but it also gets &lt;STRONG&gt;July &lt;/STRONG&gt;in the field "&lt;STRONG&gt;MonthB&lt;/STRONG&gt;" since it's the only month with values for that year.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;If I select &lt;STRONG&gt;February &lt;/STRONG&gt;afterwards in &lt;STRONG&gt;MonthA&lt;/STRONG&gt; listbox, and with the trigger implemented, I would expected QV to "know" that MonthB has no "February" value so it would get Null but no... It remains with the July selection on even after the trigger "Select in Field" fires... :s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;How can I fix this in QV10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Oct 2012 09:22:53 GMT</pubDate>
    <dc:creator />
    <dc:date>2012-10-16T09:22:53Z</dc:date>
    <item>
      <title>Field value to Null</title>
      <link>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419186#M1164741</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;I'm doing a project where I needed to have 2 dates (DateA, DateB) from 2 independent tables (TableA, TableB) related to one field that the user can filter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;To do so, I implemented document triggers &lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;"Select In Field" for the fields of TableA (Year, Month, Day of Week, ...) that change the selected values of fields related to TableB. Unfortunately this doesn't work as I expected...&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;YearA&lt;/STRONG&gt; has:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;2009, 2010, 2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;YearB&lt;/STRONG&gt; has:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;2009, 2010, 2011&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;So far, so good there the same years in both fields but from now on it gets bad...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;MonthA&lt;/STRONG&gt; has:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;January, February, March, April&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;STRONG&gt;MonthB &lt;/STRONG&gt;has:&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;&lt;EM&gt;&lt;EM&gt;January&lt;/EM&gt;, &lt;EM&gt;March, &lt;/EM&gt;July, September&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;So, when I select the year &lt;STRONG&gt;2010 &lt;/STRONG&gt;in the "&lt;STRONG&gt;YearA&lt;/STRONG&gt;" listbox, "&lt;STRONG&gt;YearB&lt;/STRONG&gt;" gets the same value after the trigger implementation but it also gets &lt;STRONG&gt;July &lt;/STRONG&gt;in the field "&lt;STRONG&gt;MonthB&lt;/STRONG&gt;" since it's the only month with values for that year.&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;If I select &lt;STRONG&gt;February &lt;/STRONG&gt;afterwards in &lt;STRONG&gt;MonthA&lt;/STRONG&gt; listbox, and with the trigger implemented, I would expected QV to "know" that MonthB has no "February" value so it would get Null but no... It remains with the July selection on even after the trigger "Select in Field" fires... :s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;How can I fix this in QV10?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;Thanks in advance &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 09:22:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419186#M1164741</guid>
      <dc:creator />
      <dc:date>2012-10-16T09:22:53Z</dc:date>
    </item>
    <item>
      <title>Re: Field value to Null</title>
      <link>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419187#M1164742</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;can you add a qvw??.. i think the selection still because the tables are not in a relation.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 09:45:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419187#M1164742</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2012-10-16T09:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Field value to Null</title>
      <link>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419188#M1164743</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you're right Facundo but how can I override the value in the FieldB to Null when the value selected in FieldA doesn't exist in FieldB?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried to implement another trigger (firing after the one that tries to make the value in FieldA and FieldB the same) to check something like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Field: FieldB&lt;/P&gt;&lt;P&gt;String: =If( GetFieldSelections( FieldA ) &amp;lt;&amp;gt; GetFieldSelections( FieldB ), Null() )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But even so, it doesn't get Null :s&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 09:59:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419188#M1164743</guid>
      <dc:creator />
      <dc:date>2012-10-16T09:59:29Z</dc:date>
    </item>
    <item>
      <title>Re: Field value to Null</title>
      <link>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419189#M1164744</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I don´t know if you are looking something like this, please see atach&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Oct 2012 10:13:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419189#M1164744</guid>
      <dc:creator>fdelacal</dc:creator>
      <dc:date>2012-10-16T10:13:24Z</dc:date>
    </item>
    <item>
      <title>Re: Field value to Null</title>
      <link>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419190#M1164745</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help Facundo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Meanwhile I was able to find a simpler solution to my problem via script.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Made a link table with only parts of the data year, month, day and so on and not the whole dates and I found the answer to my problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 11:13:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Field-value-to-Null/m-p/419190#M1164745</guid>
      <dc:creator />
      <dc:date>2012-10-17T11:13:13Z</dc:date>
    </item>
  </channel>
</rss>

