Forum Discussion
Power BI Desktop - Day Name Issue
- 9 years ago
Well. I'm not a DAX-expert, but DAY(date) gives you 3 (for February 3), and the datevalue of 3 in Power BI is Tuesday, January 2, 1900.
I guess you should remove the DAY() part from your formula, so it will read something like =FORMAT([Date], "dddd")
Well. I'm not a DAX-expert, but DAY(date) gives you 3 (for February 3), and the datevalue of 3 in Power BI is Tuesday, January 2, 1900.
I guess you should remove the DAY() part from your formula, so it will read something like =FORMAT([Date], "dddd")
- eeaglehouse8 years agoNew Member
Here's the reason the accept answer works: DAY() returns the day of the month as an integer between 1 and 31. WEEKDAY() is what was the original poster was looking for, returning a day of the week as an integer between 1 and 7 (Sunday through Saturday). FORMAT() can extract information directly from a date value, which is why neither of the other two functions were needed.
- santoshrnath9 years agoHelper I
Thank you. It resolved the issue.