I dont have any data yet to provide but would like to know if this is possible and how would I do it?
Go to Solution.
Is your issue solved? If the issue has been solved, please adopt the solution to help others.
You need a weeknum column to define the same period last year.
Create measure as:
If you still have some question, please don't hesitate to let me known.
Is that the answer you're looking for? If this post helps, then please consider Accept it as the solution. Really appreciate!
View solution in original post
@sraj , same week day is 364 days behind
example, with help from date table
Week Year behind Sales = CALCULATE(SUM(Sales[Sales Amount]),dateadd('Date'[Date],-364,Day))
how to deal with week vs week refer to my blog
It need a new column for week rank in date Table
Week Rank = RANKX(all('Date'),'Date'[Year Week],,ASC,Dense) //YYYYWW format
measures examples This Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])))Last Week = CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=max('Date'[Week Rank])-1))Last year Week= CALCULATE(sum('Table'[Qty]), FILTER(ALL('Date'),'Date'[Week Rank]=(max('Date'[Week Rank]) -52)))
Power BI — Week on Week and WTD https://firstname.lastname@example.org/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-La...https://www.youtube.com/watch?v=pnAesWxYgJ8
Learn how to create your own user groups today!
Click here to read more about the November 2021 Updates!
Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.