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

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now! Learn more

Reply
sid-poly
Helper I
Helper I

Change The Relative Date to Tuesday from Sunday in Power BI/Query

There is a Table with a column date in it. There is another calendar table as well which provides the dates for the specific range.

 

During the Visualisation when we use the realtive date filter. It shows possible options of in this week, preivous, next week. Current problem to solve is to change the realtive date filter to "Is in this" > Week where the week starts from "Tuesday" and not "Sunday/Monday".

 

How can this be achieved?

1 REPLY 1
BA_Pete
Super User
Super User

Hi @sid-poly ,

 

I don't think there's any way to change this within the native relative date slice.

I would suggest that you add a new column in your calendar table, something like this:

let todayDate = Date.From(DateTime.LocalNow()) in
if todayDate >= Date.StartOfWeek(Date.AddDays(todayDate, - 7), Day.Tuesday)
    and todayDate <= Date.EndOfWeek(Date.AddDays(todayDate, - 7), Day.Tuesday)
then "Last Week" 
else if todayDate >= Date.StartOfWeek(todayDate, Day.Tuesday)
    and todayDate <= Date.EndOfWeek(todayDate, Day.Tuesday)
then "This Week"
else if todayDate >= Date.StartOfWeek(Date.AddDays(todayDate, + 7), Day.Tuesday)
    and todayDate <= Date.EndOfWeek(Date.AddDays(todayDate, + 7), Day.Tuesday)
then "Next Week"
else null

 

Pete



Now accepting Kudos! If my post helped you, why not give it a thumbs-up?

Proud to be a Datanaut!




Helpful resources

Announcements
Power BI DataViz World Championships

Power BI Dataviz World Championships

The Power BI Data Visualization World Championships is back! Get ahead of the game and start preparing now!

December 2025 Power BI Update Carousel

Power BI Monthly Update - December 2025

Check out the December 2025 Power BI Holiday Recap!

FabCon Atlanta 2026 carousel

FabCon Atlanta 2026

Join us at FabCon Atlanta, March 16-20, for the ultimate Fabric, Power BI, AI and SQL community-led event. Save $200 with code FABCOMM.