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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

Reply
MichaelG1117
Helper I
Helper I

Creating WEEKING ENDING NUMBER Directly Into a Date Table

Hi Everyone, 

 

Wondering if anyone knows how to create a WEEK ENDING NUMBER by date directly into the creating of a Date Table. 

 

This is what I have, but the Week Ending Number Column definitely isn't correct, "Week Ending By" is at the bottom.: 

 

Captureu.PNG

 It just repeats the MAX date over and over again. 

 

Capturev.PNG

 

 

 

Any help would be greatly appreciated. 

 

Thank you much...

1 REPLY 1
Jihwan_Kim
Super User
Super User

HI,

I am not sure how your semantic model looks like, but try something like below whether it suits your requirement.

 

"Week End Num",
MAXX ( RELATEDTABLE ( 'Orders' ), 'Orders'[ShipDateKey] ))

If this post helps, then please consider accepting it as the solution to help other members find it faster, and give a big thumbs up.


Go to My LinkedIn Page


Helpful resources

Announcements
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

Top Solution Authors