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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply

Can't create a date hierarchy

Hello

As you can see i have two columns of date [DATE ENTREE] and [DATE SORTIE] underneath. I can create a hierarchy (year, trim, month, day) for the second one but note for the first one.  I do not understand because formats are the same..

Sans titre-1.jpg

1 ACCEPTED SOLUTION

Hello

The problem came from a lack of relation between two tables.

Thank you for your help.

View solution in original post

4 REPLIES 4
MFelix
Super User
Super User

Hi @PatrickByGecko ,

 

I'm assuming that looking to the image you have the Auto date/time intelligence turn on on your model so on a table the automatic hierarchy will only be created on one column that is present on the relationship.

 

On your case confirm if the column [DATE SORTIE] makes part of a one to many relationship with another table?

 

As you can see in the image below the column that as the hierarchy is the calendar date and not the ENTREE because it as the relationship active:

Untitled.png

 

Regards,

MFelix


Regards

Miguel Félix


Did I answer your question? Mark my post as a solution!

Proud to be a Super User!

Check out my blog: Power BI em Português



You are right. The problem was coming from a relation ship.

But now I get problem when comparing dates (MM/YY) in the script underneath (I'm sure there is CDI at theses dates) and my counters return nothing. I suppose my comparison of date is wrong...?

Sans titre-1.jpg

Sans titre-2.jpg

I found a solution to compare Dates using [MONTH] and [YEAR].

But a new problem occured.

As you can see for my counters (CDI NIORT for instance) some months are repeated instead of beeing cumulated (have a look at the very bottom of the screen "fevrier 2019". How can I explain that?

Sans titre-1.jpg

Hello

The problem came from a lack of relation between two tables.

Thank you for your help.

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

October Power BI Update Carousel

Power BI Monthly Update - October 2025

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

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.