Forum Discussion
Drill down from date to datetime
- Anonymous2 years ago
Please consider using DrillThrough.
While you've mentioned that drilling down to datetime granularity is not directly possible with the date hierarchy, consider using the drillthrough feature in Power BI to create a detailed page that focuses on a single day's data. Users can then select a specific day from the main report page and drill through to the detailed page to see data at the datetime level. This method provides a user-friendly way to navigate from aggregated data to detailed data.
Here I create a set of sample:
Then add a calculated column:
Date = DATE(YEAR('Table'[DateTime]),MONTH('Table'[DateTime]),DAY('Table'[DateTime]))And change the type of the column into date (yyyy-mm-dd)
Then add a clustered column chart with Date and Value field:
Then in page 2, add a clustered column chart with Datetime and Value field:
Then drag the Date field into the drillthrough bin, you can right-click the clustered column and select the drill through > page 2 to achieve similar operations.
Here for your reference:Set up drillthrough in Power BI reports - Power BI | Microsoft Learn
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes, you should use the date column with out hierarchy, and change the type of the x-axis into Categorical:
Best Regards
Zhengdong Xu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
Yes, that works. I then have to create a custom date hierarchy, sort of, by using MONTH(date) and YEAR(date) as calculated columns, and adding date (so day), month, and year, to the categorical visual to be able to drill down. Odd how many steps and workarounds are needed to simply drill down date and datetime, when the relation between those datapoints should be obvious to the software. Thank you for your help -- this is solved!