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

Enhance your career with this limited time 50% discount on Fabric and Power BI exams. Ends September 15. Request your voucher.

Reply
Anonymous
Not applicable

Conver Tableau calculation to Power bi whit SRT

 

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!!

1 REPLY 1
amitchandak
Super User
Super User

@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

Share with Power BI Enthusiasts: Full Power BI Video (20 Hours) YouTube
Microsoft Fabric Series 60+ Videos YouTube
Microsoft Fabric Hindi End to End YouTube

Helpful resources

Announcements
August Power BI Update Carousel

Power BI Monthly Update - August 2025

Check out the August 2025 Power BI update to learn about new features.

August 2025 community update carousel

Fabric Community Update - August 2025

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