<?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: Hide Current Week's Data in Line Chart in QlikView</title>
    <link>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460172#M435941</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco.....the expression worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the line chart that I had created for these work dates, I was showing the value on the just the last week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression that I used was this:&lt;/P&gt;&lt;P&gt;[Week] = $(=Week(Today())-1) &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189234_Capture.JPG" style="height: 242px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was showing the data for just the last week but this expression also has the same issue of showing data for corresponding week number for previous years also. For example, if current week is week 2, then value should appear only on week 1 of 2018 and not&amp;nbsp; on week 1 of 2017 or 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2018:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/189235_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;(value appearing on just the last week of 2018 i.e. week 1, current week of 2018 has been made hidden)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/189236_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;(value appearing on week 1 of 2017 also).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using weekstart function here also but it did not work me. Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;YASH&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 08 Jan 2018 08:45:33 GMT</pubDate>
    <dc:creator>yashcena</dc:creator>
    <dc:date>2018-01-08T08:45:33Z</dc:date>
    <item>
      <title>Hide Current Week's Data in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460170#M435939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a column named Work_Dt and I'm showing the number of hours for each work_dt in a line chart.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to hide the current week from line charts and show data till last week only. I have data starting from 2015.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used this expression before:&lt;/P&gt;&lt;P&gt;=aggr(if(week[Work_Dt])&amp;lt; Week(Today()), [Work Dt]),[Work Dt])&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data in Work_Dt is like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189090_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So basically i'm comparing the week of work_dt with week of today().&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Although it hides current week's data but it also has an unintended consequence. If the current week is week 45, then it is eliminating week 45 from all years and showing data till week 44 for all the historical years as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think i need to add a condition for year in the expression but I'm not able to get the correct expression. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope I have made the requirement clear. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;YASH&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 05:49:35 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460170#M435939</guid>
      <dc:creator>yashcena</dc:creator>
      <dc:date>2018-01-08T05:49:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Current Week's Data in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460171#M435940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should rather filter by dates. May be like:&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;=if([Work_Dt])&lt;STRONG&gt;&amp;lt;&lt;/STRONG&gt; &lt;STRONG&gt;WeekStart&lt;/STRONG&gt;(Today()), [Work Dt])&lt;/SPAN&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;BR /&gt;&lt;/SPAN&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;And yes, aggr() might not be required.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 05:55:10 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460171#M435940</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-08T05:55:10Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Current Week's Data in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460172#M435941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Tresesco.....the expression worked for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the line chart that I had created for these work dates, I was showing the value on the just the last week.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The expression that I used was this:&lt;/P&gt;&lt;P&gt;[Week] = $(=Week(Today())-1) &lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-1" src="https://community.qlik.com/legacyfs/online/189234_Capture.JPG" style="height: 242px; width: 620px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This was showing the data for just the last week but this expression also has the same issue of showing data for corresponding week number for previous years also. For example, if current week is week 2, then value should appear only on week 1 of 2018 and not&amp;nbsp; on week 1 of 2017 or 2016.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2018:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-2" src="https://community.qlik.com/legacyfs/online/189235_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;(value appearing on just the last week of 2018 i.e. week 1, current week of 2018 has been made hidden)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2017:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Capture.JPG" class="jive-image image-3" src="https://community.qlik.com/legacyfs/online/189236_Capture.JPG" style="height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;(value appearing on week 1 of 2017 also).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried using weekstart function here also but it did not work me. Any suggestion?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;YASH&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 08:45:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460172#M435941</guid>
      <dc:creator>yashcena</dc:creator>
      <dc:date>2018-01-08T08:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hide Current Week's Data in Line Chart</title>
      <link>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460173#M435942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess, you have to use Set Analysis to by-pass the selection filter. Try to share a sample qvw and explain your expected output against few selections; let us work on your sample qvw to help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 08 Jan 2018 08:52:45 GMT</pubDate>
      <guid>https://community.qlik.com/t5/QlikView/Hide-Current-Week-s-Data-in-Line-Chart/m-p/1460173#M435942</guid>
      <dc:creator>tresB</dc:creator>
      <dc:date>2018-01-08T08:52:45Z</dc:date>
    </item>
  </channel>
</rss>

