<?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: Always compare numbers to Monday in App Development</title>
    <link>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780852#M60757</link>
    <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/98650"&gt;@ShellyG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this for vLastMonday:&lt;/P&gt;&lt;P&gt;=date(WeekStart(max({1} [Report Date])-1,0,0), 'DD-MMM-YYYY')&lt;/P&gt;</description>
    <pubDate>Mon, 08 Feb 2021 12:40:33 GMT</pubDate>
    <dc:creator>GaryGiles</dc:creator>
    <dc:date>2021-02-08T12:40:33Z</dc:date>
    <item>
      <title>Always compare numbers to Monday</title>
      <link>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780819#M60753</link>
      <description>&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;I will need you assistance with help and ideas on the following topic:&lt;/P&gt;&lt;P&gt;I have a dashboard that consists of data, which is being updated every day and therefore I have a 'Report Date' field that corresponds to the date when the report was updated. What I need to do is that I need to compare data always with Mondays.&lt;/P&gt;&lt;P&gt;For instance, today is Monday, so we want to see this Monday compared to previous Monday, then for tomorrow we want to see Tuesday compared to this week Monday, then Wednesday compared to this week Monday and etc...&lt;BR /&gt;&lt;BR /&gt;I have some slight ideas on how to do that, but I am still struggling... I have the following for now:&lt;/P&gt;&lt;P&gt;vMaxDate -&amp;nbsp;=max([Report Date])&lt;/P&gt;&lt;P&gt;vLastMonday - =date(weekstart(max([Report Date]))+1, 'DD-MMM-YYYY')&lt;/P&gt;&lt;P&gt;But for the second variable, I am really not sure id it will work properly...&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could you please help me a bit with the logic here? Let me know in case more details are needed regarding what I want to do.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Shelly&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 17:30:32 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780819#M60753</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2024-11-16T17:30:32Z</dc:date>
    </item>
    <item>
      <title>Re: Always compare numbers to Monday</title>
      <link>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780852#M60757</link>
      <description>&lt;P&gt;&lt;a href="https://community.qlik.com/t5/user/viewprofilepage/user-id/98650"&gt;@ShellyG&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Try this for vLastMonday:&lt;/P&gt;&lt;P&gt;=date(WeekStart(max({1} [Report Date])-1,0,0), 'DD-MMM-YYYY')&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 12:40:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780852#M60757</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-02-08T12:40:33Z</dc:date>
    </item>
    <item>
      <title>Re: Always compare numbers to Monday</title>
      <link>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780857#M60758</link>
      <description>&lt;P&gt;Hi Gary,&lt;/P&gt;&lt;P&gt;Thank you very much for your suggestion, I implemented it now and it shows me 1st of Feb, which is correct...&lt;/P&gt;&lt;P&gt;My only question here is, as for now I only have 1 week of historical data in my app, in one week from now this calculation is supposed to be showing the previous week Monday, correct? Meaning that if the current date is 15th of February, it will show me 8th of Feb?&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Shelly&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 12:51:33 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780857#M60758</guid>
      <dc:creator>ShellyG</dc:creator>
      <dc:date>2021-02-08T12:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: Always compare numbers to Monday</title>
      <link>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780869#M60760</link>
      <description>&lt;P&gt;Yes.&amp;nbsp; If the max Report Date is a Monday, like 15th of February, it will return the previous Monday, 8th of February.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Feb 2021 13:29:13 GMT</pubDate>
      <guid>https://community.qlik.com/t5/App-Development/Always-compare-numbers-to-Monday/m-p/1780869#M60760</guid>
      <dc:creator>GaryGiles</dc:creator>
      <dc:date>2021-02-08T13:29:13Z</dc:date>
    </item>
  </channel>
</rss>

