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

Get Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Learn more

Reply
Anonymous
Not applicable

start of week date key

I have built a date key in order to get start of week dates for my data:

 

DateKey = CALENDAR(DATE(2000,01,01),DATE(2050,12,31))
 
then
 
WeekStartDate = DateKey[Date]- WEEKDAY(DateKey[Date],2)+1 // Monday as Week start date
 
However I keep arriving at a many to many relationship when I try to RELATE the DateKey to my Core Data table.
 
Is there any way to create a DateKey with just start of the week dates (and index)
 
NOTE: I cant manually enter the start of the week data and RELATE based on that.
 
Can anyone help?
3 REPLIES 3
amitchandak
Super User
Super User

@Anonymous , case your table has the start of week date. You need to join it with the date key.

Start of Week in Date table will make sure a similar display in visual.

 

If not share what is there on the fact side. I shall try suggest the join

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube
Anonymous
Not applicable

The only way I can t get it to work is using the single date variable:

Single date picture.GIF

Anonymous
Not applicable

However I would like to use SoW (START OF WEEK) and WeekStartDate relationship

Single SoW date picture.GIF

 

except having a 1 to many relationship and not many to many

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.

Top Solution Authors