Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
Anonymous
Not applicable

Automatic Hierarchy with YEAR, MONTH, DAY, HOUR

Hi all, 

I would like to add to an existing automatic hierarchy the HOUR level. 

My data are in the format DD/MM/YY HH:MM:SS, and power BI automatically creates the hierarchy with YEAR, QUARTER, MONTH, DAY... i would need also the HOUR to analyze data by the hour.

 

Since in the model I have multiple coulumn with Datas (around 50 different timestamps) i'm looking for something automatic as a flag or something else to do that for all datas.

 

It seems stupid that power BI already have the hour info and cannot add a hierarchy level automatically, or at least, i didnt find that.

 

Thanks all!

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , I think you can try creating a custom Hierarchy

 

https://stoneridgesoftware.com/creating-hierarchies-in-power-bi/
https://www.youtube.com/watch?v=x6vXVJZ_eTY

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

Noted, and thank you.

However, creating a custom hierarchy implies that i would need to create a custom hierarchy for all datas (50 coulum).

 

Is there any whay to avoid this problem

Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.