<?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: Dynamic weekend date in Power Query</title>
    <link>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970511#M94017</link>
    <description>&lt;P&gt;Hello! I hope this will help you...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create a dynamic measure that displays the last Friday of the current week, you can use the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a calculated column in your date table that uses the "WEEKDAY" function to determine the day of the week for each date. For example, you can use the following formula to create a calculated column named "Day of Week":&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Day of Week = &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;WEEKDAY([Date], &lt;SPAN class=""&gt;2)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Create a measure that uses the "CALCULATE" function to filter the date table to only include the last Friday of the current week. For example, you can use the following formula to create a measure named "Last Friday":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Last Friday &lt;SPAN class=""&gt;= CALCULATE( &lt;SPAN class=""&gt;MAX([&lt;SPAN class=""&gt;Date]), &lt;SPAN class=""&gt;FILTER( &lt;SPAN class=""&gt;ALL(&lt;SPAN class=""&gt;Date), [&lt;SPAN class=""&gt;Day &lt;SPAN class=""&gt;of Week] &lt;SPAN class=""&gt;= &lt;SPAN class=""&gt;6 ) )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This measure will return the last Friday in the current context. For example, if you filter the date table to only include dates from the current week, the measure will return the last Friday of that week. If you filter the date table to include dates from a different week, the measure will return the last Friday of that week instead.&lt;/P&gt;&lt;P&gt;You can then use this measure in your Power BI report to display the last Friday of the current week whenever the report is opened by a user.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
    <pubDate>Thu, 15 Dec 2022 10:31:33 GMT</pubDate>
    <dc:creator>RobertPaegelow</dc:creator>
    <dc:date>2022-12-15T10:31:33Z</dc:date>
    <item>
      <title>Dynamic weekend date</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970435#M94013</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have date table with dates from Year 2021 to 2025.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to create a dynamic measure, whenevr power BI report is opened by a user, then the date should display as last weekending date.. ( i.e last friday)&lt;BR /&gt;&lt;BR /&gt;Suppose If i open the report today, the date should display as 9th December, If i open tomorrow, the date should display as&amp;nbsp; 16th December.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Could some one help how to acheive this&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 10:00:13 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970435#M94013</guid>
      <dc:creator>fareedice</dc:creator>
      <dc:date>2022-12-15T10:00:13Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic weekend date</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970511#M94017</link>
      <description>&lt;P&gt;Hello! I hope this will help you...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To create a dynamic measure that displays the last Friday of the current week, you can use the following steps:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Create a calculated column in your date table that uses the "WEEKDAY" function to determine the day of the week for each date. For example, you can use the following formula to create a calculated column named "Day of Week":&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;Day of Week = &lt;SPAN class=""&gt;&lt;SPAN class=""&gt;WEEKDAY([Date], &lt;SPAN class=""&gt;2)&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. Create a measure that uses the "CALCULATE" function to filter the date table to only include the last Friday of the current week. For example, you can use the following formula to create a measure named "Last Friday":&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN class=""&gt;Last Friday &lt;SPAN class=""&gt;= CALCULATE( &lt;SPAN class=""&gt;MAX([&lt;SPAN class=""&gt;Date]), &lt;SPAN class=""&gt;FILTER( &lt;SPAN class=""&gt;ALL(&lt;SPAN class=""&gt;Date), [&lt;SPAN class=""&gt;Day &lt;SPAN class=""&gt;of Week] &lt;SPAN class=""&gt;= &lt;SPAN class=""&gt;6 ) )&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This measure will return the last Friday in the current context. For example, if you filter the date table to only include dates from the current week, the measure will return the last Friday of that week. If you filter the date table to include dates from a different week, the measure will return the last Friday of that week instead.&lt;/P&gt;&lt;P&gt;You can then use this measure in your Power BI report to display the last Friday of the current week whenever the report is opened by a user.&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/LI&gt;&lt;/OL&gt;</description>
      <pubDate>Thu, 15 Dec 2022 10:31:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970511#M94017</guid>
      <dc:creator>RobertPaegelow</dc:creator>
      <dc:date>2022-12-15T10:31:33Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic weekend date</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970543#M94020</link>
      <description>&lt;P&gt;Hi Robert..&lt;BR /&gt;We are almost there&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but we are getting as 12/27/2022 instead 12/16/2022&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 10:47:09 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970543#M94020</guid>
      <dc:creator>fareedice</dc:creator>
      <dc:date>2022-12-15T10:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic weekend date</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970560#M94021</link>
      <description>&lt;P&gt;Try this instead,&amp;nbsp;&lt;SPAN class=""&gt;Last&lt;/SPAN&gt;&lt;SPAN&gt; Friday &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt; CALCULATE( &lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;]), &lt;/SPAN&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;( &lt;/SPAN&gt;&lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;), [&lt;/SPAN&gt;&lt;SPAN class=""&gt;Day&lt;/SPAN&gt; &lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;SPAN&gt; Week] &lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;6&lt;/SPAN&gt;&lt;SPAN&gt; ), [&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt; &lt;SPAN class=""&gt;Filter&lt;/SPAN&gt;&lt;SPAN&gt;] )&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 10:55:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970560#M94021</guid>
      <dc:creator>RobertPaegelow</dc:creator>
      <dc:date>2022-12-15T10:55:47Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic weekend date</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970563#M94022</link>
      <description>&lt;P&gt;&lt;SPAN class=""&gt;Thank you for the Reply...In this formula...Last&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Friday&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;CALCULATE(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;MAX&lt;/SPAN&gt;&lt;SPAN&gt;([&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;]),&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;FILTER&lt;/SPAN&gt;&lt;SPAN&gt;(&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;ALL&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;), [&lt;/SPAN&gt;&lt;SPAN class=""&gt;Day&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;of&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;Week]&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;=&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;6&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;), [&lt;/SPAN&gt;&lt;SPAN class=""&gt;Date&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class=""&gt;Filter&lt;/SPAN&gt;&lt;SPAN&gt;] )&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;the last part [Date Filter] is showing error... Do I have to derive any column? sorry i did not get..&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 11:04:06 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970563#M94022</guid>
      <dc:creator>fareedice</dc:creator>
      <dc:date>2022-12-15T11:04:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic weekend date</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970566#M94023</link>
      <description>&lt;P&gt;Okay, that's weird. Could you send me the error message??&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 11:05:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970566#M94023</guid>
      <dc:creator>RobertPaegelow</dc:creator>
      <dc:date>2022-12-15T11:05:35Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamic weekend date</title>
      <link>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970570#M94024</link>
      <description>&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 15 Dec 2022 11:06:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/Power-Query/Dynamic-weekend-date/m-p/2970570#M94024</guid>
      <dc:creator>fareedice</dc:creator>
      <dc:date>2022-12-15T11:06:38Z</dc:date>
    </item>
  </channel>
</rss>

