Forum Discussion
New_be
Helper V
6 years agoCalculated column to compare String & Date
Hi everyone, Refer to the subject, i have one question on how to make a condition for date that based on day. For example in this case, i have a days column & a date_off column seperately. Days ...
- Anonymous6 years ago
Hi New_be ,
I think you can create a calculated column using the below DAX:
column = if(Days = "Friday",DAY_OFF,BLANK())
Please try.
Aiolos Zhao
amitchandak
Super User
6 years agoNew_be , Try like
Weekday =WeekDay Name = FORMAT([Date],"dddd")
if(Weekday = WEEKDAY([Date],2) =5, "DAY_OFF",Blank())
if([Weekday] ="Friday", "DAY_OFF",Blank())
Any Weekday Week
ttps://community.powerbi.com/t5/Community-Blog/Any-Weekday-Week-Decoding-Date-and-Calendar-2-5-Power-BI-Turning/ba-p/1187482