Qlik Community

Qlik Sense App Development

Discussion board where members can learn more about Qlik Sense App Development and Usage.

Announcements
Coming your way, the Qlik Data Revolution Virtual Summit. October 27-29. REGISTER
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Creator II
Creator II

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
Highlighted
Partner
Partner

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
Highlighted
Partner
Partner

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