<?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: Display (in a matrix) next available departure time of multiple bus services in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-matrix-next-available-departure-time-of-multiple/m-p/3594369#M138857</link>
    <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I just realised that some data from arrival time/date some how got mixed up with departure time/date.&lt;BR /&gt;Apologize for the mistake&lt;BR /&gt;Here is a new file&lt;BR /&gt;&lt;A title="DataOnStop" href="https://1drv.ms/u/s!AuPvDfSGZPBCgapRKuTCHUSf19219A?e=okHSWx" target="_self"&gt;DataOnStop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 20 Dec 2023 16:04:27 GMT</pubDate>
    <dc:creator>RedDwarf_803</dc:creator>
    <dc:date>2023-12-20T16:04:27Z</dc:date>
    <item>
      <title>Display (in a matrix) next available departure time of multiple bus services</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-matrix-next-available-departure-time-of-multiple/m-p/3594162#M138851</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;If I have posted my question in the wrong forum just let me know and I correct my mistake.&lt;BR /&gt;&lt;BR /&gt;Basic plot:&lt;BR /&gt;I want to display (in a matrix) next available departure time of multiple bus services that I based the arrival time of selected bus service on a selected bus stop.&lt;BR /&gt;&lt;BR /&gt;My idea was to create two matrix visuals&lt;BR /&gt;Visual A:&lt;BR /&gt;Create a measure that displays the next departure time of each bus service&lt;BR /&gt;Visual B&lt;BR /&gt;Create a measure that calculate the time differences between (bus service) departure time from the selected bus service arrival time.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;I’ve tried several DAX measures and now om stuck.&lt;BR /&gt;My try-outs have been as calculated measures.&lt;BR /&gt;&lt;BR /&gt;By a slicer the user selects:&lt;BR /&gt;Operating date (one date)&lt;BR /&gt;StopAreaNumber (one single bus stop)&lt;BR /&gt;TechnicalLineNumber of the bus service that arrives to the bus stop.&lt;BR /&gt;&lt;BR /&gt;Each bus service can have 1 or 2 directions (DirectionCode) of departure from the selected bus stop.&lt;BR /&gt;&lt;BR /&gt;The expected result should look like this.&lt;BR /&gt;&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;This I my latest result in the visual.&lt;BR /&gt;Red boxes/arrows display wrong departure time.&lt;BR /&gt;Green boxes shows correct data&lt;BR /&gt;&lt;img /&gt;&lt;BR /&gt;&lt;BR /&gt;My dax measure&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;NextDeparture = 
VAR currentDate = SELECTEDVALUE(TraficOnStopArea[OperatingDayDate])
VAR busStop = SELECTEDVALUE(TraficOnStopArea[StopAreaNumber])
VAR data = CALCULATETABLE(TraficOnStopArea, FILTER(TraficOnStopArea,TraficOnStopArea[OperatingDayDate].[Date] = currentDate &amp;amp;&amp;amp;  TraficOnStopArea[StopAreaNumber]= busStop))
VAR nextDepartureTime = MAXX(data,TraficOnStopArea[PlannedDepartureTime])


return
nextDepartureTime&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;&lt;BR /&gt;The linked pbix file is just a small version of a larger dataset.&lt;BR /&gt;&lt;A title="DataOnStop" href="https://1drv.ms/u/s!AuPvDfSGZPBCgapRKuTCHUSf19219A?e=i6Ytw7" target="_self"&gt;DataOnStop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 14:27:11 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-matrix-next-available-departure-time-of-multiple/m-p/3594162#M138851</guid>
      <dc:creator>RedDwarf_803</dc:creator>
      <dc:date>2023-12-20T14:27:11Z</dc:date>
    </item>
    <item>
      <title>Re: Display (in a matrix) next available departure time of multiple bus services</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-matrix-next-available-departure-time-of-multiple/m-p/3594369#M138857</link>
      <description>&lt;P&gt;Hi&lt;BR /&gt;&lt;BR /&gt;I just realised that some data from arrival time/date some how got mixed up with departure time/date.&lt;BR /&gt;Apologize for the mistake&lt;BR /&gt;Here is a new file&lt;BR /&gt;&lt;A title="DataOnStop" href="https://1drv.ms/u/s!AuPvDfSGZPBCgapRKuTCHUSf19219A?e=okHSWx" target="_self"&gt;DataOnStop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Dec 2023 16:04:27 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/Display-in-a-matrix-next-available-departure-time-of-multiple/m-p/3594369#M138857</guid>
      <dc:creator>RedDwarf_803</dc:creator>
      <dc:date>2023-12-20T16:04:27Z</dc:date>
    </item>
  </channel>
</rss>

