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

Be one of the first to start using Fabric Databases. View on-demand sessions with database experts and the Microsoft product team to learn just how easy it is to get started. Watch now

Reply
Ashik008
Frequent Visitor

Current week's Tuesday date

Hi all,

I need help with date column .

I have a date column which shows current date using Today() function . I need to create another column which showing the Tuesday' date of that week .

for example if today is 6/23/2024, column should show 6/25/2024 and it changes when next week starts 

eg when6/30/2024 starts , new column changes to 7/2/2024 like that .please help.

3 REPLIES 3
v-xinruzhu-msft
Community Support
Community Support

Hi,

Thanks for the solution @ajohnso2  provided, and i want to offer some more infotmation for user to refer to.
hello @Ashik008 , you can refer to the following code.

Based on the today column, create a new calculated column.

Column 2 = var a=WEEKDAY([Today],1)
return [Today]-a+3

Output

vxinruzhumsft_0-1719283728137.png

And you can refer to the attachment

 

Best Regards!

Yolo Zhu

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

 

Ashik008
Frequent Visitor

Hi all,

I need help with date column .

I have a date column which shows current date using Today() function . I need to create another column which showing the Tuesday' date of that week .

for example if today is 6/23/2024, column should show 6/25/2024 and it changes when next week starts 

eg when6/30/2024 starts , new column changes to 7/2/2024 like that .please help

ajohnso2
Continued Contributor
Continued Contributor

You really should look into having a date dimension if you dont already, this would be the easiest option.

For example, if you had a column holding the day of week number - you would basically have your answer

Helpful resources

Announcements
Las Vegas 2025

Join us at the Microsoft Fabric Community Conference

March 31 - April 2, 2025, in Las Vegas, Nevada. Use code MSCUST for a $150 discount!

Dec Fabric Community Survey

We want your feedback!

Your insights matter. That’s why we created a quick survey to learn about your experience finding answers to technical questions.

ArunFabCon

Microsoft Fabric Community Conference 2025

Arun Ulag shares exciting details about the Microsoft Fabric Conference 2025, which will be held in Las Vegas, NV.

December 2024

A Year in Review - December 2024

Find out what content was popular in the Fabric community during 2024.