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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Need help to Calculate Current Year Week to Date (CY WTD) and Prior Year Week to date (PY WTD)

Hello All,

 

I need help to Calculate Current Year Week to Date (CY WTD) and Prior Year Week to date (PY WTD) in pbi. Please see screenshot below:

 

Abhishek98_0-1680547310002.png

 

 

Our current Fiscal Year started on July 3, 2022 and runs through July 1, 2023. Our prior Fiscal Year started on July 4, 2021 and ran through July 2, 2022. You can just show me how to calculate the first two columns in the screenshot and I am pretty sure I can tweak the expression a little bit to create the other columns. 

 

I have created a google sheet with my fiscal calender added. The link is: https://docs.google.com/spreadsheets/d/1pjjp65zRGJjW-wWYNYFysY_tI6ZHk3putzmzCCcEk6Q/edit?pli=1#gid=1...

 

Any help is much appreciated!!!

 

Thank you all,

3 REPLIES 3
vanessafvg
Super User
Super User

i am little unclear on what you are looking for do you want the formula for cy wtd?

 

this is a great resource for time patterns

 

https://www.daxpatterns.com/week-related-calculations/

 

 

 

 





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Anonymous
Not applicable

@vanessafvg  Yes, that is correct. I need the formula for CY WTD and PY WTD

can you please provide some sample data?





If I took the time to answer your question and I came up with a solution, please mark my post as a solution and /or give kudos freely for the effort 🙂 Thank you!

Proud to be a Super User!




Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

PBI_APRIL_CAROUSEL1

Power BI Monthly Update - April 2024

Check out the April 2024 Power BI update to learn about new features.

April Fabric Community Update

Fabric Community Update - April 2024

Find out what's new and trending in the Fabric Community.