Forum Discussion
SAMEPERIODLASTYEAR - does not work with Weeknr, any alternatives?
Hi, i use SAMEPERIODLASTYEAR mostly with success on day and month level, however, it does not seem to work with Weeknumbers, as it uses the dates from the present year instead of the dates in the week does anybody has a workaround:
My formula
bilingual , Please make sure date table marked as date table. On right click of the table, there is an option
There are few challenges give at
Please refer for Week vs week data
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123
2 Replies
- amitchandak
Super User
bilingual , Please make sure date table marked as date table. On right click of the table, there is an option
There are few challenges give at
Please refer for Week vs week data
https://medium.com/@amitchandak.1978/power-bi-wtd-questions-time-intelligence-4-5-98c30fab69d3
https://community.powerbi.com/t5/Community-Blog/Week-Is-Not-So-Weak-WTD-Last-WTD-and-This-Week-vs-Last-Week/ba-p/1051123 - AnonymousNot applicable
Hi bilingual,
AFAIK, time intelligence functions required a complete regular version calendar table. So if you want to use them, you need to double-check on it and correspondent relationships to the fact table. (time intelligence functions look simple to use but they still contain a few limitations)
In addition, you can also try to use date functions to manually define the calculation date range to get the same result, it not required the calendar table.
Time Intelligence "The Hard Way" (TITHW)
Regards,
Xiaoxin Sheng