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

Compete to become Power BI Data Viz World Champion! First round ends August 18th. Get started.

Reply
silveryaroma
Frequent Visitor

Understanding date hierarchy

Hi Forum,

 

I am trying to understand the logic behind the date hierarchy, and ask for your help.

 

In my date table, I have a Date (with a hierarchy) and a sepeare Year column that I manually created. 

However, I just noticed that if I calculate a measure using Table[Date].[Year], the year slicer should be based on Table[Date].[Year], not Table[Year]. If I use the Table[Year] variable for the slicer, the measure outcome is completely wrong. 

 

What is the reason?

1 ACCEPTED SOLUTION
Daniel29195
Super User
Super User

@silveryaroma 

 

 

when you let power bi create the date hierarchy you are using, power bi in the backend will create w table for each date column that you have in your model . 

when you use year from the hierarchy, your are using the year from the hidden table. 

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-auto-date-time

 

Daniel29195_0-1706866045310.png

 

 

best practice : 
disable auto/ datetime  from the options , and create your year date table with the columns that you need . 

learn here how to create date able using powr query  :

https://radacad.com/all-in-one-script-to-create-date-dimension-in-power-bi-using-power-query

 

 

let me know if this works for you . 

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

View solution in original post

1 REPLY 1
Daniel29195
Super User
Super User

@silveryaroma 

 

 

when you let power bi create the date hierarchy you are using, power bi in the backend will create w table for each date column that you have in your model . 

when you use year from the hierarchy, your are using the year from the hidden table. 

https://learn.microsoft.com/en-us/power-bi/transform-model/desktop-auto-date-time

 

Daniel29195_0-1706866045310.png

 

 

best practice : 
disable auto/ datetime  from the options , and create your year date table with the columns that you need . 

learn here how to create date able using powr query  :

https://radacad.com/all-in-one-script-to-create-date-dimension-in-power-bi-using-power-query

 

 

let me know if this works for you . 

 

 

 

 

If my answer helped sort things out for you, i would appreciate a thumbs up 👍 and mark it as the solution
It makes a difference and might help someone else too. Thanks for spreading the good vibes! 🤠

 

 

Helpful resources

Announcements
July 2025 community update carousel

Fabric Community Update - July 2025

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

July PBI25 Carousel

Power BI Monthly Update - July 2025

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