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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Qlikview expression not working for text object

Guys,

I have an expression as in the screenshot below,

L_6647.tmp.PNG

Expression - Count(DestinationUniqKey)

The count shown in bar chart is correct (168), but wrong in the case of text object (466). I couldn't find why it is showing different value in text object. Please help me to check this friends...

I've also attached the sample data and QVW file below. Thanks in advance.

1 Solution

Accepted Solutions
maxgro
MVP
MVP

maybe

sum(aggr(count(DestinationUniqKey), Customer))

View solution in original post

7 Replies
vishsaggi
Champion III
Champion III

Try this in your variable?

= Aggr(Count( {< Customer = {'Cargosmart'} >} DestinationUniqKey), Customer)

maxgro
MVP
MVP

maybe

sum(aggr(count(DestinationUniqKey), Customer))

Anonymous
Not applicable
Author

But this will work only for a particular value. Please say how to do it dynamically.

vishsaggi
Champion III
Champion III

I would change the Variable expression to Massimo's expression, just take off that set analysis customer and do a =

= Sum(Aggr(Count(DestinationUniqKey), Customer))

Anonymous
Not applicable
Author

Thanks guys, it's working fine... May I know the reason why it was wrong?

vishsaggi
Champion III
Champion III

Cos your bar graph is aggregated based on Dimension Customer with count expr. you have to have the same logic if you want to display in plain textbox. So we aggregated the Count() using Dim in Aggr() function and Sum() it up based on your Selections in Customer.

satishsure
Contributor
Contributor

Clear Explanation about Aggr Function.Aggr Function