Qlik Sense Documents

Qlik Sense documentation and resources.

Announcements
Accelerate Your Success: Fuel your data and AI journey with the right services, delivered by our experts. Learn More

Who rated this article

arturomiquelveyrat
Partner - Contributor III
Partner - Contributor III

Custom totals in Qlik Sense tables

Last Update:

Dec 5, 2018 9:51:30 AM

Updated By:

arturomiquelveyrat

Created date:

Dec 5, 2018 9:50:22 AM

Question

How to use custom formulas for totals rows/columns in Qlik Sense tables. This works for both straight and pivot tables.

 

 Custom columCustom colum       Custom rowCustom row

 

 Answer 

Check the option to display totals for the desired dimension (in pivot tables) or measure (in straight tables).

For a custom totals row, use:

If(Dimensionality() = 1,
    123,    // Expression for regular rows
    999     // Expression for totals
)

For a custom totals column, use (only in pivot tables):

If(SecondaryDimensionality() = 1,
    123,    // Expression for regular columns
    999     // Expression for totals
)
Labels (3)
Who rated this article