<?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: Return first and last day of the week. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2597926#M75022</link>
    <description>&lt;P&gt;Very good!&amp;nbsp; You are welcome.&lt;/P&gt;</description>
    <pubDate>Thu, 23 Jun 2022 14:02:10 GMT</pubDate>
    <dc:creator>WinterMist</dc:creator>
    <dc:date>2022-06-23T14:02:10Z</dc:date>
    <item>
      <title>Return first and last day of the week.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2595778#M74922</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Guys, I need to put two dates in a measure, the first day of the week and the last day, and it will pull from the filter of the current week. I tried some DAX code but no success. Here's what I tried to do:&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;firstDayWeek&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dCalendario[Coluna]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;dCalendario[Semana do Ano]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[Semana Atual]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;var&lt;/SPAN&gt; &lt;SPAN&gt;lastDayWeek&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;calculate&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;dCalendario[Coluna]&lt;/SPAN&gt;&lt;SPAN&gt;),&lt;/SPAN&gt;&lt;SPAN&gt;dCalendario[Semana do Ano]&lt;/SPAN&gt;&lt;SPAN&gt; = &lt;/SPAN&gt;&lt;SPAN&gt;[Semana Atual]&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;BR /&gt;&lt;DIV&gt;&lt;SPAN&gt;return&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;firstDayWeek&lt;/SPAN&gt;&lt;SPAN&gt; &amp;amp; &lt;/SPAN&gt;&lt;SPAN&gt;lastDayWeek&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Wed, 22 Jun 2022 19:09:01 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2595778#M74922</guid>
      <dc:creator>hugo_barbara</dc:creator>
      <dc:date>2022-06-22T19:09:01Z</dc:date>
    </item>
    <item>
      <title>Re: Return first and last day of the week.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2595934#M74926</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="333090" data-lia-user-login="hugo_barbara" class="lia-mention lia-mention-user"&gt;hugo_barbara&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Check out this blog (&amp;amp; video).&lt;/P&gt;&lt;P&gt;Let me know if this is helpful to you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A href="https://bielite.com/blog/week-start-date-power-bi-dax/" target="_blank"&gt;https://bielite.com/blog/week-start-date-power-bi-dax/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nathan&lt;/P&gt;</description>
      <pubDate>Wed, 22 Jun 2022 21:32:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2595934#M74926</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-06-22T21:32:13Z</dc:date>
    </item>
    <item>
      <title>Re: Return first and last day of the week.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2597558#M74999</link>
      <description>&lt;P&gt;Tks Nathan,&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Everything worked!!&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 11:48:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2597558#M74999</guid>
      <dc:creator>hugo_barbara</dc:creator>
      <dc:date>2022-06-23T11:48:02Z</dc:date>
    </item>
    <item>
      <title>Re: Return first and last day of the week.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2597926#M75022</link>
      <description>&lt;P&gt;Very good!&amp;nbsp; You are welcome.&lt;/P&gt;</description>
      <pubDate>Thu, 23 Jun 2022 14:02:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-first-and-last-day-of-the-week/m-p/2597926#M75022</guid>
      <dc:creator>WinterMist</dc:creator>
      <dc:date>2022-06-23T14:02:10Z</dc:date>
    </item>
  </channel>
</rss>

