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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression count()

Hello everyone!
I need help, I have a simple table object that displays me

NameUsernaneServiceMonthshours
a1patcommunication110:30
a1patcommunication211:11
a1patcommunication109:00
b1julcommunication115:00
b1julcommunication105:45
c2kou1207:30
bolsalcommunication807:50

My problem is that want create another expression that counts the number of times the name appears.


sql I should have something like:


Select Count(*) from mychart GROUP BY (Name,Username,Months,Service)

1 Solution

Accepted Solutions
fred_s
Partner - Creator III
Partner - Creator III

Do you mean expressions like this..

View solution in original post

5 Replies
preminqlik
Specialist II
Specialist II

hi PFa

fred_s
Partner - Creator III
Partner - Creator III

Hi Kouens,

See attachment.

- Show frequency in Listbox
- count(usernane) in table (Yes, usernane with N in your example)
- As textbox with Set analysis

tempie.JPG.jpg

Not applicable
Author

thank you, I love this expresion, I want to know how to retrieve the selected value without defining default


='no of Pats: ' & count( {<Usernane = {'pat'} >} Usernane)

fred_s
Partner - Creator III
Partner - Creator III

Do you mean expressions like this..

Not applicable
Author

Thank you Fred