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

Register now to learn Fabric in free live sessions led by the best Microsoft experts. From Apr 16 to May 9, in English and Spanish.

Reply
Anonymous
Not applicable

Weekday Function Problem

I am having an issue with my weekday function. The logic i am using is below but its not calculating the right number for the day of the week. For example I have the date 4/28/21 which should be a wednesday. The logic below should show that date as a 3 or 4. However, it calculates it as 7. which is a Saturday. I have multiple columns that are having the same issue. What can i do to make sure that both columns below calculate the same day number?

 

Here is the logic i am using. 

 

WEEKDAY('Shipment Fact'[ODLT].[Day])
WEEKDAY('Shipment Fact'[scheduled_pick_up_from_dt].[Day])
 
 
1 ACCEPTED SOLUTION
amitchandak
Super User
Super User

@Anonymous , Try on date , not on day

 

WEEKDAY('Shipment Fact'[ODLT])
WEEKDAY('Shipment Fact'[scheduled_pick_up_from_dt])

View solution in original post

2 REPLIES 2
amitchandak
Super User
Super User

@Anonymous , Try on date , not on day

 

WEEKDAY('Shipment Fact'[ODLT])
WEEKDAY('Shipment Fact'[scheduled_pick_up_from_dt])

Anonymous
Not applicable

that did it. thank you!

Helpful resources

Announcements
Microsoft Fabric Learn Together

Microsoft Fabric Learn Together

Covering the world! 9:00-10:30 AM Sydney, 4:00-5:30 PM CET (Paris/Berlin), 7:00-8:30 PM Mexico City

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.