<?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 Generating conditional list of outputs in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407743#M487455</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 releatively new to QlikView and have 2 questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) I was wondering how to write an expression that generates an output list conditional on certain fields being either available or unavailable in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I need to generate an output list for today's date (01/07/2013)&amp;nbsp; for any requests (sample below) that do not have a visit date within 3 day of the request date AND do have both a processing date and an appointment date BUT do not have a completed date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today - 01/07/2013&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request #1 - AAA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Request date - 01/01/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Processing date - 01/01/2013&lt;/P&gt;&lt;P&gt;Appointment date - no data&lt;/P&gt;&lt;P&gt;Visit date - no data&lt;/P&gt;&lt;P&gt;Complete date - no data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request #2 - BBB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Request date - 01/01/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Processing date - 01/01/2013&lt;/P&gt;&lt;P&gt;Appointment date - 01/02/2013 &lt;/P&gt;&lt;P&gt;Visit date - no data&lt;/P&gt;&lt;P&gt;Complete date - 01/07/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request #3 - CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Request date - 01/01/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Processing date - 01/01/2013&lt;/P&gt;&lt;P&gt;Appointment date - 01/02/2013 &lt;/P&gt;&lt;P&gt;Visit date - no data&lt;/P&gt;&lt;P&gt;Complete date - no data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, the only output in the list should be Request #3 - CCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) In additon, I need to generate a "missing data" rate for any requests completed on today's date but that are missing dates for the appointment date and visit date.&amp;nbsp; In this case, the missing data rate should be 100% because the only request completed on 01/07/2013 is missing a visit date.&amp;nbsp; The expression i am currently using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Dimension is Complete Date ....&amp;nbsp; =(count(if(Appointment Date]=null() or Visit Date = null(),[Request #],null()))/count([Request #]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 05 Feb 2013 22:25:14 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-02-05T22:25:14Z</dc:date>
    <item>
      <title>Generating conditional list of outputs</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407743#M487455</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 releatively new to QlikView and have 2 questions:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(1) I was wondering how to write an expression that generates an output list conditional on certain fields being either available or unavailable in the data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example, I need to generate an output list for today's date (01/07/2013)&amp;nbsp; for any requests (sample below) that do not have a visit date within 3 day of the request date AND do have both a processing date and an appointment date BUT do not have a completed date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Today - 01/07/2013&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request #1 - AAA&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Request date - 01/01/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Processing date - 01/01/2013&lt;/P&gt;&lt;P&gt;Appointment date - no data&lt;/P&gt;&lt;P&gt;Visit date - no data&lt;/P&gt;&lt;P&gt;Complete date - no data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request #2 - BBB&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Request date - 01/01/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Processing date - 01/01/2013&lt;/P&gt;&lt;P&gt;Appointment date - 01/02/2013 &lt;/P&gt;&lt;P&gt;Visit date - no data&lt;/P&gt;&lt;P&gt;Complete date - 01/07/2013&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Request #3 - CCC&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Request date - 01/01/2013&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Processing date - 01/01/2013&lt;/P&gt;&lt;P&gt;Appointment date - 01/02/2013 &lt;/P&gt;&lt;P&gt;Visit date - no data&lt;/P&gt;&lt;P&gt;Complete date - no data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In this example, the only output in the list should be Request #3 - CCC.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(2) In additon, I need to generate a "missing data" rate for any requests completed on today's date but that are missing dates for the appointment date and visit date.&amp;nbsp; In this case, the missing data rate should be 100% because the only request completed on 01/07/2013 is missing a visit date.&amp;nbsp; The expression i am currently using is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where Dimension is Complete Date ....&amp;nbsp; =(count(if(Appointment Date]=null() or Visit Date = null(),[Request #],null()))/count([Request #]))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 22:25:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407743#M487455</guid>
      <dc:creator />
      <dc:date>2013-02-05T22:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional list of outputs</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407744#M487456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following your logic for #1, wouldn't both Request 1 and Request 3 be shown? I don't have time today to look at #2, but take a look at the attached sheet and see if it gets you any closer. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 05 Feb 2013 23:07:59 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407744#M487456</guid>
      <dc:creator />
      <dc:date>2013-02-05T23:07:59Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional list of outputs</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407745#M487457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rebecca,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your swift response!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've been trying to work with the sheet you attached and am still having trouble.&amp;nbsp; Also, I may have not been as clear as I would have liked in the instructions...Request 1 should not be shown because it did not have an appointment date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My primary confusions surrounds what this part of the fuction is supposed to do:&lt;/P&gt;&lt;P&gt;(VisitDate&amp;gt;(RequestDate+3) or VisitDate&amp;lt;(RequestDate+3) or IsNull(RequestDate))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried to iterate on your expression, and this got me a little closer to the answer, but i'm still scrambling a bit! &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&amp;nbsp; On change I made is to make the look-up date for the data the Request Date (01/01/2013) rather than Today (01/07/2013):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=if([Request Date]+3) &lt;/P&gt;&lt;P&gt;and &lt;/P&gt;&lt;P&gt;(IsNull[Visit Date])&amp;nbsp; &lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;([Processing Date]&amp;lt;&amp;gt;0 or [Processing Date]&amp;lt;&amp;gt;'')&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;([Appointment Date]&amp;lt;&amp;gt;0 or [Appointment Date]&amp;lt;&amp;gt;'')&lt;/P&gt;&lt;P&gt;and&lt;/P&gt;&lt;P&gt;(IsNull [Complete Date]=-1 or [Complete Date]=''),1)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks again,&amp;nbsp; Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 17:38:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407745#M487457</guid>
      <dc:creator />
      <dc:date>2013-02-06T17:38:46Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional list of outputs</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407746#M487458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ah, I see.&amp;nbsp; Take a look at the attached document.&amp;nbsp; Item #3 is the only one shown.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 18:05:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407746#M487458</guid>
      <dc:creator />
      <dc:date>2013-02-06T18:05:11Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional list of outputs</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407747#M487459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I finally got some time to play around with your second request.&amp;nbsp; See if this is what you had in mind for the missing data percentage.&amp;nbsp; Hope it helps!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 Feb 2013 21:26:11 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407747#M487459</guid>
      <dc:creator />
      <dc:date>2013-02-06T21:26:11Z</dc:date>
    </item>
    <item>
      <title>Re: Generating conditional list of outputs</title>
      <link>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407748#M487460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the help, Rebecca!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Feb 2013 22:23:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Generating-conditional-list-of-outputs/m-p/407748#M487460</guid>
      <dc:creator />
      <dc:date>2013-02-18T22:23:54Z</dc:date>
    </item>
  </channel>
</rss>

