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

Announcements
ALERT: QlikView server communication interruptions following Microsoft Windows Domain Controller security updates
cancel
Showing results for 
Search instead for 
Did you mean: 
sergio0592
Specialist III
Specialist III

Count rows and columns

Hi all,

I'am facing an issue and can't understand what i have wrong. I have a chart (CHART 1 in the snaphot below) with for each Day and Hour the time avability (0 to 60 min) of employee.

What i'm trying to achieve is to count the number of employee with 60 min as time avalility (number of rows) and the number of columns (corresponding to their qualification) with 60 min.

It's ok in the chart 2 for most part of hour, but for some i Don't have the real number. Qvw sample in attached file.

Thanks for your help

P1.png

Labels (1)
1 Solution

Accepted Solutions
tresB
Champion III
Champion III

Try exp like:

Count(DISTINCT if(Aggr(Sum(DISPO),DT, NUM_TH,ID_AGENT,ID_EMPLOI)=60, ID_AGENT)) 

and

Count(DISTINCT if(Aggr(Sum(DISPO),DT, NUM_TH,ID_AGENT,ID_EMPLOI)=60, ID_EMPLOI)) 

Capture.PNG 

View solution in original post

2 Replies
tresB
Champion III
Champion III

Try exp like:

Count(DISTINCT if(Aggr(Sum(DISPO),DT, NUM_TH,ID_AGENT,ID_EMPLOI)=60, ID_AGENT)) 

and

Count(DISTINCT if(Aggr(Sum(DISPO),DT, NUM_TH,ID_AGENT,ID_EMPLOI)=60, ID_EMPLOI)) 

Capture.PNG 

sergio0592
Specialist III
Specialist III
Author

Perfect, thanks!