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: 
jixiaoquan
Contributor III
Contributor III

The expressions count by the first dimesions in pivot table

Hi everyone,

    There are two expressions and two dimensions in a pivot table.

     The first dimension is Department and the second dimension is Class.

     The first expressions is "count(distinct StudentID)" the result is count students of every class.

     Now I want the second expression is count students of the Department,how to do ?

     Thank you!

1 Solution

Accepted Solutions
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try count(distinct total <Department> StudentID)


talk is cheap, supply exceeds demand

View solution in original post

3 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try count(distinct total <Department> StudentID)


talk is cheap, supply exceeds demand
MK_QSL
MVP
MVP

COUNT(Distinct TOTAL <Department> StudentID)

🙂 Gysbert has already answered !!!

jixiaoquan
Contributor III
Contributor III
Author

Thank you Manish  Kachhia!