<?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: How to group time intervals in DAX Commands and Tips</title>
    <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-time-intervals/m-p/3860580#M150811</link>
    <description>&lt;P&gt;New column = TIME(HOUR([Old Column]),0,0)&lt;/P&gt;</description>
    <pubDate>Tue, 23 Apr 2024 00:11:21 GMT</pubDate>
    <dc:creator>lbendlin</dc:creator>
    <dc:date>2024-04-23T00:11:21Z</dc:date>
    <item>
      <title>How to group time intervals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-time-intervals/m-p/3859965#M150775</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;My dataset has 1 column that I want to group time on the hour. The problem is, the time is on the hour, minutes, and seconds. In this column, I also have dates that represent student log in and the time. Is there a way to group the time where it accounts for on the hour log in versus multiple hour minute logins for Power BI? For example, instead of showing loggins for 12:00:50, 12:08:32, 12:04:51, I would like to look at anything between 12:00- 1:00 as 12:00.&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 22 Apr 2024 16:34:16 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-time-intervals/m-p/3859965#M150775</guid>
      <dc:creator>eb1362</dc:creator>
      <dc:date>2024-04-22T16:34:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to group time intervals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-time-intervals/m-p/3860580#M150811</link>
      <description>&lt;P&gt;New column = TIME(HOUR([Old Column]),0,0)&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 00:11:21 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-time-intervals/m-p/3860580#M150811</guid>
      <dc:creator>lbendlin</dc:creator>
      <dc:date>2024-04-23T00:11:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to group time intervals</title>
      <link>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-time-intervals/m-p/3861028#M150832</link>
      <description>&lt;P&gt;You could create a DAX query to generate a list of hours&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Calendar Hours = 
VAR _start_time =   TIME(0, 0, 0)
VAR _end_time =     TIME(23, 0, 0)
VAR _duration =     TIME(1, 0, 0)

RETURN
GENERATESERIES(_start_time, _end_time, _duration)​&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then create a calculated column&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Enrollments Completed Hour = 
IF(TIMEVALUE('YourTable'[Enrollments Completed On]) &amp;gt;= TIMEVALUE("23:30:00")
, TIMEVALUE("00:00:00")
, MROUND( TIMEVALUE('YourTable'[Enrollments Completed On]), TIME(01,00,00))
)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then you could produce a chart using a measure like the following&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Enrollments Count = CALCULATE(COUNT('YourTable'[Enrollments Completed On]) ) + 0&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;img /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Apr 2024 05:09:31 GMT</pubDate>
      <guid>https://community.fabric.microsoft.com/t5/DAX-Commands-and-Tips/How-to-group-time-intervals/m-p/3861028#M150832</guid>
      <dc:creator>aduguid</dc:creator>
      <dc:date>2024-04-23T05:09:31Z</dc:date>
    </item>
  </channel>
</rss>

