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

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

Reply
NovaBI
Post Patron
Post Patron

How to create a dim_date table when the data table has only Years/Month/Weeks as whole numbers?

Hi everyone,

 

i formally know how to use the time intelligence in PowerBI, but I am struggeling understanding the concept of date tables in detail for a specific issue.

 

My original date table consists of 2 Years, 12 Months and 53 weeks per year (everything is imported as whole number) as well as the values that are to be compared (e.g. Sales, already sumed into the distinct week). I created a new dim_date table where i put in everything (days, weeks, Quarters, years,....) starting from 1/1/2019 until 12/31/2020.

 

How do i make the time intelligence work for example for an YoY or LYsameperiod? I tried to use relationsship's manager and combined year and year, but this seems not working properly.

 

Any best practice or a hint how to fix my issue?

1 ACCEPTED SOLUTION
Greg_Deckler
Community Champion
Community Champion

When time "intelligence" fails you; and at some point it will, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...

View solution in original post

2 REPLIES 2
Greg_Deckler
Community Champion
Community Champion

When time "intelligence" fails you; and at some point it will, see if my Time Intelligence the Hard Way provides a different way of accomplishing what you are going for.

https://community.powerbi.com/t5/Quick-Measures-Gallery/Time-Intelligence-quot-The-Hard-Way-quot-TIT...



Follow on LinkedIn
@ me in replies or I'll lose your thread!!!
Instead of a Kudo, please vote for this idea
Become an expert!: Enterprise DNA
External Tools: MSHGQM
YouTube Channel!: Microsoft Hates Greg
Latest book!:
DAX For Humans

DAX is easy, CALCULATE makes DAX hard...
az38
Community Champion
Community Champion

@NovaBI 

Usually, 

there is a Calendar dim table with date field

and a fact table with date field which connected as key to Calendar dim table

if you have only Year field in fact table it can lead you to many-to-many relationships

So, you can to define a business logic to relationships, or add a measures to Calendar table which will calculate YoY, for example


do not hesitate to give a kudo to useful posts and mark solutions as solution
LinkedIn

Helpful resources

Announcements
Fabric Data Days Carousel

Fabric Data Days

Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!

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.