<?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: Use of Variable in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Use-of-Variable/m-p/1096656#M18421</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot sir!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 08 Mar 2016 17:18:14 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2016-03-08T17:18:14Z</dc:date>
    <item>
      <title>Use of Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Use-of-Variable/m-p/1096654#M18419</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello All&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly help me in the below logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created something not sure it is correct or not.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the difference between Today Date and First day of the Month is Less than 6 than it picks the Last day of the previous month else Today date. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Formula I wrote is: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_value = IF((TODAY() - MONTHSTART(TODAY()))&amp;lt;6, DATE(MONTHSTART(TODAY())-1), TODAY())&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need the below two things as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. received_date &amp;gt;= &lt;SPAN style="font-size: 13.3333px;"&gt;Date_value&lt;/SPAN&gt; - 3 &lt;/P&gt;&lt;P&gt;2. &lt;SPAN style="font-size: 13.3333px;"&gt;received_date &amp;lt; &lt;SPAN style="font-size: 13.3333px;"&gt;Date_value&lt;/SPAN&gt; - 3&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest me how I can use this in set analysis &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Deepanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 06:51:30 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-of-Variable/m-p/1096654#M18419</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-05T06:51:30Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Use-of-Variable/m-p/1096655#M18420</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can create another variable, subtracting the 3 days and formatting the date same way as received_date (assuming its format is the default script format):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Date_value_threshold:&lt;/P&gt;&lt;P&gt;=Date( Date_value -3)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it's not in the default format,add a format code to Date() function:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Date( Date_value -3,'MM/DD/YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then in your expressions, maybe something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;=Sum(&lt;STRONG&gt;{&amp;lt;received_date = {"&amp;gt;=$(Date_value_threshold)"}&amp;gt;}&lt;/STRONG&gt; Value)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;resp.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333px;"&gt;=Sum(&lt;STRONG&gt;{&amp;lt;received_date = {"&amp;lt;$(Date_value_threshold)"}&amp;gt;}&lt;/STRONG&gt; Value)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Mar 2016 09:48:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-of-Variable/m-p/1096655#M18420</guid>
      <dc:creator>swuehl</dc:creator>
      <dc:date>2016-03-05T09:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: Use of Variable</title>
      <link>https://community.qlik.com/t5/App-Development/Use-of-Variable/m-p/1096656#M18421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot sir!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Deepanshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Mar 2016 17:18:14 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Use-of-Variable/m-p/1096656#M18421</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2016-03-08T17:18:14Z</dc:date>
    </item>
  </channel>
</rss>

