cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
czjames
Frequent Visitor

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 IV
Super User IV

@czjames , Try on date , not on day

 

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

2 REPLIES 2
amitchandak
Super User IV
Super User IV

@czjames , Try on date , not on day

 

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



Did I answer your question? Mark my post as a solution! Appreciate your Kudos!!
Dashboard of My Blogs !! YouTube Channel !! Connect on Linkedin

Proud to be a Super User!

View solution in original post

that did it. thank you!

Helpful resources

Announcements
PBI User Groups

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group!

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are You Ready?

Test your skills now with the Cloud Skills Challenge.

Top Solution Authors