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

Announcements
Qlik Open Lakehouse is Now Generally Available! Discover the key highlights and partner resources here.
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Different value for any group

Hello,

if i have PIPPO contain :

value 111111  5 times

value 22222 4 times

value 333333 7 times

value 44444 12 times

In expression section add :

count(distinct SubStringCount (VAR, 111111))

count(distinct SubStringCount (VAR, 22222))

count(distinct SubStringCount (VAR, 333333))

count(distinct SubStringCount (VAR, 444444))

the chart i obtain i have just one same (and only one) value and i need a value for any count.

Thanks

Mario Brozi

8 Replies
Chanty4u
MVP
MVP

count(Distinct urfield)

sunny_talwar

Not sure I completely understand what you are trying to do? Can you elaborate or provide a sample?

Anonymous
Not applicable
Author

may be remove distinct from expression?

Still not clear, how data you are having in fields, could you post a sample?

Anonymous
Not applicable
Author

If you have PIPPO then why you are using VAR?

Anonymous
Not applicable
Author

Sorry PIPPO = VAR

Anonymous
Not applicable
Author

How you can see the value blue and red in the graph are the same but they aren't.
If i use DISTINCT the value (green) isn't showed.

OK-Snap-2016-02-01-at-12.20.36.jpg

sunny_talwar

What do you get if you just use the expression without Count?

SubStringCount(PIPPO, 111111)

SubStringCount(PIPPO, 222222)

SubStringCount(PIPPO, 333333)

Anonymous
Not applicable
Author

if i just use the expression without Count


SubStringCount(PIPPO, 111111)

SubStringCount(PIPPO, 222222)

SubStringCount(PIPPO, 333333)

i get Nothing, all blank.