Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content
Announcements
Qlik Community Office Hours: Join us on July 9th, 2025 - REGISTER HERE!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression total showing incorrect?


Hi,

I have straight table as below. When I made expression total it is not showing the count of ID correct. It is missing some records count. can anyone suggest me about this please?

DimensionCount(StudentID)
167

2nd class

45
3rd  class12
4th class34
5th class78

Thanks.

8 Replies
its_anandrjs
Champion III
Champion III

Update:- You have to use Sum of rows because the expression total always give wrong values check the attached snap shot.

If you want to get Total then use

Try with

Count(StudentID)

And from chart properties >> Expressions >> Sum of rows instead of expression total

See the snap shot

total sum.png

amit_saini
Master III
Master III

Hi Ameila,

In Total mode option please select as Sum

Thanks,

AS

jfkinspari
Partner - Specialist
Partner - Specialist

Or you might want to change to total mode to 'Sum' of rows

Udklip.PNG.png

MK_QSL
MVP
MVP

Aggr(Count(StudentID),Dimension)

stabben23
Partner - Master
Partner - Master

Hi,

or use the qualifier count( total <Dimension> StudentID).

er_mohit
Master II
Master II

I think uncheck suppress zero value from presentation tab

or uncheck suppress when value is null from dimension side

preminqlik
Specialist II
Specialist II

use the following expression :

sum(aggr(count(StudentID),Dimension1,dimension2))

Not applicable
Author

To get the correct total of all rows, you should use the Sum of rows option instead of using Expression total.