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

Chart Expression aggregation

Hello, 

I have an issue with my chart (table) expression. 

The Total Count expression appears only in one row for each PATY/MONTH. I need to have it in every row.

arsenal1983_0-1631272119457.png

Dimensions:

PATY and MONTH comes from the source detail data,

CATEGORY is calculated dimension - combined if and class function

Expressions:

SELLERS COUNT =count(DISTINCT BER.SELLER_SID)

TOTAL COUNT = aggr(count(DISTINCT SELLER_SID), MONTH, PATY)

How can I reach such effect?

 

 

Labels (1)
1 Solution

Accepted Solutions
stevejoyce
Specialist II
Specialist II

try TOTAL COUNT = aggr(nodistinct count(DISTINCT SELLER_SID), MONTH, PATY)

 

or i think this should work also...

count(Total <MONTH, PATY> DISTINCT SELLER_SID)

View solution in original post

4 Replies
stevejoyce
Specialist II
Specialist II

try TOTAL COUNT = aggr(nodistinct count(DISTINCT SELLER_SID), MONTH, PATY)

 

or i think this should work also...

count(Total <MONTH, PATY> DISTINCT SELLER_SID)

marcus_sommer

Try it with:

TOTAL COUNT = sum(aggr(count(DISTINCT SELLER_SID), MONTH, PATY))

- Marcus

arsenal1983
Creator
Creator
Author

that works: 

TOTAL COUNT = aggr(nodistinct count(DISTINCT SELLER_SID), MONTH, PATY)

arsenal1983
Creator
Creator
Author

it only change that I got 0 instead of null.