<?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 undefined in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4380554#M173893</link>
    <description>&lt;P&gt;How to get only last Friday closing rate of a stock dynamically in power bi dax&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 25 Jan 2025 05:07:56 GMT</pubDate>
    <dc:creator>MAP</dc:creator>
    <dc:date>2025-01-25T05:07:56Z</dc:date>
    <item>
      <title>undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4380554#M173893</link>
      <description>&lt;P&gt;How to get only last Friday closing rate of a stock dynamically in power bi dax&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 25 Jan 2025 05:07:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4380554#M173893</guid>
      <dc:creator>MAP</dc:creator>
      <dc:date>2025-01-25T05:07:56Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4380803#M173901</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="711831" data-lia-user-login="MAP" class="lia-mention lia-mention-user"&gt;MAP&lt;/a&gt;&amp;nbsp;,&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P data-start="150" data-end="291"&gt;You can do this with a measure that always gets the last available Friday’s closing rate, no matter what’s selected in your slicer. Try this:&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last Friday Closing Rate =
VAR LastFriday =
    CALCULATE(
        MAX(Stocks[Date]),
        FILTER(
            ALL(Stocks),
            WEEKDAY(Stocks[Date], 2) = 5
        )
    )
RETURN
    CALCULATE(
        MAX(Stocks[Closing Rate]),
        FILTER(
            ALL(Stocks),
            Stocks[Date] = LastFriday
        )
    )
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This measure ignores any date filter or slicer and always finds the most recent Friday in your dataset, then pulls the closing rate for that date. If there’s a missing Friday (holiday, etc), it’ll just grab the latest one that exists.&amp;nbsp;If you have multiple stocks and want the last Friday closing for each one, you can wrap the logic in an additional filter by ticker.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 27 Jul 2025 09:05:44 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4380803#M173901</guid>
      <dc:creator>rohit1991</dc:creator>
      <dc:date>2025-07-27T09:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4380808#M173904</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="711831" data-lia-user-login="MAP" class="lia-mention lia-mention-user"&gt;MAP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Try:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Last Friday Rate = 
VAR __LastFriday = MAXX( FILTER( VALUES( Stocks[Date] ) , WEEKDAY( Stocks[Date]  ,1 ) = 6 ) , Stocks[Date] )
VAR __Result = CALCULATE( MAX(Stocks[Closing Rate]) , Stocks[Date] = __LastFriday )
RETURN
   __Result&lt;/LI-CODE&gt;</description>
      <pubDate>Sat, 25 Jan 2025 13:48:46 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4380808#M173904</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2025-01-25T13:48:46Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4381369#M173933</link>
      <description>&lt;P&gt;Thanx for your solution. It works fine but I have a date slicer on my report page ,whatever date I will select from the date slicer your solution won't take changes according to selected date ,in other words slicer don't effect this measure and give me last friday closing rate dynamically. You got it my point.....!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 17:59:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4381369#M173933</guid>
      <dc:creator>MAP</dc:creator>
      <dc:date>2025-01-26T17:59:38Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4381377#M173934</link>
      <description>&lt;P&gt;Thanx for your solution , It works fine, but I have a date slicer in my report page which&amp;nbsp; do not effect my last friday closing rate, In other words I always get last friday closing rate irrespective of date selection&lt;/P&gt;</description>
      <pubDate>Sun, 26 Jan 2025 18:09:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4381377#M173934</guid>
      <dc:creator>MAP</dc:creator>
      <dc:date>2025-01-26T18:09:21Z</dc:date>
    </item>
    <item>
      <title>Re: undefined</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4381833#M173949</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="711831" data-lia-user-login="MAP" class="lia-mention lia-mention-user"&gt;MAP&lt;/a&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Explain your requirements a bit more clarly and provide mode details on how your data model is organized.&lt;BR /&gt;Better, you could attach a sample PBIX file using a OneDrive or GoogleDrive.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 27 Jan 2025 07:09:17 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/undefined/m-p/4381833#M173949</guid>
      <dc:creator>Fowmy</dc:creator>
      <dc:date>2025-01-27T07:09:17Z</dc:date>
    </item>
  </channel>
</rss>

