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: 
ali_hijazi
Partner - Master II
Partner - Master II

count of rows in a pivot table

Hello

I got a pivot table with 3 dimensions Country, Compentency Gap, and Employee ID

and an expression with the definition : Only(EmployeeName)

now what I want is to display the total number employees on per each value of the dimensions

the partial sum doesn't return anything since the expression is string

how can I force the pivot table to display by the partial sum the total number of rows?

Please advise

I can walk on water when it freezes
2 Replies
Gysbert_Wassenaar
Partner - Champion III
Partner - Champion III

Try using count(EmployeeName) instead

Or if you want the employeename at the detail level: if(dimensionality()=3,only(EmployeeName),count(EmployeeName))


talk is cheap, supply exceeds demand
ali_hijazi
Partner - Master II
Partner - Master II
Author

well yes but not 100%

I have to write the dimensions in the aggr function if I want to see the total at each additional level of dimensions

for example I added 3 dimensions now EmployeeCountry, CompetencyGap and EmployeeNo

if(Dimensionality()<=2,count(aggr(Count(FullName),EmployeeCountry,CompetencyGapValue,EmployeeNo)),Only(FullName))

I can walk on water when it freezes