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: 
Not applicable

How to write expression to get count of ID's

Hi,

I have three columns Queue,FromQueue,ToQueue. All the three columns contains same data. I need to generate a chart by using three columns i,e I need to get count of ID's as how many ID's are in and how many ID's are out based on Queue.so that it will appear like below.Could anyone help me how to write condition in Expressions tab

QueueInOut
work432
process345
aggreement56
solution00

Thanks.

6 Replies
Not applicable
Author

aggr(count(In),Queue)


aggr(count(out),Queue)

Not applicable
Author

Did you put Queue in your Dimension?

If yes, then create two expressions using Set Analysis:

In: count(distinct {<Field={'In'}>} ID)

Out: count(distinct {<Field={'Out'}>} ID)

where Field is the field which allows you to see if an ID is in/out.

Hope this makes sense!

Not applicable
Author

Hi,

Thanks for this. but somehow I am not getting correct results when I am trying by date wise as I have same data in Queue,In,Out.Could you help me as I am reaaly struggling this since four days.

Not applicable
Author

Hi,

Thanks

Now I am getting new problem.

How to write expression in dimension so that I need to see Under Queue only like below as I have so many names .but I need only four. If I get this may be my problem would solve. please help

Queue
work
process
aggreement
solution
Not applicable
Author

IN DIMENSION TAB--

CLIK ON ADD CALCULATED DIMENSION

     then here write your expression in dimension

************************

or in dimension tab add field Queue then clik on edit button then here write your expression.

Not applicable
Author

Hi,

How to write the condition in expression tab? could you tell me