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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

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

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
RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.