Forum Discussion
KnowNow
Helper I
2 years agoCalculate weekday based on due date
I need to create a dax measure that shows the closest Tuesday and Thursday of every week from an invoice due date. For example, if the invoice due date is Saturday, 09/30/2023, then the closet Tuesda...
rsbin
Community Champion
2 years agoKnowNow ,
Apologies, I should have clarified that this is a Calculated Column added to your Invoice Table - not a Measure.
Have attached a simple pbix file so you can see more clearly.
Regards,
KnowNow
Helper I
2 years agoThank you but now I am getting the error "switch does not support comparing values of type true/false with values of type integer. Consider using the VALUE or FORMAT function to convert one of the values