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

Announcements
Join us in Toronto Sept 9th for Qlik's AI Reality Tour! Register Now
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

How to get the field value?

Hi All,

I have the following records.

load * Inline

[

FiscalWeek,WeekDate

2011Wk01,2011/01/01

2010Wk01,2010/01/01

]

And I have a variable named 'vWeekDate', the default value of it is '2010/01/01'.

I want to show the FiscalWeek name in the textbox, and it is changed based on the 'vWeekDate'.

How to achieve it?

4 Replies
Not applicable
Author

Try this expression in the textbox if you want a unique value:

=Only({< [WeekDate] = {$(vWeekDate)} >} Fiscal Week)

or if you want the max value by default:

=MaxString({< [WeekDate] = {$(vWeekDate)} >} Fiscal Week)

or if you want the min value by default:

=MinString({< [WeekDate] = {$(vWeekDate)} >} Fiscal Week)

With an example I can help you more accurate.

christophebrault
Specialist
Specialist

If WeekDate is unique datas, you can use :

FieldValue('FiscalWeek',FieldIndex('WeekDate',vWeekDate))


see exemple

Inscrivez vous à ma Newletter Qlik
DoNotMissQlik- Connect with me on Linkedin
Not applicable
Author

The weekdate is not unique, how to achieve it?

SunilChauhan
Champion II
Champion II

see the attced file

hope this helps

Sunil Chauhan