<?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: Only show if both Values are Present in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123277#M509915</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite sure if I understand your requirement correctly, maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Median({$&amp;lt;&lt;/P&gt;&lt;P&gt;DEFECT_ID = p({&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt;})*p({&amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;})&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;Aggr(Max({$&amp;lt;&lt;/P&gt;&lt;P&gt;PROCESS_STEP = {'Submitted to ART','Submitted to Routing'}, DEFECT_ID = p({&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt;})*p({&amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;})&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;PROCESS_STEP_START_DATE) -&lt;/P&gt;&lt;P&gt;Min({$&amp;lt;&lt;/P&gt;&lt;P&gt;PROCESS_STEP = {'Submitted to ART','Submitted to Routing'}, DEFECT_ID = p({&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt;})*p({&amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;})&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;PROCESS_STEP_START_DATE)&lt;/P&gt;&lt;P&gt;, DEFECT_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you seem to use the expression in a chart context with a calculated Year / Month, so you might need to create a field in your script for that and add this to your aggr() dimensions.&lt;/P&gt;&lt;P&gt;Or if you need to check if both values are present for the combination of defect ID and YearMonth, you need to create a combined key field in the script to use in the set expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2018 21:50:42 GMT</pubDate>
    <dc:creator>swuehl</dc:creator>
    <dc:date>2018-09-12T21:50:42Z</dc:date>
    <item>
      <title>Only show if both Values are Present</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123274#M509912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My chart should only show Median days and # of tickets for those where DEFECT_ID went to &lt;STRONG&gt;both&lt;/STRONG&gt; the "Submitted to APT" and "Submitted to Routing" Steps. I see a lot of tickets that went through "Submitted to Routing" but NOT&amp;nbsp; "Submitted to APT".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I need to modify the expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Median Days:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Median&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Submitted to ART','Submitted to Routing'}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Submitted to ART','Submitted to Routing'}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) -&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Submitted to ART','Submitted to Routing'}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;# Tickets: &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;&lt;STRONG&gt;(&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Count&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Submitted to ART','Submitted to Routing'}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;} &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;DISTINCT&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;/SPAN&gt;&lt;STRONG style=": ; color: #ff8000; font-size: 8pt; text-decoration: underline;"&gt;)&lt;/STRONG&gt;&lt;SPAN style="font-size: 8pt;"&gt;&lt;BR /&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:05:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123274#M509912</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2018-09-12T21:05:58Z</dc:date>
    </item>
    <item>
      <title>Re: Only show if both Values are Present</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123275#M509913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think you need the intersection of the steps searched per defect id, something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Count(&lt;/P&gt;&lt;P&gt;{&amp;lt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DEFECT_ID = &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; p({&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt;})*p({&amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;})&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;DISTINCT DEFECT_ID)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:14:12 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123275#M509913</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-12T21:14:12Z</dc:date>
    </item>
    <item>
      <title>Re: Only show if both Values are Present</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123276#M509914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks. How would I apply that here?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Median Days:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;=&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Median&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Submitted to ART','Submitted to Routing'}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Aggr&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Max&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Submitted to ART','Submitted to Routing'}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) -&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;Min&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;({$&amp;lt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {'Submitted to ART','Submitted to Routing'}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; &amp;gt;}&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;PROCESS_STEP_START_DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)&lt;BR /&gt; , &lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DEFECT_ID&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;)) &lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:40:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123276#M509914</guid>
      <dc:creator>cbaqir</dc:creator>
      <dc:date>2018-09-12T21:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: Only show if both Values are Present</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123277#M509915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not quite sure if I understand your requirement correctly, maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Median({$&amp;lt;&lt;/P&gt;&lt;P&gt;DEFECT_ID = p({&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt;})*p({&amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;})&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;Aggr(Max({$&amp;lt;&lt;/P&gt;&lt;P&gt;PROCESS_STEP = {'Submitted to ART','Submitted to Routing'}, DEFECT_ID = p({&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt;})*p({&amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;})&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;PROCESS_STEP_START_DATE) -&lt;/P&gt;&lt;P&gt;Min({$&amp;lt;&lt;/P&gt;&lt;P&gt;PROCESS_STEP = {'Submitted to ART','Submitted to Routing'}, DEFECT_ID = p({&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt;})*p({&amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;})&lt;/P&gt;&lt;P&gt;&amp;gt;}&lt;/P&gt;&lt;P&gt;PROCESS_STEP_START_DATE)&lt;/P&gt;&lt;P&gt;, DEFECT_ID))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But you seem to use the expression in a chart context with a calculated Year / Month, so you might need to create a field in your script for that and add this to your aggr() dimensions.&lt;/P&gt;&lt;P&gt;Or if you need to check if both values are present for the combination of defect ID and YearMonth, you need to create a combined key field in the script to use in the set expression.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2018 21:50:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123277#M509915</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2018-09-12T21:50:42Z</dc:date>
    </item>
    <item>
      <title>Re: Only show if both Values are Present</title>
      <link>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123278#M509916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;May be this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Median({$&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt; * &amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;}&lt;/P&gt;&lt;P&gt;Aggr(Max({$&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt; * &amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;}PROCESS_STEP_START_DATE) -&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Min({$&amp;lt;PROCESS_STEP = {'Submitted to ART'}&amp;gt; * &amp;lt;PROCESS_STEP = {'Submitted to Routing'}&amp;gt;}PROCESS_STEP_START_DATE), DEFECT_ID))&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2018 09:26:08 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Only-show-if-both-Values-are-Present/m-p/123278#M509916</guid>
      <dc:creator>BalaBhaskar_Qlik</dc:creator>
      <dc:date>2018-09-13T09:26:08Z</dc:date>
    </item>
  </channel>
</rss>

