<?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: Re: Re: Re: Dimension Values in Set Analysis-followup question in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724056#M259790</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Jasper,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hey, thanks for your help... I was able to solve most of this... by 1) either modifying my formula (above) to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="color: #800080;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="color: #800080;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;concat(distinct &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;'if( [Memories Beg CFY Status]=' &amp;amp; chr(39) &amp;amp;&amp;nbsp; [Memories Beg CFY Status] &amp;amp; chr(39) &amp;amp; ',count(DISTINCT{&amp;lt;[Memories Current Status]={"' &amp;amp; [Memories Beg CFY Status] &amp;amp; '"}&amp;gt;} [Memories Id])', &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;&lt;EM&gt;',') &amp;amp; repeat(')',count(distinct [Memories Beg CFY Status]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; line-height: 1.5em; color: #800080;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; line-height: 1.5em;"&gt;.. which renders:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if( [Memories Beg CFY Status]='Lapsed Donor',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lapsed Donor"}&amp;gt;} [Memories Id]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;if( [Memories Beg CFY Status]='Lybunt - 1st Time',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lybunt - 1st Time"}&amp;gt;} [Memories Id]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;if( [Memories Beg CFY Status]='Lybunt',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lybunt"}&amp;gt;} [Memories Id]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;if( [Memories Beg CFY Status]='Non-Donor',count(DISTINCT{&amp;lt;[Memories Current Status]={"Non-Donor"}&amp;gt;} [Memories Id]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if( [Memories Beg CFY Status]='Sybunt',count(DISTINCT{&amp;lt;[Memories Current Status]={"Sybunt"}&amp;gt;} [Memories Id]))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;OR by using a 'data-island' approach that you suggested&lt;/DIV&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;--- However, in either case, &lt;SPAN style="color: #800080;"&gt;the formulas doesn't render values&lt;/SPAN&gt;... whereas hard-coded expressions do.&amp;nbsp; In other words, &lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;if I use the &lt;SPAN style="color: #800080;"&gt;formula above&lt;/SPAN&gt;, no values show... if I use the &lt;SPAN style="color: #3366ff;"&gt;hard-coded text (the blue above)&amp;nbsp; &lt;/SPAN&gt;then values do render...&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;Jarrell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 15 Oct 2014 15:44:13 GMT</pubDate>
    <dc:creator>jrdunson</dc:creator>
    <dc:date>2014-10-15T15:44:13Z</dc:date>
    <item>
      <title>Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724049#M259783</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;SPAN&gt; I have a follow-up question to post &lt;/SPAN&gt;&lt;A class="jive-link-wiki-small" data-containerid="2049" data-containertype="14" data-objectid="1335" data-objecttype="102" href="http://community.qlik.com/docs/DOC-1335"&gt;http://community.qlik.com/docs/DOC-1335&lt;/A&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt; [ Note I'm adding here, because I there is &lt;SPAN style="text-decoration: underline;"&gt;no 'attach' option&lt;/SPAN&gt; in discussion 'add comments' ]&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Attached is a spreadsheet... showing my Qlikview straight table values... where I followed the guidance in this post, to filter by dimension values:&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt; I tried to mimic:&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if(Customer2='A',sum({&amp;lt;Customer1={'A'}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;,if(Customer2='B',sum({&amp;lt;Customer1={'B'}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;,if(Customer2='C',sum({&amp;lt;Customer1={'C'}&amp;gt;} Sales)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;So, why doesn't the expression calculate for each row? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;a) I can put a single expression in a column (C1 or D1): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if([Memories Beg CFY Status]='Lapsed Donor',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lapsed Donor"}&amp;gt;} [Memories Id]))&lt;/SPAN&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if([Memories Beg CFY Status]='Lybunt',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lybunt"}&amp;gt;} [Memories Id]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;...and&lt;SPAN style="text-decoration: underline;"&gt; the values show&lt;/SPAN&gt; in C2 and D3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;b) However, if I use a calculation (as in E1):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;"concat(distinct '=if([Memories Beg CFY Status]=' &amp;amp; chr(39) &amp;amp;&amp;nbsp; [Memories Beg CFY Status] &amp;amp; chr(39) &amp;amp; ',count(DISTINCT{&amp;lt;[Memories Current Status]={""' &amp;amp; [Memories Beg CFY Status] &amp;amp; '""}&amp;gt;} [Memories Id]', ',') &amp;amp; ')' &amp;amp; repeat(')',count(distinct [Memories Beg CFY Status])) &amp;amp; repeat(')',count(distinct [Memories Beg CFY Status])-1 "&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the expressions render in columns D2 .. D6: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if([Memories Beg CFY Status]='Lapsed Donor',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lapsed Donor"}&amp;gt;} [Memories Id]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if([Memories Beg CFY Status]='Lybunt',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lybunt"}&amp;gt;} [Memories Id]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if([Memories Beg CFY Status]='Lybunt - 1st Time',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lybunt - 1st Time"}&amp;gt;} [Memories Id]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if([Memories Beg CFY Status]='Non-Donor',count(DISTINCT{&amp;lt;[Memories Current Status]={"Non-Donor"}&amp;gt;} [Memories Id]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;if([Memories Beg CFY Status]='Sybunt',count(DISTINCT{&amp;lt;[Memories Current Status]={"Sybunt"}&amp;gt;} [Memories Id]))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;Yet the values do not render...&amp;nbsp; &lt;/STRONG&gt;&lt;/SPAN&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;STRONG&gt;why not?&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Notice that C1 and E2 are identical....as are D1 and E3, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this what is meant, by set-analysis can only render once???&amp;nbsp; Why? &lt;/P&gt;&lt;P&gt;Jarrell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Oct 2014 14:08:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724049#M259783</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2014-10-14T14:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724050#M259784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like the formula rendered in the bottom right cell is malformed, the count( formula doesnt have the closing ")" parentheses.&lt;/P&gt;&lt;P&gt;Try attaching a simplified QVW file along with the raw data table so we can check if that's the problem, the XLS isn't very clear.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;What people mean when they say "set expressions are only evaluated once for every chart".&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Simply stated, they refer to the fact a set expression will not be re-evaluated for each calculated value in the rows of another column (dimension) in a chart. Hence the "if([another column]='value',set expression A, set expression B)" logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words if you have table:&lt;/P&gt;&lt;P&gt;ColA&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ColB&lt;/P&gt;&lt;P&gt;Val1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Val3&lt;/P&gt;&lt;P&gt;Val2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Val4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then a set expression as follows &lt;EM&gt;cannot&lt;/EM&gt; be used to make the value of ColB dependent on the value of ColA in the same row:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sum({1&amp;lt;ColA=p(ColA)&amp;gt;} field)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, you can't use a set expression to take the value from another column in the same table row as a search parameter within the set expression.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead you need to use a formula such as:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([ColA]='Val1',sum({1&amp;lt;FieldA={'Val1'}&amp;gt;} field),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([ColA]='Val2',sum({1&amp;lt;FieldA={'Val2'}&amp;gt;} field)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,null()))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 08:51:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724050#M259784</guid>
      <dc:creator />
      <dc:date>2014-10-15T08:51:12Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724051#M259785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Jasper, thanks so much.&amp;nbsp; I'm not sure I get this...&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([ColA]='Val1',sum({$&amp;lt;ColA={'Val1'}&amp;gt;} field),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([ColA]='Val2',sum({$&amp;lt;ColA={'Val2'}&amp;gt;} field)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,null()))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do you mean:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([ColA]='Val1',sum({$&amp;lt;ColB={'Val1'}&amp;gt;} field),&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([ColA]='Val2',sum({$&amp;lt;ColB={'Val2'}&amp;gt;} field)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,null()))&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Consider the following&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;IDNum&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;BegDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;EndDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;30&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;45&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;50&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;23&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Yellow&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Yellow&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;56&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;66&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;72&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Yellow&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;55&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Yellow&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;67&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;101&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Yellow&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;All I want to do is show the count of distinct IDs for BegDate and EndDate, in the same chart&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 192px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="font-size: 8pt;"&gt;BegDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD width="64"&gt;&lt;SPAN style="font-size: 8pt;"&gt;EndDate&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Green&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Red&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="font-size: 8pt;"&gt;4&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD height="20"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Yellow&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="font-size: 8pt;"&gt;3&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD align="right"&gt;&lt;SPAN style="font-size: 8pt;"&gt;2&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And this is what I tried ...&lt;/P&gt;&lt;P&gt;For the first column:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; count(DISTINCT [IDNum])&lt;/P&gt;&lt;P&gt;For the second column:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if([BegDate]='Red',count(DISTINCT{$&amp;lt;[EndDate]={"Red"}&amp;gt;} [IDNum]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I can do this really easily in SQL, in Perl, etc... Perhaps build a LOAD script to do this... How do I do this in a Qlikview chart? That is, I want to keep the IDs tied to the data model...so if, other dimensions are selected, the IDs will be selected...&lt;/P&gt;&lt;P&gt;Jarrell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:02:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724051#M259785</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2014-10-15T12:02:53Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724052#M259786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jarrell, check the example attached. Is that the solution you're looking for?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(In the T2 table creation scripts you should still add a LOAD DISTINCT IF NOT EXISTS logic to avoid duplicate rows to keep things nice and clean.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my example the ColA bit in the set expression should really refer to a data field, as set expressions work with data fields, not with column names in front-end tables. I edited my first reply to clarify this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:19:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724052#M259786</guid>
      <dc:creator />
      <dc:date>2014-10-15T12:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724053#M259787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey, thanks&lt;/P&gt;&lt;P&gt;could I just use a data island: &lt;/P&gt;&lt;P&gt;T2:&lt;/P&gt;&lt;P&gt;LOAD * INLINE [&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Col1&lt;/P&gt;&lt;P&gt;&amp;nbsp; Red,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Green,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Yellow&lt;/P&gt;&lt;P&gt;];&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:34:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724053#M259787</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2014-10-15T12:34:56Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724054#M259788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, if the list of colors is static that wouldn't be a problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:36:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724054#M259788</guid>
      <dc:creator />
      <dc:date>2014-10-15T12:36:46Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724055#M259789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;By the way, if your data model allows it I'd handle this issue using load scripts rather than using the dimension aware set expression workaround.&lt;/P&gt;&lt;P&gt;Check the attachment to see what I mean.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 12:44:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724055#M259789</guid>
      <dc:creator />
      <dc:date>2014-10-15T12:44:14Z</dc:date>
    </item>
    <item>
      <title>Re: Re: Re: Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724056#M259790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Jasper,&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt;"&gt;Hey, thanks for your help... I was able to solve most of this... by 1) either modifying my formula (above) to:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="color: #800080;"&gt;&lt;EM style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="color: #800080;"&gt;&lt;EM&gt;&lt;SPAN style="font-size: 8pt;"&gt;concat(distinct &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;'if( [Memories Beg CFY Status]=' &amp;amp; chr(39) &amp;amp;&amp;nbsp; [Memories Beg CFY Status] &amp;amp; chr(39) &amp;amp; ',count(DISTINCT{&amp;lt;[Memories Current Status]={"' &amp;amp; [Memories Beg CFY Status] &amp;amp; '"}&amp;gt;} [Memories Id])', &lt;/SPAN&gt;&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 8pt;"&gt;&lt;EM&gt;',') &amp;amp; repeat(')',count(distinct [Memories Beg CFY Status]))&lt;/EM&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; line-height: 1.5em; color: #800080;"&gt;.&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt; line-height: 1.5em;"&gt;.. which renders:&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt; line-height: 1.5em;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if( [Memories Beg CFY Status]='Lapsed Donor',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lapsed Donor"}&amp;gt;} [Memories Id]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;if( [Memories Beg CFY Status]='Lybunt - 1st Time',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lybunt - 1st Time"}&amp;gt;} [Memories Id]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;if( [Memories Beg CFY Status]='Lybunt',count(DISTINCT{&amp;lt;[Memories Current Status]={"Lybunt"}&amp;gt;} [Memories Id]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="font-size: 8pt; color: #0000ff;"&gt;if( [Memories Beg CFY Status]='Non-Donor',count(DISTINCT{&amp;lt;[Memories Current Status]={"Non-Donor"}&amp;gt;} [Memories Id]),&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;if( [Memories Beg CFY Status]='Sybunt',count(DISTINCT{&amp;lt;[Memories Current Status]={"Sybunt"}&amp;gt;} [Memories Id]))))))&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;OR by using a 'data-island' approach that you suggested&lt;/DIV&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;--- However, in either case, &lt;SPAN style="color: #800080;"&gt;the formulas doesn't render values&lt;/SPAN&gt;... whereas hard-coded expressions do.&amp;nbsp; In other words, &lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;if I use the &lt;SPAN style="color: #800080;"&gt;formula above&lt;/SPAN&gt;, no values show... if I use the &lt;SPAN style="color: #3366ff;"&gt;hard-coded text (the blue above)&amp;nbsp; &lt;/SPAN&gt;then values do render...&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;&lt;/P&gt;&lt;P style="font-size: 13.6000003814697px;"&gt;Jarrell&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 15:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724056#M259790</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2014-10-15T15:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724057#M259791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you just simply paste the purple text in the chart expression? Because that won't work. You need to use dollar sign expansion so that the rendered formula is actually evaluated in qlik.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To practice with this add two text objects to QV,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One with the formula:&amp;nbsp; ='=tod'&amp;amp;'ay()'&lt;/P&gt;&lt;P&gt;This one will just show "=today()" in the text object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next, add a text object with the fomula: =$(='&amp;nbsp;&amp;nbsp;&amp;nbsp; =tod'&amp;amp;'ay()&amp;nbsp;&amp;nbsp;&amp;nbsp; ')&lt;/P&gt;&lt;P&gt;Which will render: "15-10-2014"&amp;nbsp; instead of just the formula. That's because the rendered formula is evaluated by $().&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 15 Oct 2014 16:28:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724057#M259791</guid>
      <dc:creator />
      <dc:date>2014-10-15T16:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: Dimension Values in Set Analysis-followup question</title>
      <link>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724058#M259792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Jasper, thanks, the following works: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=$(=concat(distinct &lt;/P&gt;&lt;P&gt;'if( [Memories Beg CFY Status]=' &amp;amp; chr(39) &amp;amp;&amp;nbsp; [Memories Beg CFY Status] &amp;amp; chr(39) &amp;amp; ',count(DISTINCT{$&amp;lt;[Memories Current Status]={"' &amp;amp; [Memories Beg CFY Status] &amp;amp; '"}&amp;gt;} [Memories Id])',&lt;/P&gt;&lt;P&gt; ',') &amp;amp; ',count(DISTINCT [Memories Id])' &amp;amp; repeat(')',count(distinct {$&amp;lt;[Memories Current Status]=-{"Current Donor"}&amp;gt;} [Memories Current Status])))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Oct 2014 11:28:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Dimension-Values-in-Set-Analysis-followup-question/m-p/724058#M259792</guid>
      <dc:creator>jrdunson</dc:creator>
      <dc:date>2014-10-16T11:28:05Z</dc:date>
    </item>
  </channel>
</rss>

