<?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: Min Date selected in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4024277#M158843</link>
    <description>&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;I see your strategy, you basically create a new field of dates linked to the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping to find simpler solution, like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Calculate(Min(date),all(material),allselected(date))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but I really struggle to understand hwo to fix it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 04 Jul 2024 06:31:12 GMT</pubDate>
    <dc:creator>MagikJukas</dc:creator>
    <dc:date>2024-07-04T06:31:12Z</dc:date>
    <item>
      <title>Min Date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4023037#M158747</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have the following simple table.&lt;/P&gt;&lt;P&gt;When selecting material D and Dates Feb, Mar, Apr, I wish the Measure to show Feb.&lt;/P&gt;&lt;P&gt;regardeless the material selected, I want to display the earliest date selected.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can you advice how to achieve it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 03 Jul 2024 14:02:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4023037#M158747</guid>
      <dc:creator>MagikJukas</dc:creator>
      <dc:date>2024-07-03T14:02:11Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4023928#M158819</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="362433" data-lia-user-login="MagikJukas" class="lia-mention lia-mention-user"&gt;MagikJukas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I create a table as you mentioned.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Then I create a new table.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Table 2 = ADDCOLUMNS(VALUES('Table'[Date]),"Month",FORMAT([Date],"mmm"))&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Also I create a measure and get what you want.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _MinDate =
    CALCULATE ( MIN ( 'Table 2'[Date] ), ALLSELECTED ( 'Table 2' ) )
RETURN
    CONCATENATEX ( FILTER ( 'Table 2', 'Table 2'[Date] = _MinDate ), [Month] )&lt;/LI-CODE&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P style="margin-bottom: 6.0pt;"&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 02:02:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4023928#M158819</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T02:02:35Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4024277#M158843</link>
      <description>&lt;P&gt;thanks for your reply.&lt;/P&gt;&lt;P&gt;I see your strategy, you basically create a new field of dates linked to the dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was hoping to find simpler solution, like&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Calculate(Min(date),all(material),allselected(date))&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;but I really struggle to understand hwo to fix it...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 06:31:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4024277#M158843</guid>
      <dc:creator>MagikJukas</dc:creator>
      <dc:date>2024-07-04T06:31:12Z</dc:date>
    </item>
    <item>
      <title>Re: Min Date selected</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4024297#M158846</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="362433" data-lia-user-login="MagikJukas" class="lia-mention lia-mention-user"&gt;MagikJukas&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;I don't think my approach is difficult, on the contrary, it does what you do and is easy for you to understand.&lt;/P&gt;
&lt;P&gt;The solution you mentioned can't be implemented, because in the basic Table, it will change as the Slicer changes. And there are two Slicers in this case, and there is a hierarchical relationship between them, which is not possible to implement with what you would call DAX code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Best Regards&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Yilong Zhou&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;If this post&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;helps&lt;/I&gt;&lt;/STRONG&gt;, then please consider&amp;nbsp;&lt;STRONG&gt;&lt;I&gt;Accept it as the solution&lt;/I&gt;&lt;/STRONG&gt;&amp;nbsp;to help the other members find it more quickly.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 04 Jul 2024 06:45:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Min-Date-selected/m-p/4024297#M158846</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-07-04T06:45:08Z</dc:date>
    </item>
  </channel>
</rss>

