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

Power BI is turning 10! Let’s celebrate together with dataviz contests, interactive sessions, and giveaways. Register now.

Reply
bdehning
Post Prodigy
Post Prodigy

Need Date Hierarchy

I copied a table from a power Bi Report that had a YEARMonth Date Hierarchy.  When I placed table

into my other Power Bi Report, I no longer see the Calendar Icon next to YEARMonth or the Date Hierarchy with Year, Quarter Month and Day is not there either.  Why did it not copy and how do I create a Date Hierarchy for YEARMonth Date Field in my new report?

1 ACCEPTED SOLUTION
bdehning
Post Prodigy
Post Prodigy

I did not realilze I had turned off Auto date/time under Time Intelligence.  I turned it back on and I see Date Hierarchy.  

View solution in original post

3 REPLIES 3
bdehning
Post Prodigy
Post Prodigy

I did not realilze I had turned off Auto date/time under Time Intelligence.  I turned it back on and I see Date Hierarchy.  

Auto Date Time is a bad idea, it should be off in the majority of cases.  Use your own hierarchies.

lucadelicio
Super User
Super User

Hi,
you need to create a column date type from the text YYYYMM.
So you can use the DATE(<year>, <month>, <day>) dax function.
You can try something like this:
DateType =
DATE(LEFT(YYYYMM, 4), RIGHT(YYYYMM, 2), "01")
Then set this column as Date type.

Pay attention to type during the conversion.
Mark as solution my reply if i help you.
Thank you.



Luca D'Elicio

LinkedIn Profile

Helpful resources

Announcements
June 2025 Power BI Update Carousel

Power BI Monthly Update - June 2025

Check out the June 2025 Power BI update to learn about new features.

June 2025 community update carousel

Fabric Community Update - June 2025

Find out what's new and trending in the Fabric community.