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: 
Not applicable

How to restrict only one value from dimension in a chart

Hi

i have a Bar chart and in want to do this :

Count distinct on (type custome) , and i want to do it only on a specific cuatomer_id .

How do i restrict specific  value from Customer dimension in a chart ?

Thank you

1 Solution

Accepted Solutions
Not applicable
Author

=count({1<Customer_ID={'YOURSPECIFICID'}>} customers)

View solution in original post

8 Replies
Not applicable
Author

=count({1<Customer_ID={'YOURSPECIFICID'}>} customers)

Not applicable
Author

Hi

first thank you it works

but i don't understand how ?

what "1" stand for ?

where we did count distinct .

Not applicable
Author

sorry i forgot distinct

=count({1<Customer_ID={'YOURSPECIFICID'}>} distinct customers)

1 stands for that it is not affected by any selection.

I think you also could use $ cause your are specifiying what value it should be, so i does not matter.

Not applicable
Author

thank you

it been very helpful

Not applicable
Author

i found strange thing  !

when i use the this syntax in the graf  i get what i want.

but when i change the filter ( for example month)

the garf doesnt change ,why ?

Not applicable
Author

because you have set 1 infront. Try with $

one disregards the dimensions but not the selection..

and if that does not work

then try

=count({$<Customer_ID={'YOURSPECIFICID'}, MONTHCOLUMN=>} distinct customers)

Not applicable
Author

thank you again

Not applicable
Author

did it work?