<?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: last 4 weeks graph in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596021#M1109509</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use 'set analisys' for this kind of problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# 1st Covert the data to integer&lt;/P&gt;&lt;P&gt;var_DateMax=num($(&lt;STRONG style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;MAX_FULL_DAY_DATA_DATE)&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# 2nd Calculate initial date&lt;/P&gt;&lt;P&gt;var_DateMin=$(var_DateMax)-28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# 3rd Use set analysys to calculate the expression&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;DATE_VALUE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;= {'&amp;gt;=$(var_DateMin)&amp;lt;=$(var_DateMax)'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Frequency&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ferran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 19 Mar 2014 17:35:06 GMT</pubDate>
    <dc:creator>Ferran_Garcia_Pagans</dc:creator>
    <dc:date>2014-03-19T17:35:06Z</dc:date>
    <item>
      <title>last 4 weeks graph</title>
      <link>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596018#M1109499</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; I want to create a bar chart which calculate frequency within last 4 weeks.&lt;/P&gt;&lt;P&gt;I have a variable "MAX_FULL_DAY_DATA_DATE" which stores the maximum date and the format is date-time&lt;/P&gt;&lt;P&gt;here is my calculation, but the graph doesn't show anything:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;=sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #0000ff;"&gt;if&lt;/SPAN&gt; (&lt;SPAN style="color: #800000;"&gt;DATE_VALUE&lt;/SPAN&gt; &amp;lt;= &lt;SPAN style="color: #0000ff;"&gt;date&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(MAX_FULL_DAY_DATA_DATE)&lt;/EM&gt;&lt;/STRONG&gt;,'mm,dd YYY') &lt;SPAN style="color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="color: #800000;"&gt;DATE_VALUE&lt;/SPAN&gt; &amp;gt;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;date&lt;/SPAN&gt;(&lt;STRONG&gt;&lt;EM style=": ; color: #808080;"&gt;$(MAX_FULL_DAY_DATA_DATE)&lt;/EM&gt;&lt;/STRONG&gt;-28,'mm,dd YYY'), Frequency)) &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Can you please help?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;Nasim&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:30:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596018#M1109499</guid>
      <dc:creator />
      <dc:date>2014-03-19T16:30:06Z</dc:date>
    </item>
    <item>
      <title>Re: last 4 weeks graph</title>
      <link>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596019#M1109505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try you this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; 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; color: #0000ff;"&gt;if&lt;/SPAN&gt; (num(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;DATE_VALUE)&lt;/SPAN&gt; &amp;lt;= &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;num&lt;/SPAN&gt;(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(MAX_FULL_DAY_DATA_DATE)&lt;/EM&gt;&lt;/STRONG&gt;) &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;AND&lt;/SPAN&gt; num(&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;DATE_VALUE)&lt;/SPAN&gt; &amp;gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;num&lt;/SPAN&gt;(&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(MAX_FULL_DAY_DATA_DATE)&lt;/EM&gt;&lt;/STRONG&gt;) - 28, Frequency))&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:39:02 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596019#M1109505</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2014-03-19T16:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: last 4 weeks graph</title>
      <link>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596020#M1109507</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;Write some thing like below but i suggest change the date format of variable in variable part like '&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;mm,dd YYY' and you use here only&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;=sum(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; 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; color: #0000ff;"&gt;if&lt;/SPAN&gt; (&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;DATE_VALUE&lt;/SPAN&gt; &amp;lt;= &lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(MAX_FULL_DAY_DATA_DATE)&lt;/EM&gt;&lt;/STRONG&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #0000ff;"&gt;AND&lt;/SPAN&gt; &lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;DATE_VALUE&lt;/SPAN&gt; &amp;gt; (&lt;STRONG style="font-style: inherit; font-family: inherit;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;$(MAX_FULL_DAY_DATA_DATE)&lt;/EM&gt;&lt;/STRONG&gt;-28), Frequency))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Hope this helps&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; color: #3d3d3d;"&gt;Thanks &amp;amp; Regards&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 16:40:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596020#M1109507</guid>
      <dc:creator>its_anandrjs</dc:creator>
      <dc:date>2014-03-19T16:40:37Z</dc:date>
    </item>
    <item>
      <title>Re: last 4 weeks graph</title>
      <link>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596021#M1109509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I use 'set analisys' for this kind of problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# 1st Covert the data to integer&lt;/P&gt;&lt;P&gt;var_DateMax=num($(&lt;STRONG style="font-style: inherit; font-family: inherit; color: #3d3d3d;"&gt;&lt;EM style="font-weight: inherit; font-family: inherit; color: #808080;"&gt;MAX_FULL_DAY_DATA_DATE)&lt;/EM&gt;&lt;/STRONG&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# 2nd Calculate initial date&lt;/P&gt;&lt;P&gt;var_DateMin=$(var_DateMax)-28&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;# 3rd Use set analysys to calculate the expression&lt;/P&gt;&lt;P&gt;sum({$&amp;lt;&lt;SPAN style="font-weight: inherit; font-style: inherit; font-family: inherit; color: #800000;"&gt;DATE_VALUE&lt;/SPAN&gt;&lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt; &lt;/SPAN&gt;= {'&amp;gt;=$(var_DateMin)&amp;lt;=$(var_DateMax)'}&amp;gt;} &lt;SPAN style="color: #3d3d3d; font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;Frequency&lt;/SPAN&gt;)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ferran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 17:35:06 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596021#M1109509</guid>
      <dc:creator>Ferran_Garcia_Pagans</dc:creator>
      <dc:date>2014-03-19T17:35:06Z</dc:date>
    </item>
    <item>
      <title>Re: last 4 weeks graph</title>
      <link>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596022#M1109511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks all,&lt;/P&gt;&lt;P&gt;Unfortunately, none of them are working. when I put any condition on Date_Value, I got an error.&lt;/P&gt;&lt;P&gt;the Date_Value has a date format.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2014 19:50:56 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/last-4-weeks-graph/m-p/596022#M1109511</guid>
      <dc:creator />
      <dc:date>2014-03-19T19:50:56Z</dc:date>
    </item>
  </channel>
</rss>

