Skip to main content
Announcements
Join us at Qlik Connect for 3 magical days of learning, networking,and inspiration! REGISTER TODAY and save!
cancel
Showing results for 
Search instead for 
Did you mean: 
bazzaonline
Creator
Creator

Counting Tasks Help

Hello,  I have some data which is a list of people and a list of different tasks they have completed.  For example

Name   Task

Fred     Cleaning

Fred     Hoovering

Jane     Washing

Fred      Cleaning

Jane      Cleaning

Fred      Hoovering

How can I write an expression or a formula that will count the number of times the people have done different tasks,

For example

Name     Cleaning     Hoovering    Washing            

Fred             2                 2                  0

Jane             1                 0                  1

Thanks Paul

1 Solution

Accepted Solutions
nirmalraj_kj
Partner - Contributor III
Partner - Contributor III

hi

try like this

take dimension as Name and task in pivot

and write the expression like count(task)

then drag and drop the task as horizontal

or

try like this

take dimension as name

then write the expression like

Cleaning: Count({<Task={"Cleaning"}>}Task)

Hoovering: Count({<Task={"Hoovering"}>}Task)

Washing: Count({<Task={"Washing"}>}Task)

Hope this will helps you

Thanks & Regards

Nirmal

View solution in original post

6 Replies
alexandros17
Partner - Champion III
Partner - Champion III

Load your data then add a chart (straight table) then

add Name and task as dimension

add the following expression: Count(Task)

let me know

nirmalraj_kj
Partner - Contributor III
Partner - Contributor III

hi

try like this

take dimension as Name and task in pivot

and write the expression like count(task)

then drag and drop the task as horizontal

or

try like this

take dimension as name

then write the expression like

Cleaning: Count({<Task={"Cleaning"}>}Task)

Hoovering: Count({<Task={"Hoovering"}>}Task)

Washing: Count({<Task={"Washing"}>}Task)

Hope this will helps you

Thanks & Regards

Nirmal

nikhilgarg
Specialist II
Specialist II

HEy ,

I am trying to drop column task as horizontal but cann't do it. Can you please tell me how to make taks column horizontall ??

Thanks

nirmalraj_kj
Partner - Contributor III
Partner - Contributor III

are you using pivot table or straight table?

nikhilgarg
Specialist II
Specialist II

I am using Straight Table

nirmalraj_kj
Partner - Contributor III
Partner - Contributor III