11 Replies Latest reply on Jul 8, 2016 6:09 AM by Luciano Vasconcelos

    How to calculate number of weekdays (Mondays, Tuesdays, etc) in a month?

    Matthew Kuchers

      Does anyone know how to calculate the total number of weekdays in a month? I have a generic date/time field in a data set with hundreds of dates and I need to figure out how to take the total records that happen on particular days of the month (Monday, Tuesday, Wednesday, etc) and divide them by the number of weekdays that happen in a month. For example, this month, July 2016, has 5 fridays and 5 saturdays but only 4 thursdays, etc. If I had 200 records that happened on fridays this month, how would I write an equation where tableau counts the number of fridays (or saturdays, etc) this month so I could then find the avg records per specific weekday (200/5)?