<?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: Feasibility of use of set analysis in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132199#M372111</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vDatevar = &lt;STRONG&gt;NUM&lt;/STRONG&gt;(the date you want to compare with)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT {&amp;lt;OrderID = {'=&lt;STRONG&gt;NUM&lt;/STRONG&gt;([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Required Comp Date&lt;/SPAN&gt;]+[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;No.of Days&lt;/SPAN&gt;])&amp;lt;$(vDatevar)'}&amp;gt;} OrderID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of comparing dates compare the numeric values of the dates, it's much more efficient and hassle free to make the formatting right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 23 Jul 2016 20:56:35 GMT</pubDate>
    <dc:creator>vinieme12</dc:creator>
    <dc:date>2016-07-23T20:56:35Z</dc:date>
    <item>
      <title>Feasibility of use of set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132197#M372109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to count a certain number of orders based on a condition where the sum of required completion date and a certain number of days is less than a certain defined date. To be precise, the expressions is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(distinct if([Required Comp Date]+[No.of Days] &amp;lt;= Date($(x),'DD/MM/YYYY'), Orders))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Required Comp Date] and [No. of Days] are fields there in the data model.&lt;/P&gt;&lt;P&gt;Is it possible to construct this statement using set analysis ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 12:49:36 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132197#M372109</guid>
      <dc:creator />
      <dc:date>2016-07-23T12:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: Feasibility of use of set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132198#M372110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I dont know how feasible it is but is it possible for you to create a new field in Load statement for date+days like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Load col1,&lt;/P&gt;&lt;P&gt;col2,&lt;/P&gt;&lt;P&gt;col3,&lt;/P&gt;&lt;P&gt;Date([Required Comp Date], 'DD/MM/YYYY') + [No.OfDays] AS [Required Comp Date_Days]&lt;/P&gt;&lt;P&gt;FROM ..... ;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And In expression &lt;/P&gt;&lt;P&gt;Expr: &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;=count(distinct {&amp;lt; &lt;SPAN style="font-size: 13.3333px;"&gt;[Required Comp Date_Days] = &lt;/SPAN&gt; { "&amp;lt;= $(=Date(x,'DD/MM/YYYY')) " } &amp;gt;}, Orders)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if this works I might have to tweak around the set code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;BR /&gt;V.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 19:44:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132198#M372110</guid>
      <dc:creator>vishsaggi</dc:creator>
      <dc:date>2016-07-23T19:44:42Z</dc:date>
    </item>
    <item>
      <title>Re: Feasibility of use of set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132199#M372111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;vDatevar = &lt;STRONG&gt;NUM&lt;/STRONG&gt;(the date you want to compare with)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=count(DISTINCT {&amp;lt;OrderID = {'=&lt;STRONG&gt;NUM&lt;/STRONG&gt;([&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;Required Comp Date&lt;/SPAN&gt;]+[&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;No.of Days&lt;/SPAN&gt;])&amp;lt;$(vDatevar)'}&amp;gt;} OrderID)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instead of comparing dates compare the numeric values of the dates, it's much more efficient and hassle free to make the formatting right.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 20:56:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132199#M372111</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-23T20:56:35Z</dc:date>
    </item>
    <item>
      <title>Re: Feasibility of use of set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132200#M372112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think there is not need to add any formatting here. May be try just this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;=Count(DISTINCT {&amp;lt;Order = {"=&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;[Required Comp Date] + [No.of Days] &amp;lt;= x&lt;/SPAN&gt;"}&amp;gt;} Orders)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 23 Jul 2016 22:34:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132200#M372112</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2016-07-23T22:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Feasibility of use of set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132201#M372113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all for your replies !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@vishsaggi&lt;/P&gt;&lt;P&gt;That is a solution I had thought of, but creating a separate field in the data model for an expression used once or twice pushed me back.&lt;/P&gt;&lt;P&gt;I will surely delete the other duplicate thread.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;@Vineeth Pujari and Sunny T&lt;/P&gt;&lt;P&gt;Both solutions are working for me however, I am surprised to see that the expression&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count(distinct {&amp;lt;OID={"=(RCD+GP)&amp;lt;=Date('2016-08-10','DD/MM/YYYY')"}&amp;gt;} OID) &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is working even though it compares a number (&lt;EM&gt;I checked (RCD+GP) for an OID in a text object and it returned the date in number format&lt;/EM&gt;) with a date (10/08/2016).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would definitely try both to see if there is any performance difference, since I have a huge dataset. Will post an update on the same soon.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2016 03:44:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132201#M372113</guid>
      <dc:creator />
      <dc:date>2016-07-24T03:44:13Z</dc:date>
    </item>
    <item>
      <title>Re: Feasibility of use of set analysis</title>
      <link>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132202#M372114</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have a huge data set you are better off adding the additional field in the table , because simpler the expression faster your dashboard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;V&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 24 Jul 2016 11:35:07 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Feasibility-of-use-of-set-analysis/m-p/1132202#M372114</guid>
      <dc:creator>vinieme12</dc:creator>
      <dc:date>2016-07-24T11:35:07Z</dc:date>
    </item>
  </channel>
</rss>

