<?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 Two tables: All Members and New Members in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251890#M95501</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, what if the user selects different years on both select boxes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Nov 2011 18:02:25 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2011-11-23T18:02:25Z</dc:date>
    <item>
      <title>Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251887#M95498</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have two tables. The first table measures all active Members by Area and Incurred Year. Column 1 is for Incurred Year X. Column 2 is for Incurred Year X + 1. The second table is the exact same thing, but it only should measure New Members. In other words, those with an Original Year that matches the Incurred Year.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Right now, to sum member months for Year X, I use this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Incurred Year]={$(=Only([Incurred Year]))}&amp;gt;}[Member Count])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What do I need to add to make it so [Incurred Year] = [Original Year]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One more complication is that the data doesn't have Original Year, but has an Original Month Year field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 16:57:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251887#M95498</guid>
      <dc:creator />
      <dc:date>2011-11-23T16:57:28Z</dc:date>
    </item>
    <item>
      <title>Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251888#M95499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not really sure if I understood correctly, maybe a small data sample and giving the expected result may help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would try setting a selection on [Original Year] with [Incurred Year]:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Incurred Year]={$(=Only([Incurred Year]))}&lt;STRONG&gt;,[Original Year]={$(=Only([Incurred Year]))}&lt;/STRONG&gt; &amp;gt;}[Member Count])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But not sure if I got your point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 17:46:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251888#M95499</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-23T17:46:53Z</dc:date>
    </item>
    <item>
      <title>Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251889#M95500</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Another way of saying this: I have two tables, one table I want to vary by just one select box (Incurred Year) and the other table I want to vary by two select boxes (Incurred Year) and (Original Year).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 17:57:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251889#M95500</guid>
      <dc:creator />
      <dc:date>2011-11-23T17:57:36Z</dc:date>
    </item>
    <item>
      <title>Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251890#M95501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hm, what if the user selects different years on both select boxes?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 18:02:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251890#M95501</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-23T18:02:25Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251891#M95502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It should be set up so you can see 2009 and 2010. You want to see total members in the first table and you want to see only the members that joined in those respective years in the second table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help on this so far!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 18:13:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251891#M95502</guid>
      <dc:creator />
      <dc:date>2011-11-23T18:13:41Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251892#M95503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok, I think I understand the two table chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It seems I still don't understand the impact of those two select boxes. But if you select only one year, but want to have this year impact both the selection state of [Incurred Year] and [Original Year], I would still try something like above&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Incurred Year]={$(=Only([Incurred Year]))}&lt;STRONG&gt;,[Original Year]={$(=Only([Incurred Year]))}&lt;/STRONG&gt; &amp;gt;}[Member Count])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(and for the second column, I would add 1 to the set element, like {$(=Only([Incurred Year])+1)}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe this is totally wrong, but I need some more information on your data model and at best some data to work with. If you want, you could upload a small sample app here to the forum (upload available in advanced editor).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 18:48:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251892#M95503</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-23T18:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251893#M95504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This formula works for me:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;[Incurred Year]={$(=Only([Incurred Year]))},[Acct Orig Eff Date]={"&lt;STRONG&gt;2009*&lt;/STRONG&gt;"}&amp;gt;}[Member Count])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It is not dynamic though because 2009 is hard coded in it. I want 2009* to be the Only(Year) that is selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's worth pointing out that Acct Orig Eff Date is in this numeric (non date) format: 20090501 would be May 1 2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan - I don't think I can upload part of the model as it is very large&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 19:46:29 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251893#M95504</guid>
      <dc:creator />
      <dc:date>2011-11-23T19:46:29Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251894#M95505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE&gt;&lt;TABLE border="1"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;It's worth pointing out that Acct Orig Eff Date is in this numeric (non date) format: 20090501 would be May 1 2009.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Stefan - I don't think I can upload part of the model as it is very large&lt;/P&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yeah, that's really worth pointing out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that you parse that [Acct Orig Eff Date] in as a Date, like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;Date(Date#([Acct Orig Eff Date],'YYYYMMDD')) as [Acct Orig Eff Date],&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;from ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and may be you want to create an additional YearAcctOrigEffDate also (just use year() function on above created date).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then an expression like above posted should be quite straight forward.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If this is not possible, try as search expression in your set analysis like:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;[Incurred Year]={$(=Only([Incurred Year]))},[Acct Orig Eff Date]={&lt;STRONG&gt;"=year(date#([Acct Orig Eff Date],'YYYYMMDD'))=only(Year)"&lt;/STRONG&gt;}&amp;gt;}[Member Count])&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Nov 2011 22:30:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251894#M95505</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-23T22:30:18Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251895#M95506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stefan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've tried your search expression and various modifications of it. I'm pretty new to set theory so I don't understand all the syntax. It looks like what you have doesn't work because you are trying to match &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Acct Orig Eff Date], which is a YYYYMMDD, with &lt;/P&gt;&lt;P&gt;{&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;"=year(date#([Acct Orig Eff Date],'YYYYMMDD'))=only(Year)"&lt;/STRONG&gt;}, which is a YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm hoping there's a way to just change the syntax for this expression. If not, then I can try to change the Load Script. Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 14:42:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251895#M95506</guid>
      <dc:creator />
      <dc:date>2011-11-28T14:42:11Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251896#M95507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well my intention was to first parse [Acct Orig Eff Date] in as date type using date#, then apply year to get a year number from that and then to compare this year to only(Year). I assume Year field has a numerical format with format code YYYY also? &lt;/P&gt;&lt;P&gt;Is [Acct Orig Eff Date] maybe a time stamp or something similar, with additional information added after 'YYYYMMDD'? You may need to enter this part into the format code as well, then.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Again, if you could post a small sample of your data (not necessarily your confidential data, but some mock up with identical format), it would probably speed up things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Stefan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 17:03:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251896#M95507</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-28T17:03:58Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251897#M95508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;[Acct Orig Eff Date] is an integer with the format YYYYMMDD. It's not a timestamp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Year is numerical with YYYY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's your previous syntax:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;[Incurred Year]={$(=Only([Incurred Year]))},[Acct Orig Eff Date]={&lt;STRONG style="background-color: #ffffff; font-size: 12px; color: #636363; font-family: Arial;"&gt;"=year(date#([Acct Orig Eff Date],'YYYYMMDD'))=only(Incurred Year)"&lt;/STRONG&gt;}&amp;gt;}[Member Count])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think it's saying something like this though, which is causing a problem:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=sum({$&amp;lt;[Incurred Year]={$(=Only([Incurred Year]))},&lt;STRONG&gt;[YYYYMMDD]={"YYYY=YYYY"}&lt;/STRONG&gt;&amp;gt;}[Member Count])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I ultimately want to add this criteria "where left([Acct Orig Eff Date] , 4) = Only([Incurred Year])" but I'm not sure the syntax for parsing inside set theory in qlikview.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 17:22:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251897#M95508</guid>
      <dc:creator />
      <dc:date>2011-11-28T17:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: Two tables: All Members and New Members</title>
      <link>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251898#M95509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I used a search expression like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;...[YYYYMMDD]={"=YYYY=YYYY"}&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where &lt;STRONG&gt;YYYY=YYYY &lt;/STRONG&gt;is more like a conditional, I would indead read it like &lt;STRONG&gt;where Year1=Year2 &lt;/STRONG&gt;(both having format code YYYY).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still thinking it should work if my assumptions on your data are correct, so it think my assumptions are not correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could step back and try to create the year field from [Acct Orig Eff Date] in the script, then use an expression like posted above.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Nov 2011 17:33:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Two-tables-All-Members-and-New-Members/m-p/251898#M95509</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2011-11-28T17:33:44Z</dc:date>
    </item>
  </channel>
</rss>

