Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
See why IDC MarketScape names Qlik a 2025 Leader! Read more
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Displaying Associated values of a field in Text Box

Hello All,

I am having a field Country with some values and on selection of month from master calender, I want to display associated value of Country in text box?

Any function??

Regards,

Balraj Ahlawat

15 Replies
Kushal_Chawda

try this

=if(GetselectedCount(Month) > 0,

if(WildMatch(Concat(DISTINCT Country,','),'*India*'), only({<Country={'India'}>}Currency_Rate),

if(WildMatch(Concat(DISTINCT Country,','),'*US*'), only({<Country={'US'}>}Currency_Rate))))

Kushal_Chawda

I am still not clear. Can you please show the output you needed with Sample data?

Anonymous
Not applicable
Author

What about else part?

If I have not selected any month then I want same for max of month....

HirisH_V7
Master
Master

Hi balraj,

Please post a sample post or give some more info of your requirment.

thanks,

hirish

HirisH
MayilVahanan

Hi

if(GetselectedCount(Month) > 0,

if(SubStringCount(Concat(DISTINCT Country,','),'India')=1, only({<Country={'India'}>}Currency_Rate),

only({<Country={'India'}, Date = {">=$(=MonthStart(Max(Date)))<=$(=MonthEnd(Max(Date)))"}>}Currency_Rate))))

Thanks & Regards, Mayil Vahanan R
Please close the thread by marking correct answer & give likes if you like the post.
sasikanth
Master
Master

HI,

Try some thing like below

=only({<Country={'$(=MaxString(Country))'}>}Rate )

this will work if you didnt select any country.