Skip to main content
Announcements
Qlik Connect 2024! Seize endless possibilities! LEARN MORE
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Doubt about one easy expression with set analysis

Hi everybody.

Hi have to do count(money) when Concept = instalation

this should be like this

Count(DISTINCT{<Concept={'instalation'}>}money)

BUT in my tables i have "big instalations", "small instalations", "medium instalations",

How i "concatenate" this 3 fields? should i sum them in the code or what?

Thank you, greetings!

1 Solution

Accepted Solutions
alexandros17
Partner - Champion III
Partner - Champion III

If (as I suppose) big, small and medium installation are values for the field Concept your expression is:

Count(DISTINCT{<Concept={'big instalations', 'small instalations', 'medium instalations'}>}money)

let me know

View solution in original post

5 Replies
Not applicable
Author

Hi Jeremias,

are these possible values in the one field? If so you can specify all three in the set

Count(DISTINCT{<Concept={'big instalations','small instalations','medium instalations'}>}money)

or use a wildmatch on 'instalations' in the set if you want to count any value that contains the word

Count(DISTINCT{<Concept={'*instalations*'}>}money)

hope that helps

Joe

alexandros17
Partner - Champion III
Partner - Champion III

If (as I suppose) big, small and medium installation are values for the field Concept your expression is:

Count(DISTINCT{<Concept={'big instalations', 'small instalations', 'medium instalations'}>}money)

let me know

Not applicable
Author

for more information on set analysis maybe have a look at this

http://community.qlik.com/docs/DOC-4951


rustyfishbones
Master II
Master II

Hi,

You can use * as the Wildcard in Set Analysis

COUNT(DISTINCT ({<Concept = {'*instalations*'}>} money)

Not applicable
Author

Yes, they are values for the field Concept.

Thank you!