<?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: Counting Distinct Cases with a Set Analysis of Counting differing fields less than or equal to in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Counting-Distinct-Cases-with-a-Set-Analysis-of-Counting/m-p/1687322#M450454</link>
    <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;CaseID = {"=Count(DISTINCT WorkDate) = 1"}&amp;gt;} CaseID)&lt;/LI-CODE&gt;</description>
    <pubDate>Tue, 24 Mar 2020 14:04:46 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2020-03-24T14:04:46Z</dc:date>
    <item>
      <title>Counting Distinct Cases with a Set Analysis of Counting differing fields less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Distinct-Cases-with-a-Set-Analysis-of-Counting/m-p/1687318#M450453</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Firstly thanks for all the great help and support in this group.&lt;/P&gt;&lt;TABLE width="384"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;CaseID&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="95.5px"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;WO&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="96px"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;WO_LI&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;TD width="96px"&gt;&lt;FONT color="#000080"&gt;&lt;STRONG&gt;WorkDate&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0113502199&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-00788684&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02394738&lt;/TD&gt;&lt;TD width="96px"&gt;16.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114682262&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01172008&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02394775&lt;/TD&gt;&lt;TD width="96px"&gt;14.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114682262&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01172008&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02394776&lt;/TD&gt;&lt;TD width="96px"&gt;13.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114704373&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01180372&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02320567&lt;/TD&gt;&lt;TD width="96px"&gt;06.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114704373&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01180372&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02320568&lt;/TD&gt;&lt;TD width="96px"&gt;06.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114755958&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01197485&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02375006&lt;/TD&gt;&lt;TD width="96px"&gt;15.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114755958&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01197485&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02375008&lt;/TD&gt;&lt;TD width="96px"&gt;15.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114757407&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01198052&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02404118&lt;/TD&gt;&lt;TD width="96px"&gt;19.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114775610&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01207778&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02394789&lt;/TD&gt;&lt;TD width="96px"&gt;15.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114825110&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01229772&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02419773&lt;/TD&gt;&lt;TD width="96px"&gt;22.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114825110&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01230882&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02426943&lt;/TD&gt;&lt;TD width="96px"&gt;23.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114825110&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01230963&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02422718&lt;/TD&gt;&lt;TD width="96px"&gt;23.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD width="95.5px"&gt;0114825110&lt;/TD&gt;&lt;TD width="95.5px"&gt;WO-01230963&lt;/TD&gt;&lt;TD width="96px"&gt;WL-02426411&lt;/TD&gt;&lt;TD width="96px"&gt;23.01.2020&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Problem Domain&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have Cases with have 1 to many Work orders which in turn have 1 to Many Work Order Lines&lt;/P&gt;&lt;P&gt;There may be multiple engineer visits on a Work Order Line. The challenge is to count all Distinct Cases where there have been one or less days of work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The above data would thus resolve to 7 Distinct Cases and 5 of them where 1 or less work days are evident. So Case&amp;nbsp;&amp;nbsp;0114682262 would not be counted as work took place over 2 days, the 13th and 14th but&amp;nbsp;&amp;nbsp;0114704373 would be counted as all work was completed in one calendar day.&lt;/P&gt;&lt;P&gt;So how do I write an expression with Set Analysis to count distinct cases for 1 or less work days.&lt;/P&gt;&lt;P&gt;The solution will be used in a Straight Table and a Text field.&lt;/P&gt;&lt;P&gt;Many Thanks&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Claire&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 13:57:21 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Distinct-Cases-with-a-Set-Analysis-of-Counting/m-p/1687318#M450453</guid>
      <dc:creator>clairep1962</dc:creator>
      <dc:date>2020-03-24T13:57:21Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Distinct Cases with a Set Analysis of Counting differing fields less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Distinct-Cases-with-a-Set-Analysis-of-Counting/m-p/1687322#M450454</link>
      <description>&lt;P&gt;Try this&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Count(DISTINCT {&amp;lt;CaseID = {"=Count(DISTINCT WorkDate) = 1"}&amp;gt;} CaseID)&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 24 Mar 2020 14:04:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Distinct-Cases-with-a-Set-Analysis-of-Counting/m-p/1687322#M450454</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2020-03-24T14:04:46Z</dc:date>
    </item>
    <item>
      <title>Re: Counting Distinct Cases with a Set Analysis of Counting differing fields less than or equal to</title>
      <link>https://community.qlik.com/t5/QlikView/Counting-Distinct-Cases-with-a-Set-Analysis-of-Counting/m-p/1687327#M450455</link>
      <description>&lt;P&gt;Thank you that worked perfectly. Hope you are safe and well in these challenging times.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Claire x&lt;/P&gt;</description>
      <pubDate>Tue, 24 Mar 2020 14:16:54 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Counting-Distinct-Cases-with-a-Set-Analysis-of-Counting/m-p/1687327#M450455</guid>
      <dc:creator>clairep1962</dc:creator>
      <dc:date>2020-03-24T14:16:54Z</dc:date>
    </item>
  </channel>
</rss>

