Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
fishing_weights
Contributor III
Contributor III

YTD countif there is at least one value (counta)?

The table 

Date ID

31 Aug 2022

a

31 Aug 2022

b

31 Jul 2022

a

31 Jul 2022

b
31 Jul 2022 c
31 Jun 2022 null

 

The request: If  there is an ID for the date to return 1 and sum up all the 1's  from YTD

The required result: because only 2 months in 2022 has values

Year result
2022 2

 

How do i create a ytd tracking as such? thank you

1 Reply
G3S
Creator III
Creator III

in a straight table you can load the year, then  measure: if(not isnull(ID) or ID<>'null', count(distinct(ID))