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
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
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.

Top Kudoed Authors