Skip to main content
Announcements
Introducing Qlik Answers: A plug-and-play, Generative AI powered RAG solution. READ ALL ABOUT IT!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Sum and Count of field in top of row in pivot or straight Table

Hi All,

            I have a requirement, where i can see the sum and count of the field in a total row of the pivot or stright table, So please find the attached document and as mentioned in that the text box value should appear in single column.

Please let me know in case you need any more information on it.

Regards,

Ravi.

1 Solution

Accepted Solutions
swuehl
MVP
MVP

Hi,

You need to show sum and count in a single same cell?

You could use dimensionality to check if you are in total dimension and then use a concatenation to display your values, like

=if(dimensionality()=0,SUM(Qty)& '  ' & Count(Cdate),sum(Qty))

as expression for sum, giving total sum and count in total row in one single cell.

Hope this helps,

Stefan

View solution in original post

7 Replies
its_anandrjs

Hi,

I think in place of that if you use Statictics Box

See attached sample

Rgds

Anand

swuehl
MVP
MVP

Hi,

You need to show sum and count in a single same cell?

You could use dimensionality to check if you are in total dimension and then use a concatenation to display your values, like

=if(dimensionality()=0,SUM(Qty)& '  ' & Count(Cdate),sum(Qty))

as expression for sum, giving total sum and count in total row in one single cell.

Hope this helps,

Stefan

its_anandrjs

Hi,

You can use this way also paste this code in expression

=Sum( Qty ) & ' ' &Count(Cdate)

See the attached sample file.

Rgds

Anand

Not applicable
Author

Hello Stefen,

                     It is Correct and Thanks for giving correct answers.

Regards,

Rk

Not applicable
Author

its_anandrjs

Hi,

Stefans answer is absolutely correct but if you use like

=Sum( Qty ) & ' ' &Count(Cdate) you get its value also.

Rgds

Anand

Not applicable
Author