<?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: Find soonest data form second table in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3186033#M115344</link>
    <description>&lt;P&gt;Marvelous, thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 13 Apr 2023 10:26:32 GMT</pubDate>
    <dc:creator>René</dc:creator>
    <dc:date>2023-04-13T10:26:32Z</dc:date>
    <item>
      <title>Find soonest data form second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3185490#M115301</link>
      <description>&lt;P&gt;Dear fellow BI colleagues,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am struggling to get the following to work, as shown in the image below. My intention is to list the date, supplier name, and quantity to be received for each Sales Order Line, for the next upcoming receipt. I have tried various functions, and have been able to lookup the next receipt date using the MIN() function, but I'm unsure how to include the supplier name and quantity. Could you please help me with this?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;So for example on the second Sales Order Line (product: 2934EV16K) I want to see that the next inbound will be: 2000 pce of supplier C on 15-4-2023.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much in advance for your assistance.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;René&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 06:29:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3185490#M115301</guid>
      <dc:creator>René</dc:creator>
      <dc:date>2023-04-13T06:29:16Z</dc:date>
    </item>
    <item>
      <title>Re: Find soonest data form second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3185774#M115320</link>
      <description>&lt;P&gt;You could create a measure like&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Next expected date =
VAR CurrentProduct =
    SELECTEDVALUE ( 'Sales Order'[Product] )
VAR Supplier =
    MINX (
        TOPN (
            1,
            FILTER (
                'PO Lines',
                'PO Lines'[Product] = CurrentProduct
                    &amp;amp;&amp;amp; 'PO Lines'[Expected date] &amp;gt;= TODAY ()
            ),
            'PO Lines'[Expected date], ASC
        ),
        'PO Lines'[Supplier]
    )
RETURN
    Supplier
&lt;/LI-CODE&gt;
&lt;P&gt;and then repeat that for the other columns you want.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 08:25:52 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3185774#M115320</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-13T08:25:52Z</dc:date>
    </item>
    <item>
      <title>Re: Find soonest data form second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3185925#M115332</link>
      <description>&lt;P&gt;Great! Thanks for the swift reply.&lt;/P&gt;&lt;P&gt;That does the trick, but what it also does is by adding this measure to the sales order line table, it then shows only the rows with a linked PO line. Could you please also help me out on this? Howto show all the Sales Order Lines, regardless if there is an open PO line for?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks again!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 09:35:58 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3185925#M115332</guid>
      <dc:creator>René</dc:creator>
      <dc:date>2023-04-13T09:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: Find soonest data form second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3186023#M115343</link>
      <description>&lt;P&gt;If you click on the sales order number in the fields well of the visual there should be an option to "show items with no data", I think that should do it.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 10:23:05 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3186023#M115343</guid>
      <dc:creator>johnt75</dc:creator>
      <dc:date>2023-04-13T10:23:05Z</dc:date>
    </item>
    <item>
      <title>Re: Find soonest data form second table</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3186033#M115344</link>
      <description>&lt;P&gt;Marvelous, thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 10:26:32 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Find-soonest-data-form-second-table/m-p/3186033#M115344</guid>
      <dc:creator>René</dc:creator>
      <dc:date>2023-04-13T10:26:32Z</dc:date>
    </item>
  </channel>
</rss>

