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

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Display the number of records in a pivot table

Hi,

Can anyone tell me the expression to calculate the number of records in pivot table?

Attached is the screenshot.

I have used COUNT(COUNTRY & [FIELD NAME] & [FIELD VALUE] & [SOURCE SYSTEM] & BU & COUNTRY ) or Count (Country).

When i try to put the expression like count (Expression) its displaying a error msg.

test.png

6 Replies
Not applicable
Author

The record count displayed here is wrong

swuehl
MVP
MVP

Could you specify what you mean with 'number of records'?

Are you referring to the number of lines?

Try

COUNT(DISTINCT COUNTRY & [FIELD NAME] & [FIELD VALUE] & [SOURCE SYSTEM] & BU & COUNTRY )


But if you pivot / collapse some dimensions, this might not reflect your current table layout.


If your dimensions are fully expanded, above should return the number of cells per expression, I think.


If you are referring to the number of records used in your aggregations, I think you would need to look at the fields used in the aggregation functions, not the dimension values.

sunny_talwar

Anonymous
Not applicable
Author

Hi harshuharsh0811,

Calculate the count on a variable, then call the variable on Title.


Vars: =COUNT(DISTINCT COUNTRY & [FIELD NAME] & [FIELD VALUE] & [SOURCE SYSTEM] & BU)

Title: ='Summary '&YourVarName&' records'


Kind regards

Not applicable
Author

Thanks a lot .It worked

Anonymous
Not applicable
Author

Hi hasrhuhars,

I am happy to read this.

Please, mark answer as correct for help other users.

Regards!