<?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: SET Analysis: Selecting values in an expression based on expression in another field in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155390#M918817</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Something like this;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;If(allconditionsmet, yourexpression, null())&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Respoding from phone, hence not putting the whole thing &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 May 2016 21:19:03 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2016-05-16T21:19:03Z</dc:date>
    <item>
      <title>SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155383#M918810</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a straight table with &lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;3 Dimensions:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;InitiativeName (text)&lt;BR /&gt;ProgramName (text)&lt;/P&gt;&lt;P&gt;ProgramRAG (text) - Either Red, Amber or Green&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="text-decoration: underline;"&gt;and 6 Expressions which give a count of the following :&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;# of Red Projects&lt;/P&gt;&lt;P&gt;# of Amber Projects&lt;/P&gt;&lt;P&gt;# of Green Projects&lt;/P&gt;&lt;P&gt;# of Red Tasks&lt;/P&gt;&lt;P&gt;# of Amber Tasks&lt;/P&gt;&lt;P&gt;# of Green Tasks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want my straight table to return records &lt;SPAN style="text-decoration: underline;"&gt;ONLY where the following is true&lt;/SPAN&gt;:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# of Red Projects&lt;/STRONG&gt; &amp;gt; 0 or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# of Red Tasks&lt;/STRONG&gt; &amp;gt; 0 or&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;# of Amber Tasks &lt;/STRONG&gt;&amp;gt; 0&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, if a row does not have any amber or reds in the expression counts, I want it to be suppressed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying by using set analysis to no avail:&lt;/P&gt;&lt;P&gt;=Count({1&amp;lt;GreenProjectCount=P({1&amp;lt;TaskIsRed={"&amp;gt;$(=0)"}&amp;gt;}GreenProjectCount)&amp;gt;}ProjectIsGreen)&lt;/P&gt;&lt;P&gt;In this example I tried just showing expressions for the count of green projects only on records that had red tasks.&amp;nbsp; I successfully showed only those records w/ red tasks, but my green program count comes up blank.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/124715_pastedImage_11.png" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;Been stuck on this for hours so any help would be greatly appreciated!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2020 16:16:04 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155383#M918810</guid>
      <dc:creator />
      <dc:date>2020-11-25T16:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155384#M918811</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why don't you use an if statement for all your expressions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If([# of Red Projects] &amp;gt; 0 or [# of Red Tasks] &amp;gt; 0 or [# of Amber Tasks] &amp;gt; 0, YourExpression1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;If([# of Red Projects] &amp;gt; 0 or [# of Red Tasks] &amp;gt; 0 or [# of Amber Tasks] &amp;gt; 0, YourExpression2)&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;STRONG style="font-size: 13.3333px;"&gt;...&lt;/STRONG&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and this will make all the expressions null when the condition isn't met and hence will show only those rows where the condition is met?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 20:17:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155384#M918811</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T20:17:08Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155385#M918812</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey Sunny,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried something similar to this:&lt;/P&gt;&lt;P&gt;=if((ProgramOverallStatus='Green') and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(ProjectIsRed) = 0) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(ProjectIsAmber) = 0) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(TaskIsRed) = 0) and &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(TaskIsAmber) = 0),0,1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I failed to mention that I'm trying to suppress ones that have a Program RAG of "Green" &lt;SPAN style="text-decoration: underline;"&gt;AND&lt;/SPAN&gt; all of the counts listed above are = 0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This actually works perfectly and it returned a "1" for all of the items I want to keep and a "0" for the ones I'd like to remove.&amp;nbsp; The only problem is, I can't suppress the "0" values for some reason...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just tried the code you provided above:&lt;/P&gt;&lt;P&gt;=If(([RED PRJ] = 0) and ([AMBER PRJ] = 0) and ([RED MILESTONE] = 0) and ([AMBER MILESTONE] = 0), [GREEN PRJ], Null())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and I'm getting an "errors in expression" message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the quick response by the way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Julian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 20:33:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155385#M918812</guid>
      <dc:creator />
      <dc:date>2016-05-16T20:33:51Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155386#M918813</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How about using your current expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;=If((ProgramOverallStatus='Green') and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(ProjectIsRed) = 0) and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(ProjectIsAmber) = 0) and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(TaskIsRed) = 0) and&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; (Count(TaskIsAmber) = 0), &lt;SPAN style="color: #ff0000;"&gt;Null()&lt;/SPAN&gt;, 1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 20:36:52 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155386#M918813</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T20:36:52Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155387#M918814</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That worked..&amp;nbsp; Now how do I suppress the nulls in the expression?&amp;nbsp; I went to presentation and put suppress zero values and suppress missing but those records still appear..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 20:40:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155387#M918814</guid>
      <dc:creator />
      <dc:date>2016-05-16T20:40:24Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155388#M918815</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Are you sure that you have added this if statement to all your expressions (no hidden expressions left)? Because this should have removed all the rows with null values across.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 20:45:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155388#M918815</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T20:45:51Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155389#M918816</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I didn't realize I needed to add this to each of my expressions..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So if my Expression for # of red projects is:&lt;/P&gt;&lt;P&gt;Count(DISTINCT ProjectIsRed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how do I combine that with your code?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 20:54:18 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155389#M918816</guid>
      <dc:creator />
      <dc:date>2016-05-16T20:54:18Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155390#M918817</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P class=""&gt;Something like this;&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;If(allconditionsmet, yourexpression, null())&lt;/P&gt;&lt;P class=""&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P class=""&gt;Respoding from phone, hence not putting the whole thing &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 21:19:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155390#M918817</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T21:19:03Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155391#M918818</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, that worked.. thanks!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing is my counts look a little off but I think that's because of the underlying fields/data.. I'll have to verify but I think it's good.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 21:20:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155391#M918818</guid>
      <dc:creator />
      <dc:date>2016-05-16T21:20:34Z</dc:date>
    </item>
    <item>
      <title>Re: SET Analysis: Selecting values in an expression based on expression in another field</title>
      <link>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155392#M918819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Count meaning the totals? You can fix those using sum(aggr(...)):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sum(Aggr(theNewExpressionUsingtheIfStatement, YourTableDimension))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 May 2016 21:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/SET-Analysis-Selecting-values-in-an-expression-based-on/m-p/1155392#M918819</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-05-16T21:55:34Z</dc:date>
    </item>
  </channel>
</rss>

