

Specialist
2022-02-09
04:18 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Count how many Tuesdays between 2 dates
Is there a smart way of counting the number of Tuesdays there are between 2 dates ?
Thanks
983 Views
1 Solution
Accepted Solutions


MVP
2022-02-09
07:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may apply it in this way:
count({< [Weekday] = {2}>} [Date])
whereby weekday must exists as a native field within the data-model which is usually the case by using a master-calendar.
- Marcus
952 Views
3 Replies


Partner - Master III
2022-02-09
05:06 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi
this expression should work for you
=sum(if(weekday(dateField)=2,1,0))
You need to replace "dateField" with your actual date field.
965 Views


Specialist
2022-02-09
05:32 AM
Author
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thank you.
I guess I can use set analysis to define the date range I'm interested in ?
957 Views


MVP
2022-02-09
07:01 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You may apply it in this way:
count({< [Weekday] = {2}>} [Date])
whereby weekday must exists as a native field within the data-model which is usually the case by using a master-calendar.
- Marcus
953 Views
