<?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: Comparing with a constant value in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437741#M34597</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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;users.id&lt;/SPAN&gt; = {"=Ceil(Today() - [users.last_login], 1) &amp;lt;= 30"}&amp;gt;} DISTINCT users.id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 22 Nov 2017 16:53:19 GMT</pubDate>
    <dc:creator>sunny_talwar</dc:creator>
    <dc:date>2017-11-22T16:53:19Z</dc:date>
    <item>
      <title>Comparing with a constant value</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437740#M34596</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am trying to figure out how many users have been active in a certain period of time. I can use this to find out the amount of days since their last login:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;ceil(Interval(Today()-date([users.last_login], 'DD.MM.YYYY'), 'D'), 1)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But comparing it to a constant (in this case 30, for 30 days) does not yield any results:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;count({&amp;lt; {30} = {'&amp;gt;=$(=ceil(Interval(Today()-date([users.last_login], 'DD.MM.YYYY'), 'D'), 1))'}&amp;gt;} DISTINCT users.id)&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;/P&gt;&lt;P&gt;Any suggestions on what I'm doing wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 08:59:24 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437740#M34596</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-22T08:59:24Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing with a constant value</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437741#M34597</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="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;&lt;STRONG&gt;Count({&amp;lt; &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px;"&gt;users.id&lt;/SPAN&gt; = {"=Ceil(Today() - [users.last_login], 1) &amp;lt;= 30"}&amp;gt;} DISTINCT users.id)&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2017 16:53:19 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437741#M34597</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-22T16:53:19Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing with a constant value</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437742#M34598</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunny, &lt;/P&gt;&lt;P&gt;thanks for your answer, it worked.&lt;/P&gt;&lt;P&gt;Could you just explain to me what the statement " users.id&amp;nbsp; = ..." does? &lt;BR /&gt;When and how do you have to use such terms?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 08:25:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437742#M34598</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-23T08:25:37Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing with a constant value</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437743#M34599</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;user.id =&amp;nbsp; is a boolean search where the expression only show rows where the expression results as TRUE. To see which rows are included create a straight table and add user.id as dimension and add &lt;STRONG style="font-size: 13px; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=Ceil(Today() - [users.last_login], 1) &amp;lt;= 30 &lt;/STRONG&gt;as expression.... next, make sure that you have unchecked 'Suppress Zero Values' on the presentation tab and you will see bunch of -1s and 0s against user.id.... All those places where you see -1 are the rows that are included in your expression.... 0 rows are excluded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does that make sense?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Nov 2017 23:07:58 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437743#M34599</guid>
      <dc:creator>sunny_talwar</dc:creator>
      <dc:date>2017-11-23T23:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: Comparing with a constant value</title>
      <link>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437744#M34600</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It does, thanks for the explanation and the help in general!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2017 09:55:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Comparing-with-a-constant-value/m-p/1437744#M34600</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-11-28T09:55:03Z</dc:date>
    </item>
  </channel>
</rss>

