Advance your Data & AI career with 50 days of live learning, dataviz contests, hands-on challenges, study groups & certifications and more!
Get registeredGet Fabric Certified for FREE during Fabric Data Days. Don't miss your chance! Request now
Dear all,
is it possible to calculate instead of Year - to - Date ? Year to Calendarweek ?
meaning as soon as i set a slicer to a certain calendar week it will calculate the value until the specific calendar week ?
kindest regards,
Miguel
Solved! Go to Solution.
@Anonymous , Check the solution provided by @Shishir22 .
Or with help from a date table
YTD= CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year]) && 'Date'[Week] <= Max('Date'[Week]) ))
LYTD = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-1 && 'Date'[Week] <= Max('Date'[Week])))
@Anonymous , Check the solution provided by @Shishir22 .
Or with help from a date table
YTD= CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year]) && 'Date'[Week] <= Max('Date'[Week]) ))
LYTD = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Year]=max('Date'[Year])-1 && 'Date'[Week] <= Max('Date'[Week])))
thanks ! it worked
Hello @Anonymous ,
You can set weeknumber to slicer and set it to Less then or equal to as shown below.
Please mark it as answer if it solves your issue. Kudos are also appreciated.
Check out the November 2025 Power BI update to learn about new features.
Advance your Data & AI career with 50 days of live learning, contests, hands-on challenges, study groups & certifications and more!