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

Announcements
Only at Qlik Connect! Guest keynote Jesse Cole shares his secrets for daring to be different. Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Not applicable

Expression for dynamic label

I have a field in my dates table called WeekNo, which is used as the basis for summing my data.  Also in my dates table I have a field called Rpt Wk.  Within this dates table, WeekNo = 260 corresponds to Rpt Wk = Sep Wk 5.  How am I able to write a dynamic label expression that uses the max WeekNo but returns the Rpt Wk field value?  Thank you in advance.

1 Solution

Accepted Solutions
Anonymous
Not applicable
Author

Hi Brian,

=MaxString({<WeekNo = {$(=Max(WeekNo))}>}[Rpt Wk])

Regards!

View solution in original post

3 Replies
sunny_talwar

May be this:

FirstSortedValue([Rpt Wk], -WeekNo)

Anonymous
Not applicable
Author

Hi Brian,

=MaxString({<WeekNo = {$(=Max(WeekNo))}>}[Rpt Wk])

Regards!

Not applicable
Author

Was able to get this to work, thank you!