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

Match values

Hi all,

I have two columns one is equipmentcountries and other is contract countries,both have some common values

In bar chart chart i want to display the countries which are common to both only using equipmentcountries  as a dimension ?


Please help?



Kind Regards

MANU

6 Replies
m_woolf
Master II
Master II

For the dimension try:

=if(index(concat(contract countries,','),equipmentcountries)>0,equipmentcountries)

manu1512
Creator
Creator
Author

Thanks for reply but is not working

sudeepkm
Specialist III
Specialist III

May be you can better handle it in your script by comparing the equipmentcountries value to contract countries value per record and create a flag with values 1 or 0. Then in your Chart you can use the flag in the expression (set analysis) so that it would only display those Dimension values where it matches.

m_woolf
Master II
Master II

Can you post a sample qvw?

kenkuchana
Contributor II
Contributor II

In Dimension use "If(equipmentcountries = [contract countries], equipmentcountries, null())" and select suppress null values

Zhandos_Shotan
Partner - Creator II
Partner - Creator II

Hi!

You need to use P() in set modifier expression as set of field values using a nested set definition. %)

https://help.qlik.com/en-US/sense/September2018/Subsystems/Hub/Content/Sense_Hub/ChartFunctions/SetA...

For better answer, please give a some example?