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

Grow your Fabric skills and prepare for the DP-600 certification exam by completing the latest Microsoft Fabric challenge.

Reply
sg09
New Member

first day of week

Hi,

When filtering data on query editor , lets say applying a filter for data this week or last week, the system defines a week is from Sunday to Saturday. How can i change it so that a week is defined from Monday to Sunday ?

 

1 ACCEPTED SOLUTION
elliotdixon
Responsive Resident
Responsive Resident

Hi @sg09
This was an issue for me just the other day
Looking at the DAX languate https://support.office.com/en-sg/article/WEEKDAY-Function-DAX-cadec4bc-cf24-401a-bef4-da3ab8f2cc91

 

If you are using a week column you need to change the <return_type> to a 1

WEEKDAY(<date>, <return_type>) should be WEEKDAY([date],1)

This makes the start of the week Monday instead of Sunday.

Rgds
ED

View solution in original post

1 REPLY 1
elliotdixon
Responsive Resident
Responsive Resident

Hi @sg09
This was an issue for me just the other day
Looking at the DAX languate https://support.office.com/en-sg/article/WEEKDAY-Function-DAX-cadec4bc-cf24-401a-bef4-da3ab8f2cc91

 

If you are using a week column you need to change the <return_type> to a 1

WEEKDAY(<date>, <return_type>) should be WEEKDAY([date],1)

This makes the start of the week Monday instead of Sunday.

Rgds
ED

Helpful resources

Announcements
Europe Fabric Conference

Europe’s largest Microsoft Fabric Community Conference

Join the community in Stockholm for expert Microsoft Fabric learning including a very exciting keynote from Arun Ulag, Corporate Vice President, Azure Data.

RTI Forums Carousel3

New forum boards available in Real-Time Intelligence.

Ask questions in Eventhouse and KQL, Eventstream, and Reflex.

MayPowerBICarousel1

Power BI Monthly Update - May 2024

Check out the May 2024 Power BI update to learn about new features.