<?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: selection d'une heure dans un segment mais dans le diagramme et/ou tableau doivent avoir plus de lig in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/4851138#M185151</link>
    <description>&lt;OL&gt;
&lt;LI&gt;Build proper Date and Time tables&lt;BR /&gt;Create a Date table that covers all days in your data and mark it as a date table.&lt;BR /&gt;Create a Time table with one row per minute from 00:00 to 23:59. Add convenience columns like Hour, Minute, and a text label for the slicer such as 07:33.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-start="671" data-end="701"&gt;Example DAX for the Time table&lt;/P&gt;
&lt;P data-start="703" data-end="885"&gt;Time =&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;GENERATESERIES( TIME(0,0,0), TIME(23,59,0), TIME(0,1,0) ),&lt;BR /&gt;"Hour", HOUR([Value]),&lt;BR /&gt;"Minute", MINUTE([Value]),&lt;BR /&gt;"TimeText", FORMAT([Value], "HH:mm")&lt;BR /&gt;)&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI data-start="890" data-end="970"&gt;Prepare your fact table&lt;BR /&gt;Split your datetime into separate date and time columns.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-start="972" data-end="1010"&gt;DateOnly = DATEVALUE( Fact[DateTime] )&lt;/P&gt;
&lt;P data-start="1012" data-end="1078"&gt;TimeOnly = TIME( HOUR(Fact[DateTime]), MINUTE(Fact[DateTime]), 0 )&lt;/P&gt;
&lt;P data-start="1080" data-end="1166"&gt;Create a simple trip key. If you have at most one trip per car per day, this is enough&lt;/P&gt;
&lt;P data-start="1168" data-end="1231"&gt;TripID = Fact[Car] &amp;amp; " " &amp;amp; FORMAT( Fact[DateOnly], "yyyymmdd" )&lt;/P&gt;
&lt;P data-start="1233" data-end="1442"&gt;If you can have many trips per car in one day, define a business rule for what counts as a new trip, for example a long gap between records, and build a stronger TripID. The rest of the pattern stays the same.&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI data-start="1447" data-end="1763"&gt;Create relationships&lt;BR /&gt;Relate Date[Date] to Fact[DateOnly] with an active relationship.&lt;BR /&gt;Relate Time[Value] to Fact[TimeOnly] with an inactive relationship. The time slicer will use the Time table, and the filter from that slicer will be applied only inside measures where you explicitly activate the time relationship.&lt;/LI&gt;
&lt;LI data-start="1768" data-end="1957"&gt;Create a measure that finds the trip for the selected minute&lt;BR /&gt;This measure says yes for rows that belong to any trip that has at least one record at the selected minute on the selected date.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-start="1959" data-end="2181"&gt;Show Trip =&lt;BR /&gt;VAR TripsAtSelectedMinute =&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;VALUES( Fact[TripID] ),&lt;BR /&gt;USERELATIONSHIP( Fact[TimeOnly], Time[Value] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF( CONTAINSROW( TripsAtSelectedMinute, Fact[TripID] ), 1, 0 )&lt;/P&gt;
&lt;OL start="5"&gt;
&lt;LI data-start="2186" data-end="2484"&gt;Build the visual and hook the filters&lt;BR /&gt;Put Voie, Car, DateOnly, TimeOnly, and any metrics you want into a table visual.&lt;BR /&gt;Add the Show Trip measure to the visual level filters and keep only value 1.&lt;BR /&gt;Use the Date table column in your date slicer.&lt;BR /&gt;Use the Time table column TimeText in your time slicer.&lt;/LI&gt;
&lt;/OL&gt;</description>
    <pubDate>Wed, 15 Oct 2025 19:28:48 GMT</pubDate>
    <dc:creator>technolog</dc:creator>
    <dc:date>2025-10-15T19:28:48Z</dc:date>
    <item>
      <title>selection d'une heure dans un segment mais dans le diagramme et/ou tableau doivent avoir plus de lig</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/2306041#M57132</link>
      <description>&lt;P&gt;&lt;FONT&gt;Bonjour&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;J’ai un tableau et un diagramme.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;lorsque je choisis une date dans un segment A, il m’affiche le numero de voitures qui parcours plus sieurs trajets exemple&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Voiture&amp;nbsp; VOIE&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;heure&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;FONT&gt;Nb mchdises&amp;nbsp;&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;Voit 1&amp;nbsp; Voie 0&amp;nbsp; &amp;nbsp; 2/01/2022/7H00&lt;/FONT&gt;&lt;FONT&gt;:&lt;/FONT&gt;&lt;FONT&gt;00&amp;nbsp; &amp;nbsp; &amp;nbsp; 22&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;voit 1&amp;nbsp; Voie 1&amp;nbsp; &amp;nbsp;2/01/2022 7H33&lt;/FONT&gt;&lt;FONT&gt;:&lt;/FONT&gt;&lt;FONT&gt;00&amp;nbsp; &amp;nbsp; &amp;nbsp; 21&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;voit 1 &lt;/FONT&gt;&lt;FONT&gt;Voie 2&amp;nbsp; &amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;01/02/2022 7H45:&lt;/FONT&gt;&lt;FONT&gt;00&amp;nbsp; &amp;nbsp; &amp;nbsp;13&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;voit 1&lt;/FONT&gt;&lt;FONT&gt;&amp;nbsp;VOIE 44&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;01/02/2022 17H22:00&amp;nbsp; 1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;j’ai un autre segment B, qui est l’heure si je choisis&amp;nbsp; 7H33 il me propose une ligne&amp;nbsp;&lt;/FONT&gt;&lt;FONT&gt;trajet 2&amp;nbsp; Voie 1&amp;nbsp; &amp;nbsp;2/01/2022 7H33&lt;/FONT&gt;&lt;FONT&gt;:&lt;/FONT&gt;&lt;FONT&gt;00&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&amp;nbsp;Je ne veux pas une ligne, je veux le trajet allant de la voie 1 à la voie 44 et la voiture qui convient une fois j’ai &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;choisi la date dans le segment A et l’heure dans le segment B&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Comment faire?&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;&lt;FONT&gt;Merci en attendant vos réponses.&amp;nbsp;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 27 Jan 2022 19:54:28 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/2306041#M57132</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-27T19:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: selection d'une heure dans un segment mais dans le diagramme et/ou tableau doivent avoir plus de lig</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/2307272#M57194</link>
      <description>&lt;P&gt;I put in english also the subject.&lt;/P&gt;&lt;P&gt;I have two segments. A segment A who allow me to choose a date and a&amp;nbsp; segment b who allow me to choose an hour minute. I want when a user choose a hour on the segment B i WANT in diagramm or table that the table have more than a line but several ligne of this hour choosing where all voie appear. Exemple if I choose&amp;nbsp;&lt;SPAN&gt;7H33 I want to see more in the diagramm or table that the line of 7H33 even the user choose in segment B 7H33.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 28 Jan 2022 09:30:56 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/2307272#M57194</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2022-01-28T09:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: selection d'une heure dans un segment mais dans le diagramme et/ou tableau doivent avoir plus de lig</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/2310217#M57401</link>
      <description>&lt;P&gt;Hi&amp;nbsp;Anonymous&lt;/LI-USER&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Can you provide some sample data and expected result both in table format to help us understand your requirement better? Do you mean that you want to have 2 slicers in the report, one is to filter the date and the other is to filter the time (hour&amp;amp;minute)?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In your current sample data, there are two dates and four time values. Do we need to filter a date then filter a time to find the lines whose datetime values are consistent with the selected values?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Best Regards, &lt;BR /&gt;Community Support Team _ Jing&lt;/P&gt;</description>
      <pubDate>Mon, 31 Jan 2022 09:00:41 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/2310217#M57401</guid>
      <dc:creator>v-jingzhang</dc:creator>
      <dc:date>2022-01-31T09:00:41Z</dc:date>
    </item>
    <item>
      <title>Re: selection d'une heure dans un segment mais dans le diagramme et/ou tableau doivent avoir plus de lig</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/4851138#M185151</link>
      <description>&lt;OL&gt;
&lt;LI&gt;Build proper Date and Time tables&lt;BR /&gt;Create a Date table that covers all days in your data and mark it as a date table.&lt;BR /&gt;Create a Time table with one row per minute from 00:00 to 23:59. Add convenience columns like Hour, Minute, and a text label for the slicer such as 07:33.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-start="671" data-end="701"&gt;Example DAX for the Time table&lt;/P&gt;
&lt;P data-start="703" data-end="885"&gt;Time =&lt;BR /&gt;ADDCOLUMNS(&lt;BR /&gt;GENERATESERIES( TIME(0,0,0), TIME(23,59,0), TIME(0,1,0) ),&lt;BR /&gt;"Hour", HOUR([Value]),&lt;BR /&gt;"Minute", MINUTE([Value]),&lt;BR /&gt;"TimeText", FORMAT([Value], "HH:mm")&lt;BR /&gt;)&lt;/P&gt;
&lt;OL start="2"&gt;
&lt;LI data-start="890" data-end="970"&gt;Prepare your fact table&lt;BR /&gt;Split your datetime into separate date and time columns.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-start="972" data-end="1010"&gt;DateOnly = DATEVALUE( Fact[DateTime] )&lt;/P&gt;
&lt;P data-start="1012" data-end="1078"&gt;TimeOnly = TIME( HOUR(Fact[DateTime]), MINUTE(Fact[DateTime]), 0 )&lt;/P&gt;
&lt;P data-start="1080" data-end="1166"&gt;Create a simple trip key. If you have at most one trip per car per day, this is enough&lt;/P&gt;
&lt;P data-start="1168" data-end="1231"&gt;TripID = Fact[Car] &amp;amp; " " &amp;amp; FORMAT( Fact[DateOnly], "yyyymmdd" )&lt;/P&gt;
&lt;P data-start="1233" data-end="1442"&gt;If you can have many trips per car in one day, define a business rule for what counts as a new trip, for example a long gap between records, and build a stronger TripID. The rest of the pattern stays the same.&lt;/P&gt;
&lt;OL start="3"&gt;
&lt;LI data-start="1447" data-end="1763"&gt;Create relationships&lt;BR /&gt;Relate Date[Date] to Fact[DateOnly] with an active relationship.&lt;BR /&gt;Relate Time[Value] to Fact[TimeOnly] with an inactive relationship. The time slicer will use the Time table, and the filter from that slicer will be applied only inside measures where you explicitly activate the time relationship.&lt;/LI&gt;
&lt;LI data-start="1768" data-end="1957"&gt;Create a measure that finds the trip for the selected minute&lt;BR /&gt;This measure says yes for rows that belong to any trip that has at least one record at the selected minute on the selected date.&lt;/LI&gt;
&lt;/OL&gt;
&lt;P data-start="1959" data-end="2181"&gt;Show Trip =&lt;BR /&gt;VAR TripsAtSelectedMinute =&lt;BR /&gt;CALCULATETABLE(&lt;BR /&gt;VALUES( Fact[TripID] ),&lt;BR /&gt;USERELATIONSHIP( Fact[TimeOnly], Time[Value] )&lt;BR /&gt;)&lt;BR /&gt;RETURN&lt;BR /&gt;IF( CONTAINSROW( TripsAtSelectedMinute, Fact[TripID] ), 1, 0 )&lt;/P&gt;
&lt;OL start="5"&gt;
&lt;LI data-start="2186" data-end="2484"&gt;Build the visual and hook the filters&lt;BR /&gt;Put Voie, Car, DateOnly, TimeOnly, and any metrics you want into a table visual.&lt;BR /&gt;Add the Show Trip measure to the visual level filters and keep only value 1.&lt;BR /&gt;Use the Date table column in your date slicer.&lt;BR /&gt;Use the Time table column TimeText in your time slicer.&lt;/LI&gt;
&lt;/OL&gt;</description>
      <pubDate>Wed, 15 Oct 2025 19:28:48 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/selection-d-une-heure-dans-un-segment-mais-dans-le-diagramme-et/m-p/4851138#M185151</guid>
      <dc:creator>technolog</dc:creator>
      <dc:date>2025-10-15T19:28:48Z</dc:date>
    </item>
  </channel>
</rss>

