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

Score big with last-minute savings on the final tickets to FabCon Vienna. Secure your discount

Reply
Anonymous
Not applicable

I have the following report query from tableau and would like to replicate it within Power BI.

DATEADD( 'day', -1, DATEADD( 'week', 1, DATETRUNC( 'week', [insp DateCreated] )))

1 ACCEPTED SOLUTION
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario.

b1.png

 

You may create a calculated column as below.

modified date = 'Table'[insp DateCreated]-(WEEKDAY('Table'[insp DateCreated])-1)+7-1

 

Result:

b2.png

 

If I misunderstand your thought, please show me your expected result. Do mask sensitive data before uploading. Thanks.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

3 REPLIES 3
v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

If you take the answer of someone, please mark it as the solution to help the other members who have same problems find it more quickly. If not, let me know and I'll try to help you further. Thanks.

 

Best Regards

Allan

v-alq-msft
Community Support
Community Support

Hi, @Anonymous 

 

Based on your description, I created data to reproduce your scenario.

b1.png

 

You may create a calculated column as below.

modified date = 'Table'[insp DateCreated]-(WEEKDAY('Table'[insp DateCreated])-1)+7-1

 

Result:

b2.png

 

If I misunderstand your thought, please show me your expected result. Do mask sensitive data before uploading. Thanks.

 

Best Regards

Allan

 

If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

VasTg
Memorable Member
Memorable Member

@Anonymous 

 

Does it convert the date to week and add 1 week and subtract 1 day?

 

Trying to identify end of week?

 

[Date] + 7 - WEEKDAY([DATE],2)

 

Refer to this post..

https://community.powerbi.com/t5/Desktop/End-of-Week-DAX-for-non-standard-workweek-Mon-Sun/td-p/217988

 

If it helps, mark it as a solution

Kudos are nice too.

Connect on LinkedIn

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.