title: How to include 'Time' in Date Hierarchy in Power BI
body: <p>I am working on a report in Power BI.  One of the tables in my data model collects sensor data.  It has the following columns:</p>
  
  <ul>
  <li><strong>Serial</strong> (int) i.e. 123456789</li>
  <li><strong>Timestamp</strong> (datetime) i.e. 12/20/2016 12:04:23 PM</li>
  <li><strong>Reading</strong> (decimal) i.e.  123.456</li>
  </ul>
  
  <p>A new record is added every few minutes, with the current reading from the sensor.</p>
  
  <p>Power BI automatically creates a Hierarchy for the datetime column, which includes Year, Quarter, Month and Day.  So, when you add a visual to your report, you can easily drill down to each of those levels.</p>
  
  <p>I would like to include the "Time" part of the data in the hierarchy, so that you can drill down one more level after "Day", and see the detailed readings during that period.</p>
  
  <p>I have already set up a Date table, using the CALENDARAUTO() function, added all of the appropriate columns, and related it to my Readings table in order to summarize the data by date - which works great.  But it does not include the "Time" dimension.</p>
  
  <p>I have looked at the following SO questions, but they didn't help:</p>
  
  <p><a href="https://stackoverflow.com/questions/37174696/time-based-drilldowns-in-power-bi-powered-by-azure-data-warehouse">Time-based drilldowns in Power BI powered by Azure Data Warehouse</a></p>
  
  <p><a href="https://stackoverflow.com/questions/38077457/creating-time-factors-in-powerbi">Creating time factors in PowerBI</a></p>
  
  <p>I also found this article, but it was confusing:</p>
  
  <p><a href="https://ginameronek.com/2014/10/01/its-just-a-matter-of-time-power-bi-date-time-dimension-toolkit/" rel="noreferrer">Power BI Date &amp; Time Dimension Toolkit</a></p>
  
  <p>Any ideas?</p>
  
  <p>Thanks!</p>