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

Announcements
Join us in Bucharest on Sept 18th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

How to count this?

Hi there,

Very new to Qlikview. I have got a raw data file with over 2 million rows of data (sample extract attached).

I would like to do some simple counts in a straight table as follows: What will the expression statements be like?

Please assist. Thank you in advance. 

1 Solution

Accepted Solutions
effinty2112
Master
Master

Hi Ashnil,

You can create a straight table like this:

Num of Fines count(DISTINCT [Employee Name])
12
22
31

the first column is a calculated dimension:

=Aggr(Count([Fine ID]),[Employee Name]) which I labelled Num of Fines

cheers

Andrew

View solution in original post

3 Replies
karthikoffi27se
Creator III
Creator III

Hi Ashnil,

For number of employees please use the below formula

=Count(Distinct Employee Name)

and if the value for fines are repetitive then use


=Count(Distinct Fine ID)

else

Count(Fine ID)


Many Thanks

Karthik

effinty2112
Master
Master

Hi Ashnil,

You can create a straight table like this:

Num of Fines count(DISTINCT [Employee Name])
12
22
31

the first column is a calculated dimension:

=Aggr(Count([Fine ID]),[Employee Name]) which I labelled Num of Fines

cheers

Andrew

sasiparupudi1
Master III
Master III

Like Below?

Dimension

Employee Name

Exp1:No of Emp

count( [Employee Name])

Exp2: No OF Fines

Count(Distinct [Fine ID])