<?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: Flags or variables? in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560484#M482547</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, that can be possible when we use a variable and store the current max date value. By using this variable in our expression, we can solve the probelm. Please see the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 06 Aug 2013 10:30:03 GMT</pubDate>
    <dc:creator />
    <dc:date>2013-08-06T10:30:03Z</dc:date>
    <item>
      <title>Flags or variables?</title>
      <link>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560479#M482542</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need some help and am not sure if I shall use flags or some other practical solution exists. Either ways, I need your advice teaching me how to do it please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to see most recent 3 days' sales in product breakdown and additionally, I would like to see the same for 7 days earlier. I may need to have most recent 3 days and -7 days adjusted based on my selections (or might not need, am not sure yet).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is what I would like to do with QlikView :&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Untitled.png" class="jive-image" src="https://community.qlik.com/legacyfs/online/44985_Untitled.png" /&gt;&lt;/P&gt;&lt;P style="padding-left: 30px;"&gt;&lt;IMG class="jiveImage" src="https://community.qlik.com/message/375936/" style="max-width: 1200px; max-height: 900px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Attached is the qvw file for your easy reference. (table is in the inline script, no tab elements)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any advice would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;piroglu1907&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 04:38:05 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560479#M482542</guid>
      <dc:creator />
      <dc:date>2013-08-06T04:38:05Z</dc:date>
    </item>
    <item>
      <title>Re: Flags or variables?</title>
      <link>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560480#M482543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Have a look at the attached file.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kaushi Solanki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 05:02:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560480#M482543</guid>
      <dc:creator>kaushiknsolanki</dc:creator>
      <dc:date>2013-08-06T05:02:31Z</dc:date>
    </item>
    <item>
      <title>Re: Flags or variables?</title>
      <link>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560481#M482544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Kaushi Solanki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your kind help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there a way that I can show only last 3 days and 7 days earlier data only? If you refer to the excel pivot table I included in my post; I would like to show only 31/7, 4/8,5/8 and 6/8 data. Additionally, can I get their averages to find out average sales?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 06:00:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560481#M482544</guid>
      <dc:creator />
      <dc:date>2013-08-06T06:00:34Z</dc:date>
    </item>
    <item>
      <title>Re: Flags or variables?</title>
      <link>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560482#M482545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the below expression:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 8pt;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Sum&lt;SPAN style="font-size: 8pt;"&gt;({&amp;lt;&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;DATE&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt; = {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(Max(DATE)-6))&amp;lt;=$(=max(DATE))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} - {&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;"&amp;gt;=$(=Date(Max(DATE)-5)) &amp;lt;=$(=Date(Max(DATE)-3))"&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;} &amp;gt;}&lt;/SPAN&gt;&lt;SPAN style="color: #800000; font-size: 8pt;"&gt;Sales&lt;/SPAN&gt;&lt;SPAN style="font-size: 8pt;"&gt;) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 09:02:27 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560482#M482545</guid>
      <dc:creator />
      <dc:date>2013-08-06T09:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: Flags or variables?</title>
      <link>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560483#M482546</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venugopal4s,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much, it solved my problem as desired.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now, how can I get the average of values pertaining to these 4 dates only?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you also teach me how I shall interpret your expression? How can I make it independent from selected dates? Just replacing $ to 1? Is this a set analysis expression?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much and have a nice day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;piroglu1907&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 09:47:28 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560483#M482546</guid>
      <dc:creator />
      <dc:date>2013-08-06T09:47:28Z</dc:date>
    </item>
    <item>
      <title>Re: Flags or variables?</title>
      <link>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560484#M482547</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think, that can be possible when we use a variable and store the current max date value. By using this variable in our expression, we can solve the probelm. Please see the attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 06 Aug 2013 10:30:03 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560484#M482547</guid>
      <dc:creator />
      <dc:date>2013-08-06T10:30:03Z</dc:date>
    </item>
    <item>
      <title>Re: Flags or variables?</title>
      <link>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560485#M482548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venugopal4s,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I now understood how you handled the independent dates; thanks so much &lt;IMG src="https://community.qlik.com/legacyfs/online/emoticons/happy.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any idea how I can get averages of these 4 records? (most recent 3 dates and also 1 week earlier)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best wishes,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 07 Aug 2013 04:04:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Flags-or-variables/m-p/560485#M482548</guid>
      <dc:creator />
      <dc:date>2013-08-07T04:04:53Z</dc:date>
    </item>
  </channel>
</rss>

