<?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: Next future travel reservation per person in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259329#M20897</link>
    <description>&lt;P&gt;Thats what I needed but not as a stand alone matrix - need those columns in another table, but its an awesome alternative that I will use in other reports.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
    <pubDate>Wed, 29 Jul 2020 13:04:37 GMT</pubDate>
    <dc:creator>MattGell</dc:creator>
    <dc:date>2020-07-29T13:04:37Z</dc:date>
    <item>
      <title>Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257359#M20819</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;can anybody please help with something I know is simple but I'm fairly new to DAX and I'm not finding it very intuitive.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have 2 tables table1 called "AVI_USER" with people with unique "UserID" as primary key. Table 2 is for reservations for those people called "AVI_RES_PAX". the start dates of the reservations are stored in "AVI_RES_PAX[REQ_FROM_DT]". Each person could have many reservations into the future but I just want the next one (&amp;gt;TODAY) for each transport mode.&lt;/P&gt;&lt;P&gt;Reservations can be for different modes of transport as distinguished in "AVI_RES_PAX[REQ_MODE]". (Fixed Wing or Rotary Wing)&lt;/P&gt;&lt;P&gt;I simply want columns for the next reservation date for each mode per person and columns to show the origin and destination.&lt;/P&gt;&lt;P&gt;Desired result below:&lt;/P&gt;&lt;P&gt;UserID&amp;nbsp; &amp;nbsp; NextFixedWingDate Origin Destination NextRotaryWingDate Origin Destination&lt;/P&gt;&lt;P&gt;NM001&amp;nbsp; &amp;nbsp; &amp;nbsp;01-Sep-20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; LHR&amp;nbsp; &amp;nbsp; &amp;nbsp;GIG&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;31-Aug-20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; FTS&amp;nbsp; &amp;nbsp; &amp;nbsp; ABZ&lt;/P&gt;&lt;P&gt;NM002&amp;nbsp; &amp;nbsp; &amp;nbsp;10-Oct-20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; CDG&amp;nbsp; &amp;nbsp; HOU&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 01-Nov-20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;PPA&amp;nbsp; &amp;nbsp; &amp;nbsp;ABZ&lt;/P&gt;&lt;P&gt;NM002&amp;nbsp; &amp;nbsp; &amp;nbsp;20-Aug-20&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;LOS&amp;nbsp; &amp;nbsp; &amp;nbsp;JOB&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I know it looks simple but I just cant get it&lt;/P&gt;&lt;P&gt;Please help&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Tue, 28 Jul 2020 21:48:08 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257359#M20819</guid>
      <dc:creator>MattGell</dc:creator>
      <dc:date>2020-07-28T21:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257535#M20823</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Create a new column in Table 2: "Future Date" = if([Reservation start date] - TODAY()&amp;gt;0,"Y","N")&lt;/P&gt;&lt;P&gt;2. Create a Matrix visualization as follows:&amp;nbsp;&lt;/P&gt;&lt;P&gt;- Rows: UserID&lt;/P&gt;&lt;P&gt;- Columns: Mode&lt;/P&gt;&lt;P&gt;- Values: 'Earliest' Reservation start date --&amp;gt; 'First' Origin --&amp;gt; First 'Destination&lt;/P&gt;&lt;P&gt;- FIlters: (i) Future Date = Y; (ii) Top 1 UserID by Earliest Reservation start date&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that was what you were looking for!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 01:37:47 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257535#M20823</guid>
      <dc:creator>CC182</dc:creator>
      <dc:date>2020-07-29T01:37:47Z</dc:date>
    </item>
    <item>
      <title>Re: Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257685#M20828</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232304" data-lia-user-login="MattGell" class="lia-mention lia-mention-user"&gt;MattGell&lt;/a&gt; , Try new columns like &lt;/P&gt;
&lt;P&gt;next date = =minx(filter(table,table[UserID] = earlier([UserID]) &amp;amp;&amp;amp; [NextFixedWingDate] &amp;gt;earlier([NextFixedWingDate])),[NextFixedWingDate])&lt;BR /&gt;next Origin = =minx(filter(table,table[UserID] = earlier([UserID]) &amp;amp;&amp;amp; [NextFixedWingDate] =earlier([next date])),[Origin])&lt;BR /&gt;next Destination = =minx(filter(table,table[UserID] = earlier([UserID]) &amp;amp;&amp;amp; [NextFixedWingDate] =earlier([next date])),[Destination])&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 02:38:20 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257685#M20828</guid>
      <dc:creator>amitchandak</dc:creator>
      <dc:date>2020-07-29T02:38:20Z</dc:date>
    </item>
    <item>
      <title>Re: Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257888#M20840</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232304" data-lia-user-login="MattGell" class="lia-mention lia-mention-user"&gt;MattGell&lt;/a&gt;&amp;nbsp; Create a measure as shown below.&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;The measure above shows how to calculate date for a user having fixed wing mode. You can alter at line 8 and create a new measure for other mode.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Similarly you can create measure for calculating Origin and Destination by tweaking at line 8 and 10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To test this go to report pane and choose table visual, drag AVI_USER[UserId] column and this measure.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps you. If you find this helpful and working please mark it as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 05:05:51 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257888#M20840</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T05:05:51Z</dc:date>
    </item>
    <item>
      <title>Re: Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257894#M20841</link>
      <description>&lt;P&gt;&lt;a href="javascript:void(0)" data-lia-user-mentions="" data-lia-user-uid="232304" data-lia-user-login="MattGell" class="lia-mention lia-mention-user"&gt;MattGell&lt;/a&gt;&amp;nbsp; Create a measure as shown below.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;The measure above shows how to calculate date for a user having fixed wing mode. You can alter at line 8 and create a new measure for other mode.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;Similarly you can create measure for calculating Origin and Destination by tweaking at line 8 and 10.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps you. If you find this helpful and working please mark it as solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 05:01:35 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1257894#M20841</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2020-07-29T05:01:35Z</dc:date>
    </item>
    <item>
      <title>Re: Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259329#M20897</link>
      <description>&lt;P&gt;Thats what I needed but not as a stand alone matrix - need those columns in another table, but its an awesome alternative that I will use in other reports.&lt;/P&gt;&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 13:04:37 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259329#M20897</guid>
      <dc:creator>MattGell</dc:creator>
      <dc:date>2020-07-29T13:04:37Z</dc:date>
    </item>
    <item>
      <title>Re: Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259517#M20912</link>
      <description>&lt;P&gt;Nailed it! Absolutely perfect.&lt;/P&gt;&lt;P&gt;Thank you so much&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 14:42:39 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259517#M20912</guid>
      <dc:creator>MattGell</dc:creator>
      <dc:date>2020-07-29T14:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259525#M20913</link>
      <description>&lt;P&gt;This is EXACTLY what I was looking for! works perfectly. Thank you so much&lt;/P&gt;&lt;P&gt;Matt&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 14:45:18 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259525#M20913</guid>
      <dc:creator>MattGell</dc:creator>
      <dc:date>2020-07-29T14:45:18Z</dc:date>
    </item>
    <item>
      <title>Re: Next future travel reservation per person</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259528#M20914</link>
      <description>&lt;P&gt;This helped a lot thank you, but I preferred using a measure that Sparse Coder suggested.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Jul 2020 14:46:59 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Next-future-travel-reservation-per-person/m-p/1259528#M20914</guid>
      <dc:creator>MattGell</dc:creator>
      <dc:date>2020-07-29T14:46:59Z</dc:date>
    </item>
  </channel>
</rss>

