<?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: dimension previous values in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455711#M567933</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;I want to&amp;nbsp; calculated 30 days before date just you sent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;date(WeekStart(ISTEK_ACISTARIHI2&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;-7&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;),'DD.MM.YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 22 Nov 2012 07:04:01 GMT</pubDate>
    <dc:creator>QSense</dc:creator>
    <dc:date>2012-11-22T07:04:01Z</dc:date>
    <item>
      <title>dimension previous values</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455707#M567929</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My dimension is =date(WeekStart(ISTEK_ACISTARIHI2),'DD.MM.YYYY')&lt;/P&gt;&lt;P&gt;As you understand it gets startofweek &lt;/P&gt;&lt;P&gt;in my data last startweek 19.11.2012 week&lt;/P&gt;&lt;P&gt;how can I get previous week start date 12.11.2012 and previous start week dates&lt;/P&gt;&lt;P&gt;=date(Max( date(WeekStart(ISTEK_ACISTARIHI2),'DD.MM.YYYY'))) it gets last week start date&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 13:48:41 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455707#M567929</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-21T13:48:41Z</dc:date>
    </item>
    <item>
      <title>Re: dimension previous values</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455708#M567930</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Previous week start date is a start date of the week 7 days before the date:&lt;BR /&gt;date(WeekStart(ISTEK_ACISTARIHI2&lt;STRONG&gt;-7&lt;/STRONG&gt;),'DD.MM.YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or, 7 days before the start date, if you prefer so:&lt;/P&gt;&lt;P&gt;date(WeekStart(ISTEK_ACISTARIHI2)&lt;STRONG&gt;-7&lt;/STRONG&gt;,'DD.MM.YYYY')&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 13:53:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455708#M567930</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-21T13:53:35Z</dc:date>
    </item>
    <item>
      <title>Re: dimension previous values</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455709#M567931</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Michael ,&lt;/P&gt;&lt;P&gt;Thanks for reply the actual problem is that &lt;/P&gt;&lt;P&gt;=count((if(date(today(),'DD.MM.YYYY')-date(ISTEK_ACISTARIHI2,'DD.MM.YYYY')&amp;gt;=30 and ISTEK_DURUM='Açık',1))) in this expression when I calculated 30 days before today data &lt;/P&gt;&lt;P&gt;it is ok &lt;/P&gt;&lt;P&gt;but if I try to calculate for dimension you sent It gives 0 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to&amp;nbsp; calculated 30 days before date just you sent &lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;date(WeekStart(ISTEK_ACISTARIHI2&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;-7&lt;/STRONG&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;),'DD.MM.YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 14:50:53 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455709#M567931</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-21T14:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: dimension previous values</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455710#M567932</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In this case, if I got your requirements correctly tjhis time, don't change your dimension, but use this expression (you don't need to format the dates here):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;count((if(date(today()&lt;STRONG&gt;-7&lt;/STRONG&gt;)-date(ISTEK_ACISTARIHI2)&amp;gt;=30 and ISTEK_DURUM='Açık',1))) &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Nov 2012 15:04:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455710#M567932</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-21T15:04:25Z</dc:date>
    </item>
    <item>
      <title>Re: dimension previous values</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455711#M567933</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="color: #737373; font-family: Arial; background-color: #ffffff;"&gt;I want to&amp;nbsp; calculated 30 days before date just you sent&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;date(WeekStart(ISTEK_ACISTARIHI2&lt;/SPAN&gt;&lt;STRONG style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;-7&lt;/STRONG&gt;&lt;SPAN style="background-color: #ffffff; color: #737373; font-family: Arial;"&gt;),'DD.MM.YYYY')&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 07:04:01 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455711#M567933</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-22T07:04:01Z</dc:date>
    </item>
    <item>
      <title>Re: dimension previous values</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455712#M567934</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In qw file attached , İn turuncu hat istekler tab you can see my example&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 22 Nov 2012 07:09:46 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455712#M567934</guid>
      <dc:creator>QSense</dc:creator>
      <dc:date>2012-11-22T07:09:46Z</dc:date>
    </item>
    <item>
      <title>Re: dimension previous values</title>
      <link>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455713#M567935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I doubt that you have it the way you actually need.&lt;BR /&gt;From your description, I understand that you want to see, for each week, a count of items between the start of this week, and 30 days back from that point.&amp;nbsp; For example, if weekstart is Dec 26, 2012, you want to count items between Nov 27 and Dec 26.&amp;nbsp; Instead, your expression returns the count for each week if the item is within this week and older than 30 days.&amp;nbsp; As a result, you get simply weekly counts for older weeks and 0 for the most recent weeks.&lt;BR /&gt;If my assumption is correct, you need a logical data island for weeks, and use it as dimension in the chart.&amp;nbsp; If you call this field WeekStart, your expression will be&lt;BR /&gt;count(if(ISTEK_ACISTARIHI2&amp;lt;=WeekStart and ISTEK_ACISTARIHI2&amp;gt;WeekStart-30 and ISTEK_DURUM='Açık', 1)))&lt;BR /&gt;And, the "previous" will be&lt;BR /&gt;count(if(ISTEK_ACISTARIHI2&amp;lt;=WeekStart-7 and ISTEK_ACISTARIHI2&amp;lt;Weekstart-37 and ISTEK_DURUM='Açık', 1)))&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Michael&lt;BR /&gt;PS: If I find time later, I'll create a sample app.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Nov 2012 18:36:22 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/dimension-previous-values/m-p/455713#M567935</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2012-11-26T18:36:22Z</dc:date>
    </item>
  </channel>
</rss>

