<?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: Return the value for the next minimum date if the value field is empty, and group by ID. in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359983#M126308</link>
    <description>&lt;P&gt;yes, that's correct&lt;/P&gt;</description>
    <pubDate>Tue, 01 Aug 2023 15:12:54 GMT</pubDate>
    <dc:creator>denengland</dc:creator>
    <dc:date>2023-08-01T15:12:54Z</dc:date>
    <item>
      <title>Return the value for the next minimum date if the value field is empty, and group by ID.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359867#M126303</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In dax, I would like to return the value for the next minimum date if the value field is empty, which should be group by ID. Also, need to return the coresponding value in the associated category colum.&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;&lt;P&gt;I have only one table and have attempted to use several measures, the example measure below does not work well when there are null values. Please help!&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;SPAN&gt;CALCULATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;MIN&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Query1&lt;/SPAN&gt;&lt;SPAN&gt;[value]&lt;/SPAN&gt;&lt;SPAN&gt;), &lt;/SPAN&gt;&lt;SPAN&gt;FIRSTDATE&lt;/SPAN&gt;&lt;SPAN&gt; ( &lt;/SPAN&gt;&lt;SPAN&gt;Query1&lt;/SPAN&gt;&lt;SPAN&gt;[date]&lt;/SPAN&gt;&lt;SPAN&gt;) )&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/DIV&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:05:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359867#M126303</guid>
      <dc:creator>denengland</dc:creator>
      <dc:date>2023-08-01T14:05:37Z</dc:date>
    </item>
    <item>
      <title>Re: Return the value for the next minimum date if the value field is empty, and group by ID.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359892#M126304</link>
      <description>&lt;P&gt;hello&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="545045" data-lia-user-login="denengland" class="lia-mention lia-mention-user"&gt;denengland&lt;/a&gt;&amp;nbsp; can you please explain what you mean by&amp;nbsp;&lt;SPAN&gt;next minimum date maybe show us an expected result in excel&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:22:38 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359892#M126304</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-01T14:22:38Z</dc:date>
    </item>
    <item>
      <title>Re: Return the value for the next minimum date if the value field is empty, and group by ID.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359916#M126305</link>
      <description>&lt;P&gt;Thank you for responding!&lt;/P&gt;&lt;P&gt;In my initial post there is picture which showed an ID with three dates, the first date is missing a value. I would like a dax measure written which will pull in the non-missing value for the next earliest date.&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:40:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359916#M126305</guid>
      <dc:creator>denengland</dc:creator>
      <dc:date>2023-08-01T14:40:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return the value for the next minimum date if the value field is empty, and group by ID.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359943#M126306</link>
      <description>&lt;P&gt;so if i understood correctly where id =1 you have missing 8/13/2020 missing so you need to fill it as 50 which is the enxt date?&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 14:53:55 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359943#M126306</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-01T14:53:55Z</dc:date>
    </item>
    <item>
      <title>Re: Return the value for the next minimum date if the value field is empty, and group by ID.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359974#M126307</link>
      <description>&lt;P&gt;if it is the case then go to power query , i created a sample of what you made&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;group by id and choose the all rows and name it Table&lt;BR /&gt;&lt;BR /&gt;add a new custom column&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;let
    NewTable = [Table],
    SortedTable = Table.Sort(NewTable, {"Date"}),
    IndexedTable = Table.AddIndexColumn(SortedTable, "Index", 0, 1),
    ShiftedValue = Table.AddColumn(IndexedTable, "Next Value", each 
        try IndexedTable[Value]{[Index] + 1} 
        otherwise null),
    ReplacedValue = Table.AddColumn(ShiftedValue, "Next Date Value", each 
        if [Value] = null then [Next Value] else [Value]),
    FinalTable = Table.RemoveColumns(ReplacedValue, {"Index", "Next Value"}) // Remove unnecessary columns
in 
    FinalTable&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;after that expand the new column&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;results&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;if its waht you want please accept as solution if no then please explain more&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:09:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359974#M126307</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-01T15:09:58Z</dc:date>
    </item>
    <item>
      <title>Re: Return the value for the next minimum date if the value field is empty, and group by ID.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359983#M126308</link>
      <description>&lt;P&gt;yes, that's correct&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 15:12:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3359983#M126308</guid>
      <dc:creator>denengland</dc:creator>
      <dc:date>2023-08-01T15:12:54Z</dc:date>
    </item>
    <item>
      <title>Re: Return the value for the next minimum date if the value field is empty, and group by ID.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3360220#M126322</link>
      <description>&lt;P&gt;Please refer to the solution below of it helped consider accepting it as a solution&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 01 Aug 2023 17:45:12 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3360220#M126322</guid>
      <dc:creator>eliasayyy</dc:creator>
      <dc:date>2023-08-01T17:45:12Z</dc:date>
    </item>
    <item>
      <title>Re: Return the value for the next minimum date if the value field is empty, and group by ID.</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3362330#M126425</link>
      <description>&lt;P&gt;Thanks, I was able to fill in 50 for ID1 for the 08/13/2020 date. However, this is not the solution i'm looking for. I was hoping that a dax measure could be written to return the other columns as well. So for ID 1, I would need one row for ID1 with the earliest date (i.e.,07/13/2021), which has a value (i.e.,50), and the category (A) associated with that row .&lt;/P&gt;</description>
      <pubDate>Wed, 02 Aug 2023 19:27:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Return-the-value-for-the-next-minimum-date-if-the-value-field-is/m-p/3362330#M126425</guid>
      <dc:creator>denengland</dc:creator>
      <dc:date>2023-08-02T19:27:39Z</dc:date>
    </item>
  </channel>
</rss>

