<?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: DAX LastDate? Problem in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2395517#M62484</link>
    <description>&lt;P&gt;Yep, you nailed it.&amp;nbsp; Brilliant thank you for the help, works perfectly.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 15 Mar 2022 14:09:23 GMT</pubDate>
    <dc:creator>kavster</dc:creator>
    <dc:date>2022-03-15T14:09:23Z</dc:date>
    <item>
      <title>DAX LastDate? Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2390736#M62176</link>
      <description>&lt;P&gt;Hi, I wonder if someone can help me get past this road block.&amp;nbsp; I have tried so many options (mainly around virtual tables and dax last date) I think my approach must be wrong.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have two tables; the first a date table (below left) with a column showing the period and year that each date falls into (13 financial periods of 4 weeks).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the second table (below right) I have the same financial period format column; I am trying to build a calculated column in this second table that returns the &lt;U&gt;&lt;STRONG&gt;last date&lt;/STRONG&gt;&lt;/U&gt;&amp;nbsp;only of each period using the date table.&amp;nbsp; No relationship between tables, multiple values in FY-Period columns of both tables (date column is unique).&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sun, 13 Mar 2022 22:45:33 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2390736#M62176</guid>
      <dc:creator>kavster</dc:creator>
      <dc:date>2022-03-13T22:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: DAX LastDate? Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2390755#M62178</link>
      <description>&lt;UL&gt;&lt;LI&gt;hello, can you add a file pbix?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Sun, 13 Mar 2022 23:38:26 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2390755#M62178</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-13T23:38:26Z</dc:date>
    </item>
    <item>
      <title>Re: DAX LastDate? Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2394916#M62438</link>
      <description>&lt;P&gt;PBIX file at link below.&lt;/P&gt;&lt;P&gt;&lt;A href="https://drive.google.com/file/d/1kIGdn4PguMTHg7LBqL9G-H0jP9RpxmV-/view?usp=sharing" target="_blank"&gt;https://drive.google.com/file/d/1kIGdn4PguMTHg7LBqL9G-H0jP9RpxmV-/view?usp=sharing&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to achieve is a new calculated column in the Full_Dchedule_Data_Table by looking up the Period_FY date (blue box) in the Period and Weeks Table (red box) and returing the Date (green box).&amp;nbsp; But it need to be the latest date in that period.&amp;nbsp; So for example P11_2021 would return a date in the calculated column of 05 Feb 2022, which would be on all rows where the FY_Period is P11_2021.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 10:21:50 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2394916#M62438</guid>
      <dc:creator>kavster</dc:creator>
      <dc:date>2022-03-15T10:21:50Z</dc:date>
    </item>
    <item>
      <title>Re: DAX LastDate? Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2395457#M62478</link>
      <description>&lt;P&gt;hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="277428" data-lia-user-login="kavster" class="lia-mention lia-mention-user"&gt;kavster&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think the best way is to first create&amp;nbsp;a summarized table :&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;last_date_table_period = &lt;/SPAN&gt;&lt;SPAN&gt;SUMMARIZE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;'Periods and Weeks'&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;'Periods and Weeks'[FY-Period]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;"last_date"&lt;/SPAN&gt;&lt;SPAN&gt;, &lt;/SPAN&gt;&lt;SPAN&gt;LASTDATE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;/SPAN&gt;&lt;SPAN&gt;'Periods and Weeks'[Date]&lt;/SPAN&gt;&lt;SPAN&gt;))&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;after that you add a coulmn in the full_schedule_data :&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;last_date = &lt;/SPAN&gt;&lt;SPAN&gt;LOOKUPVALUE&lt;/SPAN&gt;&lt;SPAN&gt;(&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;last_date_table_period[last_date]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;last_date_table_period[FY-Period]&lt;/SPAN&gt;&lt;SPAN&gt;,&lt;/SPAN&gt;&lt;SPAN&gt;Full_Schedule_Data[Period_FY]&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN&gt;)&lt;/SPAN&gt;&lt;/DIV&gt;&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;&lt;SPAN&gt;&lt;STRONG&gt;Did I answer your question? Thanks to mark my post as a solution&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":beaming_face_with_smiling_eyes:"&gt;😁&lt;/span&gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 15 Mar 2022 13:51:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2395457#M62478</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-03-15T13:51:32Z</dc:date>
    </item>
    <item>
      <title>Re: DAX LastDate? Problem</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2395517#M62484</link>
      <description>&lt;P&gt;Yep, you nailed it.&amp;nbsp; Brilliant thank you for the help, works perfectly.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 15 Mar 2022 14:09:23 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-LastDate-Problem/m-p/2395517#M62484</guid>
      <dc:creator>kavster</dc:creator>
      <dc:date>2022-03-15T14:09:23Z</dc:date>
    </item>
  </channel>
</rss>

