Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Write Table now available in Qlik Cloud Analytics: Read Blog
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to count the number of dates?

Hi,

I have a dataset with 6 dates where the dates are crosstabled. When I do a count on datefield, count(datefield), I get a count over 100. Is there any way to only get a count of 6, for 6 days?

Thanks.

2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Perhaps count(distinct datefield). If not you'll have to give more information about your dataset.


talk is cheap, supply exceeds demand
jagan
Partner - Champion III
Partner - Champion III

Hi,

Try to use DISTINCT in Count function.

=Count(DISTINCT DateFieldName)

Regards,

Jagan.