October 10, 200718 yr Hello, I asked this question many years ago but I can no loner find the answer so I apologize for asking again. I want to write a calculation where StartDate-EndDate=NumberDays Easy enough, but if the StartDate is a Thursday and the Endate is a Monday I only want the calculation to return "1" as the answer..essentially taking the weekend days out of the equation. I am not really concerned about three day weekends or weird anomolies. Does anyone know a calculation that would do this? Thanks in advance for any help. Steve
October 10, 200718 yr Let( [ startDate = yourfield; EndDate = your2ndField; Difference = startDate - EndDate ]; If( DayName(startDate) = "Thursday" and DayName(EndDate) = "Monday"; 1; Difference ) )
October 10, 200718 yr What, you can't find your own topics? http://www.fmforums.com/forum/showtopic.php?tid/172410
Create an account or sign in to comment