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

Calling all Data Engineers! Fabric Data Engineer (Exam DP-700) live sessions are back! Starting October 16th. Sign up.

Reply
Anonymous
Not applicable

YTD using week numbers

Hi All,

 

First time posting here, I hope everyone is doing well! 

 

I'm trying to build a YTD measure but running into an issue. The date column I'm using is week ending (we receive POS data weekly, not daily at my company). When I run YTD sales using normal time intelligence, it's pulling in sales for ending Jan 2 (see snapshot below). We consider this week to be 2021 sales, making my YTD numbers inaccurate. Note that I cannot simply calculate the week beginning for each week to "move" this week to 2021 because it causing an issue on another year.

 

Wondering is there's a way to run YTD sales using week numbers from the "Week" column, instead of dates. I'm able to identify the current week using a MAX function, so I am able to identify wk1 and current week's values.

 

Hoping this makes sense and someone has a fix. Thanks in advance!!!

 

d_luko_1-1659740127555.png

 

 

 

1 ACCEPTED SOLUTION
daXtreme
Solution Sage
Solution Sage
2 REPLIES 2
Anonymous
Not applicable

Thanks @daXtreme! The answer was definitely in there. Still working through setting up my calendar correctly, but this is what I was looking for. Thanks!

daXtreme
Solution Sage
Solution Sage

Helpful resources

Announcements
FabCon Global Hackathon Carousel

FabCon Global Hackathon

Join the Fabric FabCon Global Hackathon—running virtually through Nov 3. Open to all skill levels. $10,000 in prizes!

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.