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

Earn a 50% discount on the DP-600 certification exam by completing the Fabric 30 Days to Learn It challenge.

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
LearnSurvey

Fabric certifications survey

Certification feedback opportunity for the community.

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.

Top Solution Authors