Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.
Hi all!
I need your help, I'm trying to use a Tableau calculation, but I can't.
I want to put you in context, I can see stock's unit for all the weeks, but every week I have a new one. I need to show only the last stock week and the same time the last 13 sale's weeks.
///EOP Week
INT(MID(STR({EXCLUDE [Week]: MAX({INCLUDE [Week]: MAX([Year Week])})}),5,99))
//Year Week
INT(STR(YEAR([Date]))+IIF(LEN(STR([Week]))=1,"0"+STR(Week),STR([Week])))
thanks in advance!!
@Anonymous , Can you share sample data and sample output in table format? Or a sample pbix after removing sensitive data. This is not making it clear.
refer if these can help
Power BI — Week on Week and WTD
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
https://www.youtube.com/watch?v=pnAesWxYgJ8
Need of an Independent Date Table:https://www.youtube.com/watch?v=44fGGmg9fHI