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
jakubpetr
Frequent Visitor

Rest API date hierarchy

I can create datetime via rest api, push data, it shows as pm/am (indicating it loaded data correctly).

What I cannot is create Date hierarchy, such as here https://5minutebi.com/2017/11/29/how-to-use-powerbi-date-hierarchy/. If I use excel and import data as csv, the date hierarchy is created automatically.

Any hint on how to use DateTime as Date hierarchy? Is it even possible?

1 REPLY 1
JirkaZ
Solution Specialist
Solution Specialist

@jakubpetr Date hierarchy is created at model level (not dataset level). And it's done by marking a table (typically a calendar table) as a Date Table. You should always turn off the time intelligence setting in the options of each PBIX file (option is called Auto date/time). 

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.