<?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: Isnull Field Selection in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384539#M421684</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;+ &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Sep 2017 02:07:23 GMT</pubDate>
    <dc:creator>Anil_Babu_Samineni</dc:creator>
    <dc:date>2017-09-12T02:07:23Z</dc:date>
    <item>
      <title>Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384531#M421676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to capture all years in my data model in one field selection box. I'm doing this by using the isnull function Field Expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;field expression: If(IsNull(Year),AvailableYear,Year)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, when I make the selection on a known existing year from my calendar table (2017) - it captures that same year in the other table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here are the examples:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="IsnullYearSelections.PNG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/176019_IsnullYearSelections.PNG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to select 2017 or 2016 and it only capture the Calendar Year selection 2016 or 2017. Then, when I select 2018 it would have only AvailableYear 2018.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Channing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2017 20:55:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384531#M421676</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-09T20:55:17Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384532#M421677</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If those Year and AvailableYear are mapping each together then you could need Alternate states to get into Current selections from 2 filters? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 01:23:00 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384532#M421677</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-10T01:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384533#M421678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Post a sample app&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/thread/31487"&gt;How to get answers to your post?&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://community.qlik.com/docs/DOC-7538"&gt;Qlik Community Tip: Posting Successful Discussion Threads&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 07:39:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384533#M421678</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2017-09-10T07:39:13Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384534#M421679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Use if(len(trim (Year))&amp;gt;0, Available Year,OtherYear)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 07:48:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384534#M421679</guid>
      <dc:creator>qlikviewwizard</dc:creator>
      <dc:date>2017-09-10T07:48:39Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384535#M421680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your response. The relationship between those do exist through a certain key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, that relationship only exists up to the Period in the main fact table. Any Period greater than the main fact table, which would be any period greater than September 2017, ends that relationship - since there is no matching key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I may need to set up a new question as I think this pertains to data modelling. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in my fact table I have resource, project, month, and year records.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I could join the availability table to the main fact table (resource, month, and year). Once I do that I could say if a certain period has a resource, project, month, and year - divide the total availability number by the number of records in the main table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, if I had 5 records which indicated Channing on 5 projects in September 2017 I would have 160 / 5. Then any period greater than that would be the total availability: 160. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, that's something I could do in SQL through a partition function but I'm not sure how to do it in Qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope that explanation wasn't too incoherent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What are your thoughts?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Channing &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 23:46:09 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384535#M421680</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-10T23:46:09Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384536#M421681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I do what I mentioned above I could just sum(Total&amp;lt;Month,Year&amp;gt; availability) and get the appropriate availability for Channing's month and year, regardless of duplication created through the join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 10 Sep 2017 23:49:20 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384536#M421681</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-10T23:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384537#M421682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am not sure, How this expression helps you. Some where. Let's think this way because you need only selections with different respect&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;esource, month, year, year as annualyear from Fact;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Now, Create 2 boxes which has year and annualyear then select anything using alternate state &lt;A href="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Alternate%20States.htm" title="http://help.qlik.com/en-US/qlikview/12.1/Subsystems/Client/Content/Alternate%20States.htm"&gt;Alternate States ‒ QlikView&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 03:27:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384537#M421682</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-11T03:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384538#M421683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I went ahead and partitioned as I mentioned above and fixed all this in the data model (I still have some issues but it's not appropriate for this thread so I'm going to open a new one). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to avoid the confusion of Alternate states - I feel that my users will not be able to adjust accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Channing&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 11 Sep 2017 22:06:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384538#M421683</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-09-11T22:06:59Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384539#M421684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;+ &lt;A href="https://community.qlik.com/qlik-users/27943"&gt;marcus_sommer&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 02:07:23 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384539#M421684</guid>
      <dc:creator>Anil_Babu_Samineni</dc:creator>
      <dc:date>2017-09-12T02:07:23Z</dc:date>
    </item>
    <item>
      <title>Re: Isnull Field Selection</title>
      <link>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384540#M421685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For me it's not quite clear in which relation those fields/tables are and therefore it's difficult to suggest anything. But if anyhow possible the problem should be addressed within the script and not in the gui. I think the merging of the tables goes in the right direction but it mustn't be mandatory made by joins. Joins could be depending on the relation between the tables quite difficult so that maybe a mapping is easier and more suitable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would go even a bit further to think that a concatenation (union in sql) is even more suitable by merging both year-fields into a single one and to add a flag to be able to differ between them and to come in the end to expressions like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count({&amp;lt; YearFlag = {1} &amp;gt;} Project) / count({&amp;lt; YearFlag = {2} &amp;gt;} Project)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure if it's applicable to your datamodel but I would start on this point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Marcus&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Sep 2017 06:52:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Isnull-Field-Selection/m-p/1384540#M421685</guid>
      <dc:creator>marcus_sommer</dc:creator>
      <dc:date>2017-09-12T06:52:08Z</dc:date>
    </item>
  </channel>
</rss>

