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: 
rafael5958
Creator
Creator

sum expression

I have a straight table with a dimension "name" column and an  expression column. My expression:

count({$<TIPO_TITULARIDADE={'2-Titularidade diferente'},CB-={'TAR','EST'},CAD_NOME-={'NÃO INFORMADO','NA','',NULL}>} distinct ID)

It shows something like:

Nameexpression
XXXX3
AAAAA3
BBBB2
DDDD2
SSSS2
JJJJJJJ2
QQQQQQQQQ1
WWWWW1
EEEEEE1
RRRRRRR1

 

I need to show ain a text box the sum of this expression, how can I do that?

Labels (3)
1 Solution

Accepted Solutions
StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

try with

=Sum(Aggr(count({$<TIPO_TITULARIDADE={'2-Titularidade diferente'},CB-={'TAR','EST'},CAD_NOME-={'NÃO INFORMADO','NA','',NULL}>} distinct ID),Name))

View solution in original post

3 Replies
Lisa_P
Employee
Employee

Just copy your expression and paste into the Text on the General tab of the Text Object with an = sign in front. Then you can format the Font in Font tab and move the transparency on the General tab to 100%.

textobj.PNG

 

rafael5958
Creator
Creator
Author

Its not working, it shows 3, instead of 18.

StarinieriG
Partner - Specialist
Partner - Specialist

Hi,

try with

=Sum(Aggr(count({$<TIPO_TITULARIDADE={'2-Titularidade diferente'},CB-={'TAR','EST'},CAD_NOME-={'NÃO INFORMADO','NA','',NULL}>} distinct ID),Name))