<?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 TO GET THE NEXT 3 SHIPMENTS in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3924550#M152707</link>
    <description>&lt;P&gt;The field that I applied for the slicer is the date. The result that I want is that when I choose a date range (slicer)&amp;nbsp; I can see the next 3 vessels name with the material and the volume.&lt;/P&gt;</description>
    <pubDate>Thu, 16 May 2024 15:38:59 GMT</pubDate>
    <dc:creator>HMSF</dc:creator>
    <dc:date>2024-05-16T15:38:59Z</dc:date>
    <item>
      <title>DAX TO GET THE NEXT 3 SHIPMENTS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3921758#M152637</link>
      <description>&lt;P&gt;Hi everyone,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am new Power BI user. I have a table with the vessel name and the volume to be discharged and I want to create a visual that shows me the next three shipments to be discharged depending on the slicer range. I would like to know why kind of DAX formula I can use. I have been trying to use the Top N filter but it doesn't woprk so I am not sure what I am doing wrong.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 15 May 2024 22:24:54 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3921758#M152637</guid>
      <dc:creator>HMSF</dc:creator>
      <dc:date>2024-05-15T22:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET THE NEXT 3 SHIPMENTS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3922023#M152648</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="743052" data-lia-user-login="HMSF" class="lia-mention lia-mention-user"&gt;HMSF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Which field you applied on the slicer? What's your expected result? Could you please explain the backend logic base on the provided sample data? It would be helpful to get the solution. Thank you.&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 02:26:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3922023#M152648</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-16T02:26:16Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET THE NEXT 3 SHIPMENTS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3924550#M152707</link>
      <description>&lt;P&gt;The field that I applied for the slicer is the date. The result that I want is that when I choose a date range (slicer)&amp;nbsp; I can see the next 3 vessels name with the material and the volume.&lt;/P&gt;</description>
      <pubDate>Thu, 16 May 2024 15:38:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3924550#M152707</guid>
      <dc:creator>HMSF</dc:creator>
      <dc:date>2024-05-16T15:38:59Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET THE NEXT 3 SHIPMENTS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3938334#M153153</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="743052" data-lia-user-login="HMSF" class="lia-mention lia-mention-user"&gt;HMSF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;Thanks for your reply. I'm still not clear about your requirement. As you said, you applied a date field on the slicer. Base on your sample data, if select the date&lt;EM&gt;&lt;STRONG&gt; from 5/1/2024 to 5/22/2024&lt;/STRONG&gt;&lt;/EM&gt;, then it will display 3 rows with&lt;FONT color="#FF0000"&gt; red square&lt;/FONT&gt; in the below screenshot?&lt;/P&gt;
&lt;P&gt;&lt;img /&gt;&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 07:09:42 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3938334#M153153</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-22T07:09:42Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET THE NEXT 3 SHIPMENTS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3940160#M153197</link>
      <description>&lt;P&gt;I want that when I select a date range in the slicer I can see the current shipments and the next three shipments&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 22 May 2024 15:00:02 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3940160#M153197</guid>
      <dc:creator>HMSF</dc:creator>
      <dc:date>2024-05-22T15:00:02Z</dc:date>
    </item>
    <item>
      <title>Re: DAX TO GET THE NEXT 3 SHIPMENTS</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3954497#M153506</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="743052" data-lia-user-login="HMSF" class="lia-mention lia-mention-user"&gt;HMSF&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;You can follow the steps below to get it:&lt;/P&gt;
&lt;P&gt;1. Create a date dimension table(Do not create any relationship with your fact table)&lt;/P&gt;
&lt;P&gt;2. Create a slicer and apply the date field of the above date dimension table on it&lt;/P&gt;
&lt;P&gt;3. Create a measure as below&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;Flag = 
var _mindate=min('Date'[Date])
var _maxdate=max('Date'[Date])
var _seldate=selectedvalue{'Facttable'[Date])
return if(_seldate&amp;gt;=_mindate&amp;amp;&amp;amp;_seldate&amp;lt;=_maxdate,1,0)&lt;/LI-CODE&gt;
&lt;P&gt;4. Create a table visual and apply the visual-level filter with the condition (&lt;EM&gt;&lt;STRONG&gt;Flag is 1&lt;/STRONG&gt;&lt;/EM&gt;)&lt;/P&gt;
&lt;P&gt;Best Regards&lt;/P&gt;</description>
      <pubDate>Tue, 28 May 2024 09:49:04 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/DAX-TO-GET-THE-NEXT-3-SHIPMENTS/m-p/3954497#M153506</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-05-28T09:49:04Z</dc:date>
    </item>
  </channel>
</rss>

