Guttmann1983
Board Regular
- Joined
- Jul 27, 2015
- Messages
- 181
[FONT="]Hi, I am trying to figure out where I am going wrong with the below DAX Expression [/FONT]
[FONT="] [/FONT]
[FONT="]=IF(AND(YEAR([Demand Sent]=YEAR(TODAY())),WEEKNUM([Demand Sent]=WEEKNUM(TODAY())),FORMAT([Demand Sent],"ddd"),""))[/FONT]
[FONT="] [/FONT]
[FONT="][Demand Sent] is a field that is either a date, or is blank. I am trying to get the dax expression to return "Mon" or "Tue" or "Wed" etc. if the date in this field is from the current week (Monday - Sunday) or return blank if its not. the last peice, FORMAT([Demand Sent],"ddd"),"")) is giving me problems.[/FONT]
[FONT="] [/FONT]
[FONT="]=IF(AND(YEAR([Demand Sent]=YEAR(TODAY())),WEEKNUM([Demand Sent]=WEEKNUM(TODAY())),FORMAT([Demand Sent],"ddd"),""))[/FONT]
[FONT="] [/FONT]
[FONT="][Demand Sent] is a field that is either a date, or is blank. I am trying to get the dax expression to return "Mon" or "Tue" or "Wed" etc. if the date in this field is from the current week (Monday - Sunday) or return blank if its not. the last peice, FORMAT([Demand Sent],"ddd"),"")) is giving me problems.[/FONT]