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

Announcements
Q&A with Qlik - Qlik Cloud Migration: Questions about migrating to Qlik Cloud? Catch the latest replay!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Is it possible to write count(distinct Tickets ID) in model level

Is it possible to write count(distinct Tickets ID) in data model level??

Labels (1)
4 Replies
marcus_sommer
MVP
MVP

Surely, but the whole load-statement needs to be adjusted to such a calculation. It should look like:

count:

Load AnyGroup, count(distinct [Tickets ID]) as TicketCount From xyz Group by AnyGroup;

- Marcus

tresB
Champion III
Champion III

Possible. Try like:

Load

          Field1,

          Field2,

          Count( Distinct Field3) as Count

From <> Group By Field1, Field2;

sunny_talwar
MVP
MVP

Not sure what you mean when you say Data Model level? Do you mean to do this in the script?

Not applicable
Author

Yes it is script level