Skip to main content
Announcements
See what Drew Clarke has to say about the Qlik Talend Cloud launch! READ THE BLOG
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to filter a bar chart to count if a value contains a certain value

In the following example:

ABC
121
211
312
341

How would I create a bar chart that displays A, B, C on the x axis. Then counts the '1's only

Thanks in advance!

Many thanks

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

You could create 3 expressions with the calculation as follows

for A: count({<A = {1}>}A)

for B: count({<B= {1}>}B)

for C: count({<C = {1}>}C)

View solution in original post

6 Replies
Anonymous
Not applicable
Author

You could create 3 expressions with the calculation as follows

for A: count({<A = {1}>}A)

for B: count({<B= {1}>}B)

for C: count({<C = {1}>}C)

Not applicable
Author

Thanks Greeshma,

Would i use A, B. C as the dimension?

Anonymous
Not applicable
Author

No need to add them as dimensions.

sunny_talwar

I think it might make sense to transpose the data using The Crosstable Load‌. Once you do that, you can use A, B, C (which will now be in a single field) as a dimension and Count() expression

Anil_Babu_Samineni

Yes, you can use like

ValueList('A','B','C')

Best Anil, When applicable please mark the correct/appropriate replies as "solution" (you can mark up to 3 "solutions". Please LIKE threads if the provided solution is helpful
trdandamudi
Master II
Master II

See if the attached helps....