Skip to main content
Announcements
Qlik Connect 2025: 3 days of full immersion in data, analytics, and AI. May 13-15 | Orlando, FL: Learn More
cancel
Showing results for 
Search instead for 
Did you mean: 
n1ef5ng1
Creator
Creator

Could variable solve this? and how?

Hi all,

I have this report format

TypeRevenue
Country_Departure888
Country_Arrival1199
Country11111

I will need user to select the particular country and it will display the value. Say if the user choose France, it will show Country_Departure and arrival of France

However, the avaliable field I have is Country_Departure and Country_Arrival, I can't possibly ask the user to select both field france in order to show the result

In addtion, I have additional field call Group_Country where it will display out the countries in the world.

This is my Code for Country_Departure

(sum({$<Transit_Container_Class = {'F'},TXIT_Country.Departure= >} Transit_TEU) ))

I am thinking is it possible that if the user choose France, it will stored the value as an variable ,

and on the expression it will read the value of the variable and paste it on TXIT_Country.Departure.

If is possible how is it done, thank you

1 Reply
n1ef5ng1
Creator
Creator
Author

Solved by

 

(

(sum({$<Transit_Container_Class = {'F'},TXIT_Group_Country.Discharge ={$(=(Group_Country))