<?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 Is there another way in Qlik Sense to show the latest weeks data by default and a weekly filter? in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Is-there-another-way-in-Qlik-Sense-to-show-the-latest-weeks-data/m-p/1667733#M51451</link>
    <description>&lt;P&gt;I am looking to add a weekly filter onto my Qlik dashboard to allow me to change the weekly data that is displayed on my dashboard. My original idea works well as I wanted to display the latest weeks data and compare this to the previous weeks and this gives me exactly what I want.&lt;/P&gt;&lt;P&gt;To enhance this and give the dashboard a bit more flexibility and just in case someone wanted to look at a different week, I thought it might be a good idea to add a weekly filter but the way I have built the dashboard won't allow me to do this. The following is an example of what I have:&lt;/P&gt;&lt;P&gt;In my database table I have a rank column (latest_week_rank) where the latest weekending (i.e. Mon 13th to Sun 19th Jan) has a value of 1 and the 2nd latest week would be 2 etc. I have then written the following code in my data tab:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;latest_week                 =   1;
previous_week               =   2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I have then written the following which is then called within a Multi KPI:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;vOrdersWTD          =Sum({&amp;lt;latest_week_rank =  {$(latest_week)}&amp;gt;} total_orders)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is obviously where the problem lies as having the weekly filter makes no difference as no other weeks show up but I am not sure how I change my code in order to make this all work.&lt;/P&gt;&lt;P&gt;I would really appreciate if somebody could advise on how I can change this around.&lt;/P&gt;</description>
    <pubDate>Tue, 21 Jan 2020 13:26:51 GMT</pubDate>
    <dc:creator>aftabn10</dc:creator>
    <dc:date>2020-01-21T13:26:51Z</dc:date>
    <item>
      <title>Is there another way in Qlik Sense to show the latest weeks data by default and a weekly filter?</title>
      <link>https://community.qlik.com/t5/App-Development/Is-there-another-way-in-Qlik-Sense-to-show-the-latest-weeks-data/m-p/1667733#M51451</link>
      <description>&lt;P&gt;I am looking to add a weekly filter onto my Qlik dashboard to allow me to change the weekly data that is displayed on my dashboard. My original idea works well as I wanted to display the latest weeks data and compare this to the previous weeks and this gives me exactly what I want.&lt;/P&gt;&lt;P&gt;To enhance this and give the dashboard a bit more flexibility and just in case someone wanted to look at a different week, I thought it might be a good idea to add a weekly filter but the way I have built the dashboard won't allow me to do this. The following is an example of what I have:&lt;/P&gt;&lt;P&gt;In my database table I have a rank column (latest_week_rank) where the latest weekending (i.e. Mon 13th to Sun 19th Jan) has a value of 1 and the 2nd latest week would be 2 etc. I have then written the following code in my data tab:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;latest_week                 =   1;
previous_week               =   2;&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;SPAN&gt;I have then written the following which is then called within a Multi KPI:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;vOrdersWTD          =Sum({&amp;lt;latest_week_rank =  {$(latest_week)}&amp;gt;} total_orders)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This is obviously where the problem lies as having the weekly filter makes no difference as no other weeks show up but I am not sure how I change my code in order to make this all work.&lt;/P&gt;&lt;P&gt;I would really appreciate if somebody could advise on how I can change this around.&lt;/P&gt;</description>
      <pubDate>Tue, 21 Jan 2020 13:26:51 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Is-there-another-way-in-Qlik-Sense-to-show-the-latest-weeks-data/m-p/1667733#M51451</guid>
      <dc:creator>aftabn10</dc:creator>
      <dc:date>2020-01-21T13:26:51Z</dc:date>
    </item>
  </channel>
</rss>

