<?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 Set Analysis in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393456#M32164</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below function which calculate the number of days till yesterday for the selections made in the filter for Year and month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are no selections; it gives the number of days till yesterday during this month. For example today is 19th of october then this function will give 18. (the first line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where there is a selection; let say year 2017; it will give the number of days during the year till yesterday. and viceversa. (second line). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have upgraded our system from 3.1 to september 2017 (b/c of some bugs to cover). Now the below function is giving '0' for all selections. please help to rectify. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(getselectedcount([Year])&amp;lt;1 and getselectedcount([Month Year])&amp;lt;1, &lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date] = {"&amp;lt;=$(=Today()-1)"},[Year]=,[Month Year]=,[MonthID]= {"$(=((Year(Today()) -1)*12) + Num(Month(Today())))"}&amp;gt;} [Date])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date] = {"&amp;lt;=$(=Today()-1)"}&amp;gt;} [Date])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 19 Oct 2017 07:07:32 GMT</pubDate>
    <dc:creator>madnanansari</dc:creator>
    <dc:date>2017-10-19T07:07:32Z</dc:date>
    <item>
      <title>Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393456#M32164</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have the below function which calculate the number of days till yesterday for the selections made in the filter for Year and month. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there are no selections; it gives the number of days till yesterday during this month. For example today is 19th of october then this function will give 18. (the first line).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where there is a selection; let say year 2017; it will give the number of days during the year till yesterday. and viceversa. (second line). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We have upgraded our system from 3.1 to september 2017 (b/c of some bugs to cover). Now the below function is giving '0' for all selections. please help to rectify. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(getselectedcount([Year])&amp;lt;1 and getselectedcount([Month Year])&amp;lt;1, &lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date] = {"&amp;lt;=$(=Today()-1)"},[Year]=,[Month Year]=,[MonthID]= {"$(=((Year(Today()) -1)*12) + Num(Month(Today())))"}&amp;gt;} [Date])&lt;/P&gt;&lt;P&gt;,&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date] = {"&amp;lt;=$(=Today()-1)"}&amp;gt;} [Date])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 07:07:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393456#M32164</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-19T07:07:32Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393457#M32165</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammad,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Probably the &lt;STRONG&gt;Date&lt;/STRONG&gt; field format has been messed up with the upgrade. What's the Date field format? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sorin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 07:20:44 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393457#M32165</guid>
      <dc:creator>isorinrusu</dc:creator>
      <dc:date>2017-10-19T07:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393458#M32166</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Date is collected from the QVD file by the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Floor(SOH_DATE) as [Date],&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 07:28:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393458#M32166</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-19T07:28:53Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393459#M32167</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try to change it to Date(Floor(SOH_DATE) as Date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The floor function delivers an integer (for example 41382).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or maybe &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sorin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 07:38:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393459#M32167</guid>
      <dc:creator>isorinrusu</dc:creator>
      <dc:date>2017-10-19T07:38:28Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393460#M32168</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i tried. it also bring '0'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 07:39:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393460#M32168</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-19T07:39:19Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393461#M32169</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;try this&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #3d3d3d; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;If(getselectedcount([Year])&amp;lt;1 and getselectedcount([Month Year])&amp;lt;1, &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Today() - MonthStart(Today())-1&lt;/STRONG&gt;,&lt;/SPAN&gt;Today() - YearStart(Makedate(Year))-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pradosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 07:53:42 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393461#M32169</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-19T07:53:42Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393462#M32170</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this will not work in case if i select multiple years&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 08:10:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393462#M32170</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-19T08:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393463#M32171</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use min(year) instead&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-size: 12px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d; background-color: #f2f2f2;"&gt;&lt;STRONG style="font-style: inherit; font-size: 13px;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit;"&gt;If(getselectedcount([Year])&amp;lt;1 and getselectedcount([Month Year])&amp;lt;1, &lt;STRONG style="font-style: inherit;"&gt;Today() - MonthStart(Today())-1&lt;/STRONG&gt;,&lt;/SPAN&gt;Today() - YearStart(Makedate(min(Year)))-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px;"&gt;&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Pradosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 08:19:47 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393463#M32171</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-19T08:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393464#M32172</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this will not work in case if i select month only instead of year&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:31:38 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393464#M32172</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-19T09:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393465#M32173</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;your expression was working for month selection too?&lt;/P&gt;&lt;P&gt;may be this &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;If(getselectedcount([Year])&amp;lt;1 and getselectedcount([Month Year])&amp;lt;1 or&amp;nbsp; count(p(Month))=1, &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;Today() - MonthStart(Today())-1&lt;/STRONG&gt;,&lt;/SPAN&gt;Today() - YearStart(Makedate(min(Year)))-1)&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:38:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393465#M32173</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-19T09:38:25Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393466#M32174</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it works for lot of things....that's why i dont like to change the formula....i just need correction in the formula&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:41:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393466#M32174</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-19T09:41:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393467#M32175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;this is the actual formula:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If(getselectedcount([Year])&amp;lt;1 and getselectedcount([Half Year])&amp;lt;1 and getselectedcount([Year Quarter])&amp;lt;1 and getselectedcount([Month Year])&amp;lt;1 and getselectedcount([Hijri Year])&amp;lt;1 and getselectedcount([Hijri Month Year])&amp;lt;1, &lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date] = {"&amp;lt;=$(=Today()-1)"},[Hijri Year]=,[Hijri Month Year]=,[Year]=,[Half Year]=,[Year Quarter]=,[YearMonth No]=,[Month No]=,[Month Year]=,[Month]=,[MonthID]= {"$(=((Year(Today()) -1)*12) + Num(Month(Today())))"}&amp;gt;} [Date]),&lt;/P&gt;&lt;P&gt;Count({$&amp;lt;[Date] = {"&amp;lt;=$(=Today()-1)"}&amp;gt;} [Date])&lt;/P&gt;&lt;P&gt;)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 09:45:39 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393467#M32175</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-19T09:45:39Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393468#M32176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;try this once &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;/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(getselectedcount([Year])&amp;lt;1 and getselectedcount([Half Year])&amp;lt;1 and getselectedcount([Year Quarter])&amp;lt;1 and getselectedcount([Month Year])&amp;lt;1 and getselectedcount([Hijri Year])&amp;lt;1 and getselectedcount([Hijri Month Year])&amp;lt;1,&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;Count({$&amp;lt;[Date] = {"&amp;lt;=$(=Today()-1)"},[Hijri Year]=,[Hijri Month Year]=,[Year]=,[Half Year]=,[Year Quarter]=,[YearMonth No]=,[Month No]=,[Month Year]=,[Month]=,[MonthID]= {"$(=((Year(Today()) -1)*12) + Num(Month(Today())))"}&amp;gt;} [Date]),&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 style="color: #3d3d3d; font-size: 13.3333px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;count({1&amp;lt;Date={"&amp;gt;= $(=min([Date])) &amp;lt;= $(=today()-1)"}&amp;gt;}[Date[))&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;)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can replace the first expression of if condition simply as day(today())-1 or something similar to this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 10:47:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393468#M32176</guid>
      <dc:creator>pradosh_thakur</dc:creator>
      <dc:date>2017-10-19T10:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: Set Analysis</title>
      <link>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393469#M32177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it dont work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 13:54:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Set-Analysis/m-p/1393469#M32177</guid>
      <dc:creator>madnanansari</dc:creator>
      <dc:date>2017-10-19T13:54:22Z</dc:date>
    </item>
  </channel>
</rss>

