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
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
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.