Skip to main content
cancel
Showing results for 
Search instead for 
Did you mean: 
jerryr125
Creator III
Creator III

Number of Dates selected

Hi - I have a filter that selects the date (field: DATE).

I am using this formula to display the dates selected.

GetFieldSelections(DATE)

What if I want to count the number of DATES selected ?

I tried this :

COUNT(GetFieldSelections(DATE)) and it returns a 1 when I select 5 dates.

 

thoughts ? Jerry

1 Solution

Accepted Solutions
JordyWegman
Partner - Master
Partner - Master

Hi, 

Use this formula:

IF(Count(Distinct Date)=Count(Distinct {1<Date =>}Date),0,Count(Distinct Date))

As extra the formula looks if you made any selections. If you have selected none, it will return 0.

Jordy

Climber

Work smarter, not harder

View solution in original post

1 Reply
JordyWegman
Partner - Master
Partner - Master

Hi, 

Use this formula:

IF(Count(Distinct Date)=Count(Distinct {1<Date =>}Date),0,Count(Distinct Date))

As extra the formula looks if you made any selections. If you have selected none, it will return 0.

Jordy

Climber

Work smarter, not harder