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

Announcements
Qlik GA: Multivariate Time Series in Qlik Predict: Get Details
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Count Distinct

Hi

count

(distinct {$<Kalender.Kalender.Jahr={$(=Only(Kalender.Kalender.Jahr))}>} Billing_Header.Billing_Header.SalesDoc_ID

)





I'm trying to get a count of no of unice SelesDoc_ID using set analysis but i become more count as row number

Thanks

Shideh

1 Reply
yblake
Partner - Creator II
Partner - Creator II

I don't understand your formula ???

the test value = only(value) is always true in a table with value as dimension .

why not using

count(distinct if(invoice_year=$(yy_input),invoice_id,null())

the yy_input is a variable you can input, or define i.e. as year(reloaddate()).