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

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to calculate number of days when certain text appears in a field

Hello,

I need to calculate number of days when certain value (value "Test" in my example) appears in a field.

Any suggestion how to do this?

Below is an example of the data and the result should be 4.

DateText

1.4.2015

Test
1.4.2015x

5.4.2015

Test

10.4.2015

x
10.4.2015Test
10.4.2015Test

20.4.2015

Test
20.4.2015Test

31.4.2015

x
31.4.2015x

Thanks,

Risto

1 Solution

Accepted Solutions
maxgro
MVP
MVP

count({$ <Text={Test}>} distinct Date)

View solution in original post

1 Reply
maxgro
MVP
MVP

count({$ <Text={Test}>} distinct Date)