<?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: Previous Week Ending in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-Ending/m-p/3688532#M143305</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="417413" data-lia-user-login="Nagin" class="lia-mention lia-mention-user"&gt;Nagin&lt;/a&gt;&amp;nbsp;try with DAX function&amp;nbsp;&lt;SPAN&gt;WEEKNUM. With Return type part you should control what is start / end of your week as day.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Check &lt;A href="https://dax.guide/weeknum/" target="_self"&gt;link&lt;/A&gt; for example&lt;/P&gt;</description>
    <pubDate>Thu, 08 Feb 2024 14:01:06 GMT</pubDate>
    <dc:creator>some_bih</dc:creator>
    <dc:date>2024-02-08T14:01:06Z</dc:date>
    <item>
      <title>Previous Week Ending</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-Ending/m-p/3687911#M143268</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to calculate the previous weekending based on the curent max weekending, however the result only returns the max weekending date (04/02/24). With the dax query below my current max weekending date is 04/02/24 and would like it to return 28/01/24. I also have week number in this table and have tried referencing this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CAT &lt;/SPAN&gt;&lt;SPAN&gt;2&lt;/SPAN&gt;&lt;SPAN&gt; Max Week =&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&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2024 09:48:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-Ending/m-p/3687911#M143268</guid>
      <dc:creator>Nagin</dc:creator>
      <dc:date>2024-02-08T09:48:10Z</dc:date>
    </item>
    <item>
      <title>Re: Previous Week Ending</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-Ending/m-p/3688532#M143305</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="417413" data-lia-user-login="Nagin" class="lia-mention lia-mention-user"&gt;Nagin&lt;/a&gt;&amp;nbsp;try with DAX function&amp;nbsp;&lt;SPAN&gt;WEEKNUM. With Return type part you should control what is start / end of your week as day.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Check &lt;A href="https://dax.guide/weeknum/" target="_self"&gt;link&lt;/A&gt; for example&lt;/P&gt;</description>
      <pubDate>Thu, 08 Feb 2024 14:01:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Previous-Week-Ending/m-p/3688532#M143305</guid>
      <dc:creator>some_bih</dc:creator>
      <dc:date>2024-02-08T14:01:06Z</dc:date>
    </item>
  </channel>
</rss>

