This time we’re going bigger than ever. Fabric, Power BI, SQL, AI and more. We're covering it all. You won't want to miss it.
Learn moreLevel up your Power BI skills this month - build one visual each week and tell better stories with data! Get started
Hello,
I have a visual that lists the years, WTD totals, YTD totals and YoY% based on which week of the year is selected from a slicer. I have three slicers for Region, Year and Week#. The year slicer does not interact with this visual since it already lists the years.
I was able to calculate the YTD totals based on the Week # selection using this measure:
Any help will be appreciated!
Thanks!
Solved! Go to Solution.
Hi @mariahMC ,
Please try the following DAX for your Total Prev YTD measure and let me know if it achieves your desired result:
Test Total Prev YTD :=
VAR SelectedWeek = SELECTEDVALUE('Calendar Table'[Week Number])
VAR SelectedYear = SELECTEDVALUE('Calendar Table'[Year])
RETURN
CALCULATE(
[Case Volume],
FILTER(
ALL('Calendar Table'),
'Calendar Table'[Year] = SelectedYear - 1 &&
'Calendar Table'[Week Number] <= SelectedWeek
)
)
If this helped, please mark it as the solution so others can benefit too. And if you found it useful, kudos are always appreciated.
Thanks,
Samson
Connect with me on LinkedIn
Check out my Blog
Going to the European Microsoft Fabric Community Conference? Check out my Session
Hi, it will not work since date functions are not for weekly calculations. What you can do is, create another measure like below:
Thank you, this measure worked as well!
Hi @mariahMC ,
Please try the following DAX for your Total Prev YTD measure and let me know if it achieves your desired result:
Test Total Prev YTD :=
VAR SelectedWeek = SELECTEDVALUE('Calendar Table'[Week Number])
VAR SelectedYear = SELECTEDVALUE('Calendar Table'[Year])
RETURN
CALCULATE(
[Case Volume],
FILTER(
ALL('Calendar Table'),
'Calendar Table'[Year] = SelectedYear - 1 &&
'Calendar Table'[Week Number] <= SelectedWeek
)
)
If this helped, please mark it as the solution so others can benefit too. And if you found it useful, kudos are always appreciated.
Thanks,
Samson
Connect with me on LinkedIn
Check out my Blog
Going to the European Microsoft Fabric Community Conference? Check out my Session
Thank you this worked perfectly.
Awesome, glad to hear this worked!
Check out the April 2026 Power BI update to learn about new features.
Sign up to receive a private message when registration opens and key events begin.
If you have recently started exploring Fabric, we'd love to hear how it's going. Your feedback can help with product improvements.
| User | Count |
|---|---|
| 35 | |
| 32 | |
| 25 | |
| 22 | |
| 18 |
| User | Count |
|---|---|
| 67 | |
| 36 | |
| 32 | |
| 25 | |
| 23 |