Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
delbooth
Contributor II
Contributor II

Count number of distinct routes

Hi .

I am trying to count the number of district routes for a given time ie current year and previous week.  I have tried the below where ColYear is master calendar data element and route is the field routes are located in.

count(distinct(if(ColYear={"$(=year(Today()))"},ColWeek = {"$(=Week(Today())-1)"},Route)))

Thanks

Del

2 Replies
agigliotti
Partner - Champion
Partner - Champion

maybe this:

count( {< ColYear={"$(=year(Today()))"},ColWeek = {"$(=Week(Today())-1)"} >} DISTINCT Route)

delbooth
Contributor II
Contributor II
Author

Thanks