<?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: How to get Date of Min Value from table each year in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3734488#M145554</link>
    <description>&lt;P&gt;Thanks you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; working well&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 29 Feb 2024 19:14:02 GMT</pubDate>
    <dc:creator>adii</dc:creator>
    <dc:date>2024-02-29T19:14:02Z</dc:date>
    <item>
      <title>How to get Date of Min Value from table each year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3675135#M142648</link>
      <description>&lt;P&gt;Hello. I have problem with write measure to take a date with min value from column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have table with &amp;nbsp;year column and measure in column (pct header ) with min of pct at this year.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;So now I need recive next column with date of minimum values when it's occurred for example 2017-04-27 for 2017, 2019/04-21 for 2019 etc . problem is , the date of occurred could be not unique&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pleas help . I've run of ideas .&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&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&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 09:11:10 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3675135#M142648</guid>
      <dc:creator>adii</dc:creator>
      <dc:date>2024-02-02T09:11:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Date of Min Value from table each year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3675221#M142654</link>
      <description>&lt;P&gt;To achieve this in Power BI, you can create a calculated column using DAX (Data Analysis Expressions). Here's a step-by-step guide to creating the calculated column:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;Open your Power BI Desktop file.&lt;/LI&gt;&lt;LI&gt;Go to the table where you want to add the calculated column.&lt;/LI&gt;&lt;LI&gt;Click on "Modeling" in the top menu.&lt;/LI&gt;&lt;LI&gt;Click on "New Column" in the ribbon.&lt;/LI&gt;&lt;LI&gt;Enter the following DAX formula for the calculated column:&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Date of Min Value =&lt;BR /&gt;VAR MinPct = MIN(Table1[pct])&lt;BR /&gt;RETURN&lt;BR /&gt;CALCULATE(&lt;BR /&gt;MIN(Table1[Date]),&lt;BR /&gt;FILTER(&lt;BR /&gt;Table1,&lt;BR /&gt;Table1[pct] = MinPct &amp;amp;&amp;amp; Table1[year] = EARLIER(Table1[year])&lt;BR /&gt;)&lt;BR /&gt;)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Replace Table1 with the name of your table, [pct] with the name of your percentage column, [Date] with the name of your date column, and [year] with the name of your year column.&lt;/P&gt;&lt;P&gt;This formula uses the MIN() function to find the minimum percentage value for each year. Then, it calculates the minimum date corresponding to that minimum percentage value for each year using the CALCULATE() and FILTER() functions. The EARLIER() function is used to refer to the current row context within the filter context.&lt;/P&gt;&lt;P&gt;Once you've entered the formula, press Enter to create the calculated column.&lt;/P&gt;&lt;P&gt;Now, you should have a new column called "Date of Min Value" in your table, which will display the date of the minimum value for each year in your data set.&lt;/P&gt;&lt;P&gt;Please adjust the column names and table names in the formula to match your actual data model.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If this post&amp;nbsp;helps, then please consider&amp;nbsp;Accepting it as the solution&amp;nbsp;to help the other members find it more quickly.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;In case there is still a problem, please feel free and explain your issue in detail,&amp;nbsp;It will be my pleasure to assist you in any way I can.&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 09:44:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3675221#M142654</guid>
      <dc:creator>123abc</dc:creator>
      <dc:date>2024-02-02T09:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Date of Min Value from table each year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3675327#M142665</link>
      <description>&lt;P&gt;I tried do like you, but doesn't work correctly&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 10:22:34 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3675327#M142665</guid>
      <dc:creator>adii</dc:creator>
      <dc:date>2024-02-02T10:22:34Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Date of Min Value from table each year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3678965#M142851</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454859" data-lia-user-login="adii" class="lia-mention lia-mention-user"&gt;adii&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I ran the testing as follows.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;My sample:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Create a measure as follows&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Measure = 
VAR _minpct = CALCULATE(MIN('Table'[pct]), ALLEXCEPT('Table', 'Table'[Year]))
RETURN
CALCULATE(MIN('Table'[Date]), ALLEXCEPT('Table', 'Table'[Year]))&lt;/LI-CODE&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;Is this the result you expect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If I've misunderstood you, please provide detailed sample data and the results you are hoping for:&amp;nbsp;&lt;A href="https://community.fabric.microsoft.com/t5/Community-Blog/How-to-provide-sample-data-in-the-Power-BI-Forum/ba-p/963216" target="_blank"&gt;How to provide sample data in the Power BI Forum - Microsoft Fabric Community&lt;/A&gt; . Or show it as a screenshot or pbix. Please remove any sensitive data in advance. If uploading pbix files please do not log into your account. We can better understand the problem and help you.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Community Support Team _Yuliax&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;STRONG&gt;helps, then please consider &lt;EM&gt;Accept it as the solution to help the other members find it more quickly.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 02:00:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3678965#M142851</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-05T02:00:08Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Date of Min Value from table each year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3680756#M142933</link>
      <description>&lt;P&gt; Thanks for your time . Yours proposing solving doesn't work. I couldn't make pbx file so I added photo of two tables with data, left is raw date and I need recive date like table at right side of photo.&lt;/P&gt;&lt;P&gt;Measure with min value is correct but I need createmeasure wich result will be column with date (right table at photo)&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 05 Feb 2024 16:13:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3680756#M142933</guid>
      <dc:creator>adii</dc:creator>
      <dc:date>2024-02-05T16:13:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Date of Min Value from table each year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3723272#M144992</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="454859" data-lia-user-login="adii" class="lia-mention lia-mention-user"&gt;adii&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would like to apologize for the belated reply.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can create measures as follow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;minpct = CALCULATE(MIN([pct]), ALLEXCEPT('Table', 'Table'[Year]))&lt;/LI-CODE&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;LI-CODE lang="markup"&gt;minDate = CALCULATE(MAX([Date]), FILTER('Table', [pct] = [minpct]))&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Output:&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards,&lt;BR /&gt;Yulia Xu&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If this post &lt;EM&gt;&lt;STRONG&gt;helps&lt;/STRONG&gt;&lt;/EM&gt;, then please consider &lt;EM&gt;&lt;STRONG&gt;Accept it as the solution&lt;/STRONG&gt;&lt;/EM&gt; to help the other members find it more quickly.&lt;/P&gt;</description>
      <pubDate>Wed, 28 Feb 2024 08:04:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3723272#M144992</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-02-28T08:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: How to get Date of Min Value from table each year</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3734488#M145554</link>
      <description>&lt;P&gt;Thanks you &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt; working well&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 29 Feb 2024 19:14:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-get-Date-of-Min-Value-from-table-each-year/m-p/3734488#M145554</guid>
      <dc:creator>adii</dc:creator>
      <dc:date>2024-02-29T19:14:02Z</dc:date>
    </item>
  </channel>
</rss>

