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

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

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.