The ultimate Fabric, Power BI, SQL, and AI community-led learning event. Save €200 with code FABCOMM.
Get registeredEnhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends August 31st. Request your voucher.
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.:
It just repeats the MAX date over and over again.
Any help would be greatly appreciated.
Thank you much...
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] ))
User | Count |
---|---|
13 | |
8 | |
6 | |
6 | |
5 |
User | Count |
---|---|
24 | |
14 | |
13 | |
8 | |
8 |